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