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

Side by Side Diff: src/execution.cc

Issue 249503002: Trigger debug event on not yet caught exception in promises. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: always use original exception Created 6 years, 8 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 "execution.h" 5 #include "execution.h"
6 6
7 #include "bootstrapper.h" 7 #include "bootstrapper.h"
8 #include "codegen.h" 8 #include "codegen.h"
9 #include "deoptimizer.h" 9 #include "deoptimizer.h"
10 #include "isolate-inl.h" 10 #include "isolate-inl.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 309 }
310 310
311 311
312 void Execution::RunMicrotasks(Isolate* isolate) { 312 void Execution::RunMicrotasks(Isolate* isolate) {
313 ASSERT(isolate->microtask_pending()); 313 ASSERT(isolate->microtask_pending());
314 Execution::Call( 314 Execution::Call(
315 isolate, 315 isolate,
316 isolate->run_microtasks(), 316 isolate->run_microtasks(),
317 isolate->factory()->undefined_value(), 317 isolate->factory()->undefined_value(),
318 0, 318 0,
319 NULL).Assert(); 319 NULL).Check();
320 } 320 }
321 321
322 322
323 void Execution::EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask) { 323 void Execution::EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask) {
324 Handle<Object> args[] = { microtask }; 324 Handle<Object> args[] = { microtask };
325 Execution::Call( 325 Execution::Call(
326 isolate, 326 isolate,
327 isolate->enqueue_external_microtask(), 327 isolate->enqueue_external_microtask(),
328 isolate->factory()->undefined_value(), 328 isolate->factory()->undefined_value(),
329 1, 329 1,
330 args).Assert(); 330 args).Check();
331 } 331 }
332 332
333 333
334 bool StackGuard::IsStackOverflow() { 334 bool StackGuard::IsStackOverflow() {
335 ExecutionAccess access(isolate_); 335 ExecutionAccess access(isolate_);
336 return (thread_local_.jslimit_ != kInterruptLimit && 336 return (thread_local_.jslimit_ != kInterruptLimit &&
337 thread_local_.climit_ != kInterruptLimit); 337 thread_local_.climit_ != kInterruptLimit);
338 } 338 }
339 339
340 340
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 if (stack_guard->IsInstallCodeRequest()) { 985 if (stack_guard->IsInstallCodeRequest()) {
986 ASSERT(isolate->concurrent_recompilation_enabled()); 986 ASSERT(isolate->concurrent_recompilation_enabled());
987 stack_guard->Continue(INSTALL_CODE); 987 stack_guard->Continue(INSTALL_CODE);
988 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); 988 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions();
989 } 989 }
990 isolate->runtime_profiler()->OptimizeNow(); 990 isolate->runtime_profiler()->OptimizeNow();
991 return isolate->heap()->undefined_value(); 991 return isolate->heap()->undefined_value();
992 } 992 }
993 993
994 } } // namespace v8::internal 994 } } // namespace v8::internal
OLDNEW
« src/debug-debugger.js ('K') | « src/debug-debugger.js ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698