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

Side by Side Diff: src/bootstrapper.cc

Issue 2953913002: [builtins] Don't adapt arguments for Object.create. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | src/builtins/builtins-definitions.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/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1264 Builtins::kObjectGetOwnPropertySymbols, 1, false); 1264 Builtins::kObjectGetOwnPropertySymbols, 1, false);
1265 SimpleInstallFunction(object_function, "is", 1265 SimpleInstallFunction(object_function, "is",
1266 Builtins::kObjectIs, 2, true); 1266 Builtins::kObjectIs, 2, true);
1267 SimpleInstallFunction(object_function, "preventExtensions", 1267 SimpleInstallFunction(object_function, "preventExtensions",
1268 Builtins::kObjectPreventExtensions, 1, false); 1268 Builtins::kObjectPreventExtensions, 1, false);
1269 SimpleInstallFunction(object_function, "seal", 1269 SimpleInstallFunction(object_function, "seal",
1270 Builtins::kObjectSeal, 1, false); 1270 Builtins::kObjectSeal, 1, false);
1271 1271
1272 Handle<JSFunction> object_create = 1272 Handle<JSFunction> object_create =
1273 SimpleInstallFunction(object_function, factory->create_string(), 1273 SimpleInstallFunction(object_function, factory->create_string(),
1274 Builtins::kObjectCreate, 2, true); 1274 Builtins::kObjectCreate, 2, false);
1275 native_context()->set_object_create(*object_create); 1275 native_context()->set_object_create(*object_create);
1276 1276
1277 Handle<JSFunction> object_define_properties = SimpleInstallFunction( 1277 Handle<JSFunction> object_define_properties = SimpleInstallFunction(
1278 object_function, "defineProperties", 1278 object_function, "defineProperties",
1279 Builtins::kObjectDefineProperties, 2, true); 1279 Builtins::kObjectDefineProperties, 2, true);
1280 native_context()->set_object_define_properties(*object_define_properties); 1280 native_context()->set_object_define_properties(*object_define_properties);
1281 1281
1282 Handle<JSFunction> object_define_property = SimpleInstallFunction( 1282 Handle<JSFunction> object_define_property = SimpleInstallFunction(
1283 object_function, factory->defineProperty_string(), 1283 object_function, factory->defineProperty_string(),
1284 Builtins::kObjectDefineProperty, 3, true); 1284 Builtins::kObjectDefineProperty, 3, true);
(...skipping 4071 matching lines...) Expand 10 before | Expand all | Expand 10 after
5356 } 5356 }
5357 5357
5358 5358
5359 // Called when the top-level V8 mutex is destroyed. 5359 // Called when the top-level V8 mutex is destroyed.
5360 void Bootstrapper::FreeThreadResources() { 5360 void Bootstrapper::FreeThreadResources() {
5361 DCHECK(!IsActive()); 5361 DCHECK(!IsActive());
5362 } 5362 }
5363 5363
5364 } // namespace internal 5364 } // namespace internal
5365 } // namespace v8 5365 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698