| 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/arguments.h" | 10 #include "src/arguments.h" |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) { | 456 RUNTIME_FUNCTION(Runtime_DefaultConstructorCallSuper) { |
| 457 UNIMPLEMENTED(); | 457 UNIMPLEMENTED(); |
| 458 return nullptr; | 458 return nullptr; |
| 459 } | 459 } |
| 460 | 460 |
| 461 | 461 |
| 462 RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) { | 462 RUNTIME_FUNCTION(Runtime_CallSuperWithSpread) { |
| 463 UNIMPLEMENTED(); | 463 UNIMPLEMENTED(); |
| 464 return nullptr; | 464 return nullptr; |
| 465 } | 465 } |
| 466 |
| 467 |
| 468 RUNTIME_FUNCTION(Runtime_LoadHomeObject) { |
| 469 HandleScope scope(isolate); |
| 470 DCHECK(args.length() == 1); |
| 471 CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
| 472 |
| 473 Handle<Object> home_object; |
| 474 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
| 475 isolate, home_object, |
| 476 Object::GetProperty(function, isolate->factory()->home_object_symbol())); |
| 477 DCHECK(home_object->IsJSReceiver()); |
| 478 return *home_object; |
| 479 } |
| 466 } | 480 } |
| 467 } // namespace v8::internal | 481 } // namespace v8::internal |
| OLD | NEW |