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/code-stub-assembler.h" | 5 #include "src/code-stub-assembler.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 | 9 |
10 typedef compiler::Node Node; | 10 typedef compiler::Node Node; |
11 typedef compiler::CodeAssemblerState CodeAssemblerState; | 11 typedef compiler::CodeAssemblerState CodeAssemblerState; |
12 typedef compiler::CodeAssemblerLabel CodeAssemblerLabel; | 12 typedef compiler::CodeAssemblerLabel CodeAssemblerLabel; |
13 | 13 |
14 class ConstructorBuiltinsAssembler : public CodeStubAssembler { | 14 class ConstructorBuiltinsAssembler : public CodeStubAssembler { |
15 public: | 15 public: |
16 explicit ConstructorBuiltinsAssembler(CodeAssemblerState* state) | 16 explicit ConstructorBuiltinsAssembler(CodeAssemblerState* state) |
17 : CodeStubAssembler(state) {} | 17 : CodeStubAssembler(state) {} |
18 | 18 |
19 Node* EmitFastNewClosure(Node* shared_info, Node* context); | 19 Node* EmitFastNewClosure(Node* shared_info, Node* feedback_vector, Node* slot, |
| 20 Node* context); |
20 Node* EmitFastNewFunctionContext(Node* closure, Node* slots, Node* context, | 21 Node* EmitFastNewFunctionContext(Node* closure, Node* slots, Node* context, |
21 ScopeType scope_type); | 22 ScopeType scope_type); |
22 static int MaximumFunctionContextSlots(); | 23 static int MaximumFunctionContextSlots(); |
23 | 24 |
24 Node* EmitFastCloneRegExp(Node* closure, Node* literal_index, Node* pattern, | 25 Node* EmitFastCloneRegExp(Node* closure, Node* literal_index, Node* pattern, |
25 Node* flags, Node* context); | 26 Node* flags, Node* context); |
26 Node* EmitFastCloneShallowArray(Node* closure, Node* literal_index, | 27 Node* EmitFastCloneShallowArray(Node* closure, Node* literal_index, |
27 Node* context, | 28 Node* context, |
28 CodeAssemblerLabel* call_runtime, | 29 CodeAssemblerLabel* call_runtime, |
29 AllocationSiteMode allocation_site_mode); | 30 AllocationSiteMode allocation_site_mode); |
(...skipping 28 matching lines...) Expand all Loading... |
58 Node* capacity, ElementsKind kind); | 59 Node* capacity, ElementsKind kind); |
59 | 60 |
60 // FastNewFunctionContext can only allocate closures which fit in the | 61 // FastNewFunctionContext can only allocate closures which fit in the |
61 // new space. | 62 // new space. |
62 STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize + | 63 STATIC_ASSERT(((kMaximumSlots + Context::MIN_CONTEXT_SLOTS) * kPointerSize + |
63 FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize); | 64 FixedArray::kHeaderSize) < kMaxRegularHeapObjectSize); |
64 }; | 65 }; |
65 | 66 |
66 } // namespace internal | 67 } // namespace internal |
67 } // namespace v8 | 68 } // namespace v8 |
OLD | NEW |