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

Unified Diff: src/parser.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced 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/objects.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
===================================================================
--- src/parser.cc (revision 4906)
+++ src/parser.cc (working copy)
@@ -1276,7 +1276,7 @@
source->length(),
false));
} else if (scanner().stack_overflow()) {
- Top::StackOverflow();
+ Isolate::Current()->StackOverflow();
}
}
@@ -1331,7 +1331,7 @@
// If there was a stack overflow we have to get rid of AST and it is
// not safe to do before scope has been deleted.
if (result == NULL) {
- Top::StackOverflow();
+ Isolate::Current()->StackOverflow();
zone_scope.DeleteOnExit();
}
return result;
@@ -1373,7 +1373,7 @@
source->length(),
false));
} else if (scanner().stack_overflow()) {
- Top::StackOverflow();
+ Isolate::Current()->StackOverflow();
}
}
@@ -1402,7 +1402,7 @@
SetElement(array, i, Factory::NewStringFromUtf8(CStrVector(args[i])));
}
Handle<Object> result = Factory::NewSyntaxError(type, array);
- Top::Throw(*result, &location);
+ Isolate::Current()->Throw(*result, &location);
}
@@ -4295,7 +4295,7 @@
if (next_pos_ < in()->length()) {
StackLimitCheck check;
if (check.HasOverflowed()) {
- ReportError(CStrVector(Top::kStackOverflowMessage));
+ ReportError(CStrVector(Isolate::kStackOverflowMessage));
} else if (ZONE->excess_allocation()) {
ReportError(CStrVector("Regular expression too large"));
} else {
« no previous file with comments | « src/objects.cc ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698