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

Side by Side Diff: src/bootstrapper.cc

Issue 2134803002: [builtins] Object.prototype.toString() as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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.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 2464 matching lines...) Expand 10 before | Expand all | Expand 10 after
2475 Handle<String> NAME##_name = factory->NewStringFromAsciiChecked(#NAME); \ 2475 Handle<String> NAME##_name = factory->NewStringFromAsciiChecked(#NAME); \
2476 JSObject::AddProperty(container, NAME##_name, factory->NAME(), NONE); 2476 JSObject::AddProperty(container, NAME##_name, factory->NAME(), NONE);
2477 PUBLIC_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL) 2477 PUBLIC_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL)
2478 WELL_KNOWN_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL) 2478 WELL_KNOWN_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL)
2479 #undef EXPORT_PUBLIC_SYMBOL 2479 #undef EXPORT_PUBLIC_SYMBOL
2480 2480
2481 { 2481 {
2482 Handle<JSFunction> to_string = InstallFunction( 2482 Handle<JSFunction> to_string = InstallFunction(
2483 container, "object_to_string", JS_OBJECT_TYPE, JSObject::kHeaderSize, 2483 container, "object_to_string", JS_OBJECT_TYPE, JSObject::kHeaderSize,
2484 MaybeHandle<JSObject>(), Builtins::kObjectProtoToString); 2484 MaybeHandle<JSObject>(), Builtins::kObjectProtoToString);
2485 to_string->shared()->DontAdaptArguments(); 2485 to_string->shared()->set_internal_formal_parameter_count(0);
2486 to_string->shared()->set_length(0); 2486 to_string->shared()->set_length(0);
2487 native_context->set_object_to_string(*to_string); 2487 native_context->set_object_to_string(*to_string);
2488 } 2488 }
2489 2489
2490 Handle<JSObject> iterator_prototype; 2490 Handle<JSObject> iterator_prototype;
2491 2491
2492 { 2492 {
2493 PrototypeIterator iter(native_context->generator_object_prototype_map()); 2493 PrototypeIterator iter(native_context->generator_object_prototype_map());
2494 iter.Advance(); // Advance to the prototype of generator_object_prototype. 2494 iter.Advance(); // Advance to the prototype of generator_object_prototype.
2495 iterator_prototype = Handle<JSObject>(iter.GetCurrent<JSObject>()); 2495 iterator_prototype = Handle<JSObject>(iter.GetCurrent<JSObject>());
(...skipping 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after
4101 } 4101 }
4102 4102
4103 4103
4104 // Called when the top-level V8 mutex is destroyed. 4104 // Called when the top-level V8 mutex is destroyed.
4105 void Bootstrapper::FreeThreadResources() { 4105 void Bootstrapper::FreeThreadResources() {
4106 DCHECK(!IsActive()); 4106 DCHECK(!IsActive());
4107 } 4107 }
4108 4108
4109 } // namespace internal 4109 } // namespace internal
4110 } // namespace v8 4110 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698