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

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 653023004: Work in progress: allow pause-on-exceptions to work in Object.observe callbacks (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/debug.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 2666 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 // again, we need to clear the step out at this point. 2677 // again, we need to clear the step out at this point.
2678 debug->ClearStepOut(); 2678 debug->ClearStepOut();
2679 debug->FloodWithOneShot(fun); 2679 debug->FloodWithOneShot(fun);
2680 return isolate->heap()->undefined_value(); 2680 return isolate->heap()->undefined_value();
2681 } 2681 }
2682 2682
2683 2683
2684 RUNTIME_FUNCTION(Runtime_DebugPushPromise) { 2684 RUNTIME_FUNCTION(Runtime_DebugPushPromise) {
2685 DCHECK(args.length() == 1); 2685 DCHECK(args.length() == 1);
2686 HandleScope scope(isolate); 2686 HandleScope scope(isolate);
2687 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); 2687 CONVERT_ARG_HANDLE_CHECKED(Object, promise, 0);
2688 isolate->PushPromise(promise); 2688 isolate->PushPromise(promise);
2689 return isolate->heap()->undefined_value(); 2689 return isolate->heap()->undefined_value();
2690 } 2690 }
2691 2691
2692 2692
2693 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { 2693 RUNTIME_FUNCTION(Runtime_DebugPopPromise) {
2694 DCHECK(args.length() == 0); 2694 DCHECK(args.length() == 0);
2695 SealHandleScope shs(isolate); 2695 SealHandleScope shs(isolate);
2696 isolate->PopPromise(); 2696 isolate->PopPromise();
2697 return isolate->heap()->undefined_value(); 2697 return isolate->heap()->undefined_value();
(...skipping 23 matching lines...) Expand all
2721 return Smi::FromInt(isolate->debug()->is_active()); 2721 return Smi::FromInt(isolate->debug()->is_active());
2722 } 2722 }
2723 2723
2724 2724
2725 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) { 2725 RUNTIME_FUNCTION(RuntimeReference_DebugBreakInOptimizedCode) {
2726 UNIMPLEMENTED(); 2726 UNIMPLEMENTED();
2727 return NULL; 2727 return NULL;
2728 } 2728 }
2729 } 2729 }
2730 } // namespace v8::internal 2730 } // namespace v8::internal
OLDNEW
« src/object-observe.js ('K') | « src/object-observe.js ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698