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

Unified Diff: src/runtime.cc

Issue 2715004: [Isolates]... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Address comments/make StackGuard::ThreadLocal::Initialize/Clear side-effects visible 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
« src/execution.cc ('K') | « src/isolate.cc ('k') | src/top.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
===================================================================
--- src/runtime.cc (revision 4831)
+++ src/runtime.cc (working copy)
@@ -6999,9 +6999,9 @@
static Object* Runtime_StackGuard(Arguments args) {
ASSERT(args.length() == 1);
-
+ Isolate* isolate = Isolate::Current();
// First check if this is a real stack overflow.
- if (StackGuard::IsStackOverflow()) {
+ if (isolate->stack_guard()->IsStackOverflow()) {
return Runtime_StackOverflow(args);
}
@@ -7949,8 +7949,9 @@
static Object* Runtime_Break(Arguments args) {
ASSERT(args.length() == 0);
- StackGuard::DebugBreak();
- return HEAP->undefined_value();
+ Isolate* isolate = Isolate::Current();
+ isolate->stack_guard()->DebugBreak();
+ return isolate->heap()->undefined_value();
}
« src/execution.cc ('K') | « src/isolate.cc ('k') | src/top.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698