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

Side by Side Diff: src/bootstrapper.cc

Issue 1517963002: Move Object.assign implementation to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased Created 5 years 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 | « no previous file | src/builtins.h » ('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/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 Factory* factory = isolate->factory(); 1072 Factory* factory = isolate->factory();
1073 1073
1074 Handle<ScriptContextTable> script_context_table = 1074 Handle<ScriptContextTable> script_context_table =
1075 factory->NewScriptContextTable(); 1075 factory->NewScriptContextTable();
1076 native_context()->set_script_context_table(*script_context_table); 1076 native_context()->set_script_context_table(*script_context_table);
1077 InstallGlobalThisBinding(); 1077 InstallGlobalThisBinding();
1078 1078
1079 Handle<String> object_name = factory->Object_string(); 1079 Handle<String> object_name = factory->Object_string();
1080 JSObject::AddProperty( 1080 JSObject::AddProperty(
1081 global_object, object_name, isolate->object_function(), DONT_ENUM); 1081 global_object, object_name, isolate->object_function(), DONT_ENUM);
1082 SimpleInstallFunction(isolate->object_function(),
1083 isolate->factory()->InternalizeUtf8String("assign"),
1084 Builtins::kObjectAssign, 2, false);
1082 1085
1083 Handle<JSObject> global(native_context()->global_object()); 1086 Handle<JSObject> global(native_context()->global_object());
1084 1087
1085 { // --- F u n c t i o n --- 1088 { // --- F u n c t i o n ---
1086 Handle<JSFunction> function_function = 1089 Handle<JSFunction> function_function =
1087 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, 1090 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize,
1088 empty_function, Builtins::kIllegal); 1091 empty_function, Builtins::kIllegal);
1089 function_function->set_prototype_or_initial_map( 1092 function_function->set_prototype_or_initial_map(
1090 *sloppy_function_map_writable_prototype_); 1093 *sloppy_function_map_writable_prototype_);
1091 function_function->shared()->set_construct_stub( 1094 function_function->shared()->set_construct_stub(
(...skipping 2227 matching lines...) Expand 10 before | Expand all | Expand 10 after
3319 } 3322 }
3320 3323
3321 3324
3322 // Called when the top-level V8 mutex is destroyed. 3325 // Called when the top-level V8 mutex is destroyed.
3323 void Bootstrapper::FreeThreadResources() { 3326 void Bootstrapper::FreeThreadResources() {
3324 DCHECK(!IsActive()); 3327 DCHECK(!IsActive());
3325 } 3328 }
3326 3329
3327 } // namespace internal 3330 } // namespace internal
3328 } // namespace v8 3331 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698