| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |