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 <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/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 DCHECK(args.length() == 4); | 407 DCHECK(args.length() == 4); |
408 CONVERT_ARG_HANDLE_CHECKED(Object, receiver, 0); | 408 CONVERT_ARG_HANDLE_CHECKED(Object, receiver, 0); |
409 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1); | 409 CONVERT_ARG_HANDLE_CHECKED(JSObject, home_object, 1); |
410 CONVERT_ARG_HANDLE_CHECKED(Object, key, 2); | 410 CONVERT_ARG_HANDLE_CHECKED(Object, key, 2); |
411 CONVERT_ARG_HANDLE_CHECKED(Object, value, 3); | 411 CONVERT_ARG_HANDLE_CHECKED(Object, value, 3); |
412 | 412 |
413 return StoreKeyedToSuper(isolate, home_object, receiver, key, value, SLOPPY); | 413 return StoreKeyedToSuper(isolate, home_object, receiver, key, value, SLOPPY); |
414 } | 414 } |
415 | 415 |
416 | 416 |
| 417 RUNTIME_FUNCTION(Runtime_HandleStepInForDerivedConstructors) { |
| 418 HandleScope scope(isolate); |
| 419 DCHECK(args.length() == 1); |
| 420 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| 421 Debug* debug = isolate->debug(); |
| 422 // Handle stepping into constructors if step into is active. |
| 423 if (debug->StepInActive()) { |
| 424 debug->HandleStepIn(function, Handle<Object>::null(), 0, true); |
| 425 } |
| 426 return *isolate->factory()->undefined_value(); |
| 427 } |
| 428 |
| 429 |
417 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) { | 430 RUNTIME_FUNCTION(RuntimeReference_DefaultConstructorCallSuper) { |
418 UNREACHABLE(); | 431 UNREACHABLE(); |
419 return nullptr; | 432 return nullptr; |
420 } | 433 } |
421 | 434 |
422 | 435 |
423 // TODO(dslomov): deprecated, will remove when experimenal classes is default. | 436 // TODO(dslomov): deprecated, will remove when experimenal classes is default. |
424 RUNTIME_FUNCTION(Runtime_DefaultConstructorSuperCall) { | 437 RUNTIME_FUNCTION(Runtime_DefaultConstructorSuperCall) { |
425 CHECK(!FLAG_experimental_classes); | 438 CHECK(!FLAG_experimental_classes); |
426 HandleScope scope(isolate); | 439 HandleScope scope(isolate); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 } | 475 } |
463 | 476 |
464 Handle<Object> result; | 477 Handle<Object> result; |
465 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( | 478 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
466 isolate, result, | 479 isolate, result, |
467 Execution::Call(isolate, proto_function, receiver, argc, argv, false)); | 480 Execution::Call(isolate, proto_function, receiver, argc, argv, false)); |
468 return *result; | 481 return *result; |
469 } | 482 } |
470 } | 483 } |
471 } // namespace v8::internal | 484 } // namespace v8::internal |
OLD | NEW |