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

Side by Side Diff: src/isolate.cc

Issue 359723005: Add mechanism to postpone interrupts selectively. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-thread-termination.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 #ifdef USE_SIMULATOR 2364 #ifdef USE_SIMULATOR
2365 // The simulator uses a separate JS stack. 2365 // The simulator uses a separate JS stack.
2366 Address jssp_address = Simulator::current(isolate_)->get_sp(); 2366 Address jssp_address = Simulator::current(isolate_)->get_sp();
2367 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address); 2367 uintptr_t jssp = reinterpret_cast<uintptr_t>(jssp_address);
2368 if (jssp < stack_guard->real_jslimit()) return true; 2368 if (jssp < stack_guard->real_jslimit()) return true;
2369 #endif // USE_SIMULATOR 2369 #endif // USE_SIMULATOR
2370 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit(); 2370 return reinterpret_cast<uintptr_t>(this) < stack_guard->real_climit();
2371 } 2371 }
2372 2372
2373 2373
2374 bool PostponeInterruptsScope::Intercept(StackGuard::InterruptFlag flag) {
2375 // First check whether the previous scope intercepts.
2376 if (prev_ && prev_->Intercept(flag)) return true;
2377 // Then check whether this scope intercepts.
2378 if ((flag & intercept_mask_)) {
2379 intercepted_flags_ |= flag;
2380 return true;
2381 }
2382 return false;
2383 }
2384
2374 } } // namespace v8::internal 2385 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | test/cctest/test-thread-termination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698