OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 // Return element value from indexed interceptor. | 415 // Return element value from indexed interceptor. |
416 // args[0]: object | 416 // args[0]: object |
417 // args[1]: index | 417 // args[1]: index |
418 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) { | 418 RUNTIME_FUNCTION(Runtime_DebugIndexedInterceptorElementValue) { |
419 HandleScope scope(isolate); | 419 HandleScope scope(isolate); |
420 DCHECK(args.length() == 2); | 420 DCHECK(args.length() == 2); |
421 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); | 421 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); |
422 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); | 422 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); |
423 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); | 423 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); |
424 Handle<Object> result; | 424 Handle<Object> result; |
425 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 425 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, |
426 isolate, result, | 426 Object::GetElement(isolate, obj, index)); |
427 JSObject::GetElementWithInterceptor(obj, obj, index, true)); | |
428 return *result; | 427 return *result; |
429 } | 428 } |
430 | 429 |
431 | 430 |
432 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { | 431 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { |
433 SealHandleScope shs(isolate); | 432 SealHandleScope shs(isolate); |
434 DCHECK(args.length() == 1); | 433 DCHECK(args.length() == 1); |
435 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); | 434 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); |
436 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); | 435 RUNTIME_ASSERT(isolate->debug()->CheckExecutionState(break_id)); |
437 return isolate->heap()->true_value(); | 436 return isolate->heap()->true_value(); |
(...skipping 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3210 return Smi::FromInt(isolate->debug()->is_active()); | 3209 return Smi::FromInt(isolate->debug()->is_active()); |
3211 } | 3210 } |
3212 | 3211 |
3213 | 3212 |
3214 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { | 3213 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { |
3215 UNIMPLEMENTED(); | 3214 UNIMPLEMENTED(); |
3216 return NULL; | 3215 return NULL; |
3217 } | 3216 } |
3218 } // namespace internal | 3217 } // namespace internal |
3219 } // namespace v8 | 3218 } // namespace v8 |
OLD | NEW |