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

Side by Side Diff: src/builtins/builtins-constructor-gen.cc

Issue 2890023004: [turbofan] Avoid allocating rest parameters for spread calls. (Closed)
Patch Set: Created 3 years, 7 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/builtins/builtins-call-gen.cc ('k') | 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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/builtins/builtins-constructor-gen.h" 5 #include "src/builtins/builtins-constructor-gen.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/builtins/builtins-constructor.h" 8 #include "src/builtins/builtins-constructor.h"
9 #include "src/builtins/builtins-utils-gen.h" 9 #include "src/builtins/builtins-utils-gen.h"
10 #include "src/builtins/builtins.h" 10 #include "src/builtins/builtins.h"
11 #include "src/code-factory.h" 11 #include "src/code-factory.h"
12 #include "src/code-stub-assembler.h" 12 #include "src/code-stub-assembler.h"
13 #include "src/counters.h" 13 #include "src/counters.h"
14 #include "src/interface-descriptors.h" 14 #include "src/interface-descriptors.h"
15 #include "src/objects-inl.h" 15 #include "src/objects-inl.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 void Builtins::Generate_ConstructForwardVarargs(MacroAssembler* masm) {
21 Generate_ForwardVarargs(masm, masm->isolate()->builtins()->Construct());
22 }
23
24 void Builtins::Generate_ConstructFunctionForwardVarargs(MacroAssembler* masm) {
25 Generate_ForwardVarargs(masm,
26 masm->isolate()->builtins()->ConstructFunction());
27 }
28
20 typedef compiler::Node Node; 29 typedef compiler::Node Node;
21 30
22 Node* ConstructorBuiltinsAssembler::EmitFastNewClosure(Node* shared_info, 31 Node* ConstructorBuiltinsAssembler::EmitFastNewClosure(Node* shared_info,
23 Node* feedback_vector, 32 Node* feedback_vector,
24 Node* slot, 33 Node* slot,
25 Node* context) { 34 Node* context) {
26 Isolate* isolate = this->isolate(); 35 Isolate* isolate = this->isolate();
27 Factory* factory = isolate->factory(); 36 Factory* factory = isolate->factory();
28 IncrementCounter(isolate->counters()->fast_new_closure_total(), 1); 37 IncrementCounter(isolate->counters()->fast_new_closure_total(), 1);
29 38
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 SHALLOW_OBJECT_BUILTIN(0); 700 SHALLOW_OBJECT_BUILTIN(0);
692 SHALLOW_OBJECT_BUILTIN(1); 701 SHALLOW_OBJECT_BUILTIN(1);
693 SHALLOW_OBJECT_BUILTIN(2); 702 SHALLOW_OBJECT_BUILTIN(2);
694 SHALLOW_OBJECT_BUILTIN(3); 703 SHALLOW_OBJECT_BUILTIN(3);
695 SHALLOW_OBJECT_BUILTIN(4); 704 SHALLOW_OBJECT_BUILTIN(4);
696 SHALLOW_OBJECT_BUILTIN(5); 705 SHALLOW_OBJECT_BUILTIN(5);
697 SHALLOW_OBJECT_BUILTIN(6); 706 SHALLOW_OBJECT_BUILTIN(6);
698 707
699 } // namespace internal 708 } // namespace internal
700 } // namespace v8 709 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins/builtins-call-gen.cc ('k') | src/builtins/builtins-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698