Revision: 20182
Author: rmcil...@chromium.org
Date: Mon Mar 24 09:09:49 2014 UTC
Log: Remove an unused isolate_ field from BacktrackStack.
Found by Nico Weber with -Wunused-private-field
R=yang...@chromium.org
Review URL: https://codereview.chromium.org/208613002
http://code.google.com/p/v8/source/detail?r=20182
Modified:
/branches/bleeding_edge/src/interpreter-irregexp.cc
=======================================
--- /branches/bleeding_edge/src/interpreter-irregexp.cc Fri Mar 14 13:22:14
2014 UTC
+++ /branches/bleeding_edge/src/interpreter-irregexp.cc Mon Mar 24 09:09:49
2014 UTC
@@ -158,7 +158,7 @@
// matching terminates.
class BacktrackStack {
public:
- explicit BacktrackStack(Isolate* isolate) : isolate_(isolate) {
+ explicit BacktrackStack() {
data_ = NewArray<int>(kBacktrackStackSize);
}
@@ -174,7 +174,6 @@
static const int kBacktrackStackSize = 10000;
int* data_;
- Isolate* isolate_;
DISALLOW_COPY_AND_ASSIGN(BacktrackStack);
};
@@ -191,7 +190,7 @@
// 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();
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.