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

Side by Side Diff: src/compiler/js-create-lowering.h

Issue 2394783002: [turbofan] Properly specialize JSCreateIterResultObject map. (Closed)
Patch Set: Fix typo. Created 4 years, 2 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/compiler/js-create-lowering.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 #ifndef V8_COMPILER_JS_CREATE_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_CREATE_LOWERING_H_
6 #define V8_COMPILER_JS_CREATE_LOWERING_H_ 6 #define V8_COMPILER_JS_CREATE_LOWERING_H_
7 7
8 #include "src/compiler/graph-reducer.h" 8 #include "src/compiler/graph-reducer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 13 matching lines...) Expand all
24 class JSOperatorBuilder; 24 class JSOperatorBuilder;
25 class MachineOperatorBuilder; 25 class MachineOperatorBuilder;
26 class SimplifiedOperatorBuilder; 26 class SimplifiedOperatorBuilder;
27 27
28 28
29 // Lowers JSCreate-level operators to fast (inline) allocations. 29 // Lowers JSCreate-level operators to fast (inline) allocations.
30 class JSCreateLowering final : public AdvancedReducer { 30 class JSCreateLowering final : public AdvancedReducer {
31 public: 31 public:
32 JSCreateLowering(Editor* editor, CompilationDependencies* dependencies, 32 JSCreateLowering(Editor* editor, CompilationDependencies* dependencies,
33 JSGraph* jsgraph, MaybeHandle<LiteralsArray> literals_array, 33 JSGraph* jsgraph, MaybeHandle<LiteralsArray> literals_array,
34 Zone* zone) 34 MaybeHandle<Context> native_context, Zone* zone)
35 : AdvancedReducer(editor), 35 : AdvancedReducer(editor),
36 dependencies_(dependencies), 36 dependencies_(dependencies),
37 jsgraph_(jsgraph), 37 jsgraph_(jsgraph),
38 literals_array_(literals_array), 38 literals_array_(literals_array),
39 native_context_(native_context),
39 zone_(zone) {} 40 zone_(zone) {}
40 ~JSCreateLowering() final {} 41 ~JSCreateLowering() final {}
41 42
42 Reduction Reduce(Node* node) final; 43 Reduction Reduce(Node* node) final;
43 44
44 private: 45 private:
45 Reduction ReduceJSCreate(Node* node); 46 Reduction ReduceJSCreate(Node* node);
46 Reduction ReduceJSCreateArguments(Node* node); 47 Reduction ReduceJSCreateArguments(Node* node);
47 Reduction ReduceJSCreateArray(Node* node); 48 Reduction ReduceJSCreateArray(Node* node);
48 Reduction ReduceJSCreateClosure(Node* node); 49 Reduction ReduceJSCreateClosure(Node* node);
(...skipping 20 matching lines...) Expand all
69 AllocationSiteUsageContext* site_context); 70 AllocationSiteUsageContext* site_context);
70 Node* AllocateFastLiteralElements(Node* effect, Node* control, 71 Node* AllocateFastLiteralElements(Node* effect, Node* control,
71 Handle<JSObject> boilerplate, 72 Handle<JSObject> boilerplate,
72 PretenureFlag pretenure, 73 PretenureFlag pretenure,
73 AllocationSiteUsageContext* site_context); 74 AllocationSiteUsageContext* site_context);
74 75
75 Reduction ReduceNewArrayToStubCall(Node* node, Handle<AllocationSite> site); 76 Reduction ReduceNewArrayToStubCall(Node* node, Handle<AllocationSite> site);
76 77
77 // Infers the LiteralsArray to use for a given {node}. 78 // Infers the LiteralsArray to use for a given {node}.
78 MaybeHandle<LiteralsArray> GetSpecializationLiterals(Node* node); 79 MaybeHandle<LiteralsArray> GetSpecializationLiterals(Node* node);
80 // Infers the native context to use for a given {node}.
81 MaybeHandle<Context> GetSpecializationNativeContext(Node* node);
79 82
80 Factory* factory() const; 83 Factory* factory() const;
81 Graph* graph() const; 84 Graph* graph() const;
82 JSGraph* jsgraph() const { return jsgraph_; } 85 JSGraph* jsgraph() const { return jsgraph_; }
83 Isolate* isolate() const; 86 Isolate* isolate() const;
84 JSOperatorBuilder* javascript() const; 87 JSOperatorBuilder* javascript() const;
85 CommonOperatorBuilder* common() const; 88 CommonOperatorBuilder* common() const;
86 SimplifiedOperatorBuilder* simplified() const; 89 SimplifiedOperatorBuilder* simplified() const;
87 MachineOperatorBuilder* machine() const; 90 MachineOperatorBuilder* machine() const;
88 CompilationDependencies* dependencies() const { return dependencies_; } 91 CompilationDependencies* dependencies() const { return dependencies_; }
89 Zone* zone() const { return zone_; } 92 Zone* zone() const { return zone_; }
90 93
91 CompilationDependencies* const dependencies_; 94 CompilationDependencies* const dependencies_;
92 JSGraph* const jsgraph_; 95 JSGraph* const jsgraph_;
93 MaybeHandle<LiteralsArray> const literals_array_; 96 MaybeHandle<LiteralsArray> const literals_array_;
97 MaybeHandle<Context> const native_context_;
94 Zone* const zone_; 98 Zone* const zone_;
95 }; 99 };
96 100
97 } // namespace compiler 101 } // namespace compiler
98 } // namespace internal 102 } // namespace internal
99 } // namespace v8 103 } // namespace v8
100 104
101 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_ 105 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-create-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698