From: rmcilroy@chromium.org Date: Mon, 24 Mar 2014 09:09:49 +0000 (+0000) Subject: Remove an unused isolate_ field from BacktrackStack. X-Git-Tag: upstream/4.7.83~10071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1c90c9513b9e5029e5059312e66d28c21a422ea0;p=platform%2Fupstream%2Fv8.git Remove an unused isolate_ field from BacktrackStack. Found by Nico Weber with -Wunused-private-field R=yangguo@chromium.org Review URL: https://codereview.chromium.org/208613002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20182 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/interpreter-irregexp.cc b/src/interpreter-irregexp.cc index ccabfd1..de54d0c 100644 --- a/src/interpreter-irregexp.cc +++ b/src/interpreter-irregexp.cc @@ -158,7 +158,7 @@ static int32_t Load16Aligned(const byte* pc) { // matching terminates. class BacktrackStack { public: - explicit BacktrackStack(Isolate* isolate) : isolate_(isolate) { + explicit BacktrackStack() { data_ = NewArray(kBacktrackStackSize); } @@ -174,7 +174,6 @@ class BacktrackStack { static const int kBacktrackStackSize = 10000; int* data_; - Isolate* isolate_; DISALLOW_COPY_AND_ASSIGN(BacktrackStack); }; @@ -191,7 +190,7 @@ static RegExpImpl::IrregexpResult RawMatch(Isolate* isolate, // BacktrackStack ensures that the memory allocated for the backtracking stack // is returned to the system or cached if there is no stack being cached at // the moment. - BacktrackStack backtrack_stack(isolate); + BacktrackStack backtrack_stack; int* backtrack_stack_base = backtrack_stack.data(); int* backtrack_sp = backtrack_stack_base; int backtrack_stack_space = backtrack_stack.max_size();