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

Unified Diff: src/compiler.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/codegen.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 4906)
+++ src/compiler.cc (working copy)
@@ -172,8 +172,8 @@
PostponeInterruptsScope postpone;
- ASSERT(!i::Top::global_context().is_null());
- script->set_context_data((*i::Top::global_context())->data());
+ ASSERT(!i::Isolate::Current()->global_context().is_null());
+ script->set_context_data((*i::Isolate::Current()->global_context())->data());
bool is_json = (validate == Compiler::VALIDATE_JSON);
#ifdef ENABLE_DEBUGGER_SUPPORT
@@ -210,7 +210,7 @@
// Check for parse errors.
if (lit == NULL) {
- ASSERT(Top::has_pending_exception());
+ ASSERT(Isolate::Current()->has_pending_exception());
return Handle<SharedFunctionInfo>::null();
}
@@ -228,7 +228,7 @@
// Check for stack-overflow exceptions.
if (code.is_null()) {
- Top::StackOverflow();
+ Isolate::Current()->StackOverflow();
return Handle<SharedFunctionInfo>::null();
}
@@ -345,7 +345,7 @@
}
}
- if (result.is_null()) Top::ReportPendingMessages();
+ if (result.is_null()) Isolate::Current()->ReportPendingMessages();
return result;
}
@@ -423,7 +423,7 @@
// Check for parse errors.
if (lit == NULL) {
- ASSERT(Top::has_pending_exception());
+ ASSERT(Isolate::Current()->has_pending_exception());
return false;
}
info->set_function(lit);
@@ -438,7 +438,7 @@
// Check for stack-overflow exception.
if (code.is_null()) {
- Top::StackOverflow();
+ Isolate::Current()->StackOverflow();
return false;
}
« no previous file with comments | « src/codegen.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698