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

Side by Side Diff: src/builtins/builtins-constructor.h

Issue 2614373002: [FeedbackVector] Infrastructure for literal arrays in the vector. (Closed)
Patch Set: Release compile fix. Created 3 years, 11 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/ast/ast-numbering.cc ('k') | src/builtins/builtins-constructor.cc » ('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/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
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
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/builtins/builtins-constructor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698