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

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: fix 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
« no previous file with comments | « 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 10680 matching lines...) Expand 10 before | Expand all | Expand 10 after
10691 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 10691 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
10692 isolate, result, 10692 isolate, result,
10693 JSObject::GetAccessor(Handle<JSObject>::cast(receiver), name, component)); 10693 JSObject::GetAccessor(Handle<JSObject>::cast(receiver), name, component));
10694 return *result; 10694 return *result;
10695 } 10695 }
10696 10696
10697 10697
10698 RUNTIME_FUNCTION(Runtime_DebugBreak) { 10698 RUNTIME_FUNCTION(Runtime_DebugBreak) {
10699 SealHandleScope shs(isolate); 10699 SealHandleScope shs(isolate);
10700 ASSERT(args.length() == 0); 10700 ASSERT(args.length() == 0);
10701 isolate->debug()->DebugBreakHelper(); 10701 isolate->debug()->HandleDebugBreak();
10702 return isolate->heap()->undefined_value(); 10702 return isolate->heap()->undefined_value();
10703 } 10703 }
10704 10704
10705 10705
10706 // Helper functions for wrapping and unwrapping stack frame ids. 10706 // Helper functions for wrapping and unwrapping stack frame ids.
10707 static Smi* WrapFrameId(StackFrame::Id id) { 10707 static Smi* WrapFrameId(StackFrame::Id id) {
10708 ASSERT(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4))); 10708 ASSERT(IsAligned(OffsetFrom(id), static_cast<intptr_t>(4)));
10709 return Smi::FromInt(id >> 2); 10709 return Smi::FromInt(id >> 2);
10710 } 10710 }
10711 10711
(...skipping 4406 matching lines...) Expand 10 before | Expand all | Expand 10 after
15118 } 15118 }
15119 return NULL; 15119 return NULL;
15120 } 15120 }
15121 15121
15122 15122
15123 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15123 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15124 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15124 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15125 } 15125 }
15126 15126
15127 } } // namespace v8::internal 15127 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698