| 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 "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 11019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11030 // args[0]: object | 11030 // args[0]: object |
| 11031 // args[1]: property name | 11031 // args[1]: property name |
| 11032 RUNTIME_FUNCTION(Runtime_DebugNamedInterceptorPropertyValue) { | 11032 RUNTIME_FUNCTION(Runtime_DebugNamedInterceptorPropertyValue) { |
| 11033 HandleScope scope(isolate); | 11033 HandleScope scope(isolate); |
| 11034 ASSERT(args.length() == 2); | 11034 ASSERT(args.length() == 2); |
| 11035 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 11035 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
| 11036 RUNTIME_ASSERT(obj->HasNamedInterceptor()); | 11036 RUNTIME_ASSERT(obj->HasNamedInterceptor()); |
| 11037 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); | 11037 CONVERT_ARG_HANDLE_CHECKED(Name, name, 1); |
| 11038 | 11038 |
| 11039 Handle<Object> result; | 11039 Handle<Object> result; |
| 11040 LookupIterator it(obj, name, obj); | |
| 11041 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 11040 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 11042 isolate, result, JSObject::GetProperty(&it)); | 11041 isolate, result, JSObject::GetProperty(obj, name)); |
| 11043 return *result; | 11042 return *result; |
| 11044 } | 11043 } |
| 11045 | 11044 |
| 11046 | 11045 |
| 11047 // Return element value from indexed interceptor. | 11046 // Return element value from indexed interceptor. |
| 11048 // args[0]: object | 11047 // args[0]: object |
| 11049 // args[1]: index | 11048 // args[1]: index |
| 11050 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) { | 11049 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) { |
| 11051 HandleScope scope(isolate); | 11050 HandleScope scope(isolate); |
| 11052 ASSERT(args.length() == 2); | 11051 ASSERT(args.length() == 2); |
| (...skipping 4158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15211 } | 15210 } |
| 15212 return NULL; | 15211 return NULL; |
| 15213 } | 15212 } |
| 15214 | 15213 |
| 15215 | 15214 |
| 15216 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { | 15215 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { |
| 15217 return &(kIntrinsicFunctions[static_cast<int>(id)]); | 15216 return &(kIntrinsicFunctions[static_cast<int>(id)]); |
| 15218 } | 15217 } |
| 15219 | 15218 |
| 15220 } } // namespace v8::internal | 15219 } } // namespace v8::internal |
| OLD | NEW |