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

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

Issue 1010883002: Switch full-codegen from StackHandlers to handler table. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-isolate-dead-code
Patch Set: Fix debugger-pause-on-promise-rejection. Created 5 years, 9 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
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-generator.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 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/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after
2774 // When leaving the function, step out has been activated, but not performed 2774 // When leaving the function, step out has been activated, but not performed
2775 // if we do not leave the builtin. To be able to step into the function 2775 // if we do not leave the builtin. To be able to step into the function
2776 // again, we need to clear the step out at this point. 2776 // again, we need to clear the step out at this point.
2777 debug->ClearStepOut(); 2777 debug->ClearStepOut();
2778 debug->FloodWithOneShot(fun); 2778 debug->FloodWithOneShot(fun);
2779 return isolate->heap()->undefined_value(); 2779 return isolate->heap()->undefined_value();
2780 } 2780 }
2781 2781
2782 2782
2783 RUNTIME_FUNCTION(Runtime_DebugPushPromise) { 2783 RUNTIME_FUNCTION(Runtime_DebugPushPromise) {
2784 DCHECK(args.length() == 1); 2784 DCHECK(args.length() == 2);
2785 HandleScope scope(isolate); 2785 HandleScope scope(isolate);
2786 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0); 2786 CONVERT_ARG_HANDLE_CHECKED(JSObject, promise, 0);
2787 isolate->PushPromise(promise); 2787 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 1);
2788 isolate->PushPromise(promise, function);
2788 return isolate->heap()->undefined_value(); 2789 return isolate->heap()->undefined_value();
2789 } 2790 }
2790 2791
2791 2792
2792 RUNTIME_FUNCTION(Runtime_DebugPopPromise) { 2793 RUNTIME_FUNCTION(Runtime_DebugPopPromise) {
2793 DCHECK(args.length() == 0); 2794 DCHECK(args.length() == 0);
2794 SealHandleScope shs(isolate); 2795 SealHandleScope shs(isolate);
2795 isolate->PopPromise(); 2796 isolate->PopPromise();
2796 return isolate->heap()->undefined_value(); 2797 return isolate->heap()->undefined_value();
2797 } 2798 }
(...skipping 22 matching lines...) Expand all
2820 return Smi::FromInt(isolate->debug()->is_active()); 2821 return Smi::FromInt(isolate->debug()->is_active());
2821 } 2822 }
2822 2823
2823 2824
2824 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 2825 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
2825 UNIMPLEMENTED(); 2826 UNIMPLEMENTED();
2826 return NULL; 2827 return NULL;
2827 } 2828 }
2828 } 2829 }
2829 } // namespace v8::internal 2830 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698