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

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

Issue 1248303002: Unify runtime-style IC functions with Runtime intrinsics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 5 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
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"
11 #include "src/deoptimizer.h" 11 #include "src/deoptimizer.h"
12 #include "src/parser.h" 12 #include "src/parser.h"
13 #include "src/runtime/runtime.h" 13 #include "src/runtime/runtime.h"
14 #include "src/runtime/runtime-utils.h" 14 #include "src/runtime/runtime-utils.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 18
19 RUNTIME_FUNCTION(Runtime_DebugBreak) { 19 RUNTIME_FUNCTION(Runtime_DebugBreak) {
Michael Starzinger 2015/07/23 11:36:15 nit: Can we add the following boilerplate to the t
danno 2015/07/23 11:50:22 Done.
20 // Get the top-most JavaScript frame.
21 JavaScriptFrameIterator it(isolate);
22 isolate->debug()->Break(args, it.frame());
23 isolate->debug()->SetAfterBreakTarget(it.frame());
24 return isolate->heap()->undefined_value();
25 }
26
27
28 RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) {
20 SealHandleScope shs(isolate); 29 SealHandleScope shs(isolate);
21 DCHECK(args.length() == 0); 30 DCHECK(args.length() == 0);
22 isolate->debug()->HandleDebugBreak(); 31 isolate->debug()->HandleDebugBreak();
23 return isolate->heap()->undefined_value(); 32 return isolate->heap()->undefined_value();
24 } 33 }
25 34
26 35
27 // Helper functions for wrapping and unwrapping stack frame ids. 36 // Helper functions for wrapping and unwrapping stack frame ids.
28 static Smi* WrapFrameId(StackFrame::Id id) { 37 static Smi* WrapFrameId(StackFrame::Id id) {
29 DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4))); 38 DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4)));
(...skipping 3150 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 return *isolate->factory()->undefined_value(); 3189 return *isolate->factory()->undefined_value();
3181 } 3190 }
3182 3191
3183 3192
3184 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 3193 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
3185 UNIMPLEMENTED(); 3194 UNIMPLEMENTED();
3186 return NULL; 3195 return NULL;
3187 } 3196 }
3188 } // namespace internal 3197 } // namespace internal
3189 } // namespace v8 3198 } // namespace v8
OLDNEW
« src/runtime/runtime.h ('K') | « src/runtime/runtime.h ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698