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

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: Make mips work 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
« no previous file with comments | « src/runtime/runtime.h ('k') | src/snapshot/serialize.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"
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) {
20 SealHandleScope shs(isolate); 20 SealHandleScope shs(isolate);
21 DCHECK(args.length() == 0); 21 DCHECK(args.length() == 0);
22 // Get the top-most JavaScript frame.
23 JavaScriptFrameIterator it(isolate);
24 isolate->debug()->Break(args, it.frame());
25 isolate->debug()->SetAfterBreakTarget(it.frame());
26 return isolate->heap()->undefined_value();
27 }
28
29
30 RUNTIME_FUNCTION(Runtime_HandleDebuggerStatement) {
31 SealHandleScope shs(isolate);
32 DCHECK(args.length() == 0);
22 isolate->debug()->HandleDebugBreak(); 33 isolate->debug()->HandleDebugBreak();
23 return isolate->heap()->undefined_value(); 34 return isolate->heap()->undefined_value();
24 } 35 }
25 36
26 37
27 // Helper functions for wrapping and unwrapping stack frame ids. 38 // Helper functions for wrapping and unwrapping stack frame ids.
28 static Smi* WrapFrameId(StackFrame::Id id) { 39 static Smi* WrapFrameId(StackFrame::Id id) {
29 DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4))); 40 DCHECK(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4)));
30 return Smi::FromInt(id >> 2); 41 return Smi::FromInt(id >> 2);
31 } 42 }
(...skipping 3148 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 return *isolate->factory()->undefined_value(); 3191 return *isolate->factory()->undefined_value();
3181 } 3192 }
3182 3193
3183 3194
3184 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 3195 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
3185 UNIMPLEMENTED(); 3196 UNIMPLEMENTED();
3186 return NULL; 3197 return NULL;
3187 } 3198 }
3188 } // namespace internal 3199 } // namespace internal
3189 } // namespace v8 3200 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698