Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Unified Diff: src/isolate.cc

Issue 2807031: [Isolates] RegExpStack and memory allocation limits (statics #6) (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: -> is different than . Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/isolate.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
===================================================================
--- src/isolate.cc (revision 5002)
+++ src/isolate.cc (working copy)
@@ -37,6 +37,7 @@
#include "heap-profiler.h"
#include "isolate.h"
#include "log.h"
+#include "regexp-stack.h"
#include "serialize.h"
#include "scanner.h"
#include "scopeinfo.h"
@@ -253,7 +254,9 @@
context_switcher_(NULL),
thread_manager_(NULL),
ast_sentinels_(NULL),
+ inline_runtime_functions_table_(NULL),
string_tracker_(NULL),
+ regexp_stack_(NULL),
frame_element_constant_list_(0),
result_constant_list_(0) {
memset(isolate_addresses_, 0,
@@ -336,6 +339,9 @@
delete scanner_character_classes_;
scanner_character_classes_ = NULL;
+ delete regexp_stack_;
+ regexp_stack_ = NULL;
+
delete inline_runtime_functions_table_;
inline_runtime_functions_table_ = NULL;
@@ -448,6 +454,8 @@
stub_cache_ = new StubCache();
ast_sentinels_ = new AstSentinels();
inline_runtime_functions_table_ = new InlineRuntimeFunctionsTable();
+ regexp_stack_ = new RegExpStack();
+ regexp_stack_->isolate_ = this;
#ifdef ENABLE_DEBUGGER_SUPPORT
debugger_ = new Debugger();
« no previous file with comments | « src/isolate.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698