| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |