Commit 1c90c951 authored by rmcilroy@chromium.org's avatar rmcilroy@chromium.org

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
parent cd5cc705
......@@ -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<int>(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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment