| 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 11024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11035 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); | 11035 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); |
| 11036 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); | 11036 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); |
| 11037 Handle<Object> result; | 11037 Handle<Object> result; |
| 11038 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 11038 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 11039 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index)); | 11039 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index)); |
| 11040 return *result; | 11040 return *result; |
| 11041 } | 11041 } |
| 11042 | 11042 |
| 11043 | 11043 |
| 11044 static bool CheckExecutionState(Isolate* isolate, int break_id) { | 11044 static bool CheckExecutionState(Isolate* isolate, int break_id) { |
| 11045 return (isolate->debug()->break_id() != 0 && | 11045 return !isolate->debug()->debug_context().is_null() && |
| 11046 break_id == isolate->debug()->break_id()); | 11046 isolate->debug()->break_id() != 0 && |
| 11047 isolate->debug()->break_id() == break_id; |
| 11047 } | 11048 } |
| 11048 | 11049 |
| 11049 | 11050 |
| 11050 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { | 11051 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { |
| 11051 SealHandleScope shs(isolate); | 11052 SealHandleScope shs(isolate); |
| 11052 ASSERT(args.length() == 1); | 11053 ASSERT(args.length() == 1); |
| 11053 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); | 11054 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
| 11054 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id)); | 11055 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id)); |
| 11055 return isolate->heap()->true_value(); | 11056 return isolate->heap()->true_value(); |
| 11056 } | 11057 } |
| (...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15228 } | 15229 } |
| 15229 return NULL; | 15230 return NULL; |
| 15230 } | 15231 } |
| 15231 | 15232 |
| 15232 | 15233 |
| 15233 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15234 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
| 15234 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15235 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
| 15235 } | 15236 } |
| 15236 | 15237 |
| 15237 } } // namespace v8::internal | 15238 } } // namespace v8::internal |
| OLD | NEW |