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

Side by Side Diff: src/runtime.cc

Issue 297303006: Some more debugger-related refactorings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
« src/debug.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 10705 matching lines...) Expand 10 before | Expand all | Expand 10 after
10716 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 10716 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
10717 isolate, result, 10717 isolate, result,
10718 JSObject::GetAccessor(Handle<JSObject>::cast(receiver), name, component)); 10718 JSObject::GetAccessor(Handle<JSObject>::cast(receiver), name, component));
10719 return *result; 10719 return *result;
10720 } 10720 }
10721 10721
10722 10722
10723 RUNTIME_FUNCTION(Runtime_DebugBreak) { 10723 RUNTIME_FUNCTION(Runtime_DebugBreak) {
10724 SealHandleScope shs(isolate); 10724 SealHandleScope shs(isolate);
10725 ASSERT(args.length() == 0); 10725 ASSERT(args.length() == 0);
10726 isolate->debug()->DebugBreakHelper(); 10726 isolate->debug()->HandleDebugBreak();
10727 return isolate->heap()->undefined_value(); 10727 return isolate->heap()->undefined_value();
10728 } 10728 }
10729 10729
10730 10730
10731 // Helper functions for wrapping and unwrapping stack frame ids. 10731 // Helper functions for wrapping and unwrapping stack frame ids.
10732 static Smi* WrapFrameId(StackFrame::Id id) { 10732 static Smi* WrapFrameId(StackFrame::Id id) {
10733 ASSERT(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4))); 10733 ASSERT(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4)));
10734 return Smi::FromInt(id >> 2); 10734 return Smi::FromInt(id >> 2);
10735 } 10735 }
10736 10736
(...skipping 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after
15171 } 15171 }
15172 return NULL; 15172 return NULL;
15173 } 15173 }
15174 15174
15175 15175
15176 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15176 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15177 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15177 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15178 } 15178 }
15179 15179
15180 } } // namespace v8::internal 15180 } } // namespace v8::internal
OLDNEW
« src/debug.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698