| 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/runtime/runtime-utils.h" | 5 #include "src/runtime/runtime-utils.h" |
| 6 | 6 |
| 7 #include "src/arguments.h" | 7 #include "src/arguments.h" |
| 8 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
| 9 #include "src/conversions.h" | 9 #include "src/conversions.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 if (index == Context::kNotFound) { | 55 if (index == Context::kNotFound) { |
| 56 index = Context::IntrinsicIndexForName(name); | 56 index = Context::IntrinsicIndexForName(name); |
| 57 } | 57 } |
| 58 RUNTIME_ASSERT(index != Context::kNotFound); | 58 RUNTIME_ASSERT(index != Context::kNotFound); |
| 59 native_context->set(index, *object); | 59 native_context->set(index, *object); |
| 60 } | 60 } |
| 61 return isolate->heap()->undefined_value(); | 61 return isolate->heap()->undefined_value(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 | 64 |
| 65 RUNTIME_FUNCTION(Runtime_InstallJSBuiltins) { | |
| 66 HandleScope scope(isolate); | |
| 67 DCHECK(args.length() == 1); | |
| 68 CONVERT_ARG_HANDLE_CHECKED(JSObject, container, 0); | |
| 69 RUNTIME_ASSERT(isolate->bootstrapper()->IsActive()); | |
| 70 Bootstrapper::InstallJSBuiltins(isolate, container); | |
| 71 return isolate->heap()->undefined_value(); | |
| 72 } | |
| 73 | |
| 74 | |
| 75 RUNTIME_FUNCTION(Runtime_Throw) { | 65 RUNTIME_FUNCTION(Runtime_Throw) { |
| 76 HandleScope scope(isolate); | 66 HandleScope scope(isolate); |
| 77 DCHECK(args.length() == 1); | 67 DCHECK(args.length() == 1); |
| 78 return isolate->Throw(args[0]); | 68 return isolate->Throw(args[0]); |
| 79 } | 69 } |
| 80 | 70 |
| 81 | 71 |
| 82 RUNTIME_FUNCTION(Runtime_ReThrow) { | 72 RUNTIME_FUNCTION(Runtime_ReThrow) { |
| 83 HandleScope scope(isolate); | 73 HandleScope scope(isolate); |
| 84 DCHECK(args.length() == 1); | 74 DCHECK(args.length() == 1); |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 } | 409 } |
| 420 | 410 |
| 421 | 411 |
| 422 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { | 412 RUNTIME_FUNCTION(Runtime_GetCodeStubExportsObject) { |
| 423 HandleScope shs(isolate); | 413 HandleScope shs(isolate); |
| 424 return isolate->heap()->code_stub_exports_object(); | 414 return isolate->heap()->code_stub_exports_object(); |
| 425 } | 415 } |
| 426 | 416 |
| 427 } // namespace internal | 417 } // namespace internal |
| 428 } // namespace v8 | 418 } // namespace v8 |
| OLD | NEW |