| 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 #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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 ElementsKind elements_kind, int capacity, | 65 ElementsKind elements_kind, int capacity, |
| 66 PretenureFlag pretenure); | 66 PretenureFlag pretenure); |
| 67 Node* AllocateFastLiteral(Node* effect, Node* control, | 67 Node* AllocateFastLiteral(Node* effect, Node* control, |
| 68 Handle<JSObject> boilerplate, | 68 Handle<JSObject> boilerplate, |
| 69 AllocationSiteUsageContext* site_context); | 69 AllocationSiteUsageContext* site_context); |
| 70 Node* AllocateFastLiteralElements(Node* effect, Node* control, | 70 Node* AllocateFastLiteralElements(Node* effect, Node* control, |
| 71 Handle<JSObject> boilerplate, | 71 Handle<JSObject> boilerplate, |
| 72 PretenureFlag pretenure, | 72 PretenureFlag pretenure, |
| 73 AllocationSiteUsageContext* site_context); | 73 AllocationSiteUsageContext* site_context); |
| 74 | 74 |
| 75 Reduction ReduceNewArrayToStubCall(Node* node, Handle<AllocationSite> site); |
| 76 |
| 75 // Infers the LiteralsArray to use for a given {node}. | 77 // Infers the LiteralsArray to use for a given {node}. |
| 76 MaybeHandle<LiteralsArray> GetSpecializationLiterals(Node* node); | 78 MaybeHandle<LiteralsArray> GetSpecializationLiterals(Node* node); |
| 77 | 79 |
| 78 Factory* factory() const; | 80 Factory* factory() const; |
| 79 Graph* graph() const; | 81 Graph* graph() const; |
| 80 JSGraph* jsgraph() const { return jsgraph_; } | 82 JSGraph* jsgraph() const { return jsgraph_; } |
| 81 Isolate* isolate() const; | 83 Isolate* isolate() const; |
| 82 JSOperatorBuilder* javascript() const; | 84 JSOperatorBuilder* javascript() const; |
| 83 CommonOperatorBuilder* common() const; | 85 CommonOperatorBuilder* common() const; |
| 84 SimplifiedOperatorBuilder* simplified() const; | 86 SimplifiedOperatorBuilder* simplified() const; |
| 85 MachineOperatorBuilder* machine() const; | 87 MachineOperatorBuilder* machine() const; |
| 86 CompilationDependencies* dependencies() const { return dependencies_; } | 88 CompilationDependencies* dependencies() const { return dependencies_; } |
| 87 Zone* zone() const { return zone_; } | 89 Zone* zone() const { return zone_; } |
| 88 | 90 |
| 89 CompilationDependencies* const dependencies_; | 91 CompilationDependencies* const dependencies_; |
| 90 JSGraph* const jsgraph_; | 92 JSGraph* const jsgraph_; |
| 91 MaybeHandle<LiteralsArray> const literals_array_; | 93 MaybeHandle<LiteralsArray> const literals_array_; |
| 92 Zone* const zone_; | 94 Zone* const zone_; |
| 93 }; | 95 }; |
| 94 | 96 |
| 95 } // namespace compiler | 97 } // namespace compiler |
| 96 } // namespace internal | 98 } // namespace internal |
| 97 } // namespace v8 | 99 } // namespace v8 |
| 98 | 100 |
| 99 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_ | 101 #endif // V8_COMPILER_JS_CREATE_LOWERING_H_ |
| OLD | NEW |