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()->break_id() != 0 && | 11047 return !isolate->debug()->debug_context().is_null() && |
11048 break_id == isolate->debug()->break_id()); | 11048 isolate->debug()->break_id() != 0 && |
| 11049 isolate->debug()->break_id() == break_id; |
11049 } | 11050 } |
11050 | 11051 |
11051 | 11052 |
11052 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { | 11053 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { |
11053 SealHandleScope shs(isolate); | 11054 SealHandleScope shs(isolate); |
11054 ASSERT(args.length() == 1); | 11055 ASSERT(args.length() == 1); |
11055 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); | 11056 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
11056 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id)); | 11057 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id)); |
11057 return isolate->heap()->true_value(); | 11058 return isolate->heap()->true_value(); |
11058 } | 11059 } |
(...skipping 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15222 } | 15223 } |
15223 return NULL; | 15224 return NULL; |
15224 } | 15225 } |
15225 | 15226 |
15226 | 15227 |
15227 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15228 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
15228 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15229 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
15229 } | 15230 } |
15230 | 15231 |
15231 } } // namespace v8::internal | 15232 } } // namespace v8::internal |
OLD | NEW |