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

Unified Diff: src/isolate.cc

Issue 2831016: [Isolates] Static mutable data of Scanner class moved to ScannerCharacterClasses / Isolate. (Closed)
Patch Set: . 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/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.cc
diff --git a/src/isolate.cc b/src/isolate.cc
index 4d70442e3daa93df14e02cc0acdf98d97508ae5c..67706485481f5c10d5961dc36d7e89f6bd8e6372 100644
--- a/src/isolate.cc
+++ b/src/isolate.cc
@@ -35,6 +35,7 @@
#include "isolate.h"
#include "log.h"
#include "serialize.h"
+#include "scanner.h"
#include "scopeinfo.h"
#include "simulator.h"
#include "stub-cache.h"
@@ -115,7 +116,8 @@ Isolate::Isolate()
keyed_lookup_cache_(new KeyedLookupCache()),
context_slot_cache_(new ContextSlotCache()),
descriptor_lookup_cache_(new DescriptorLookupCache()),
- handle_scope_implementer_(NULL) {
+ handle_scope_implementer_(NULL),
+ scanner_character_classes_(new ScannerCharacterClasses()) {
heap_.isolate_ = this;
stack_guard_.isolate_ = this;
@@ -134,6 +136,9 @@ Isolate::Isolate()
Isolate::~Isolate() {
+ delete scanner_character_classes_;
+ scanner_character_classes_ = NULL;
+
delete descriptor_lookup_cache_;
descriptor_lookup_cache_ = NULL;
delete context_slot_cache_;
« no previous file with comments | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698