Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/runtime/runtime-internal.cc

Issue 1316943002: Move (uppercase) JS builtins from js builtins object to native context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove Isolate::js_builtins_object Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698