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

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

Issue 476733002: Deprecte LoweringBuilder in favor of Reducer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « BUILD.gn ('k') | src/compiler/js-generic-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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_GENERIC_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_GENERIC_LOWERING_H_
6 #define V8_COMPILER_JS_GENERIC_LOWERING_H_ 6 #define V8_COMPILER_JS_GENERIC_LOWERING_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
11 #include "src/compiler/graph.h" 11 #include "src/compiler/graph.h"
12 #include "src/compiler/graph-reducer.h"
12 #include "src/compiler/js-graph.h" 13 #include "src/compiler/js-graph.h"
13 #include "src/compiler/lowering-builder.h"
14 #include "src/compiler/opcodes.h" 14 #include "src/compiler/opcodes.h"
15 #include "src/unique.h" 15 #include "src/unique.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class HydrogenCodeStub; 21 class HydrogenCodeStub;
22 22
23 namespace compiler { 23 namespace compiler {
24 24
25 // Forward declarations. 25 // Forward declarations.
26 class CommonOperatorBuilder; 26 class CommonOperatorBuilder;
27 class MachineOperatorBuilder; 27 class MachineOperatorBuilder;
28 class Linkage; 28 class Linkage;
29 29
30 // Lowers JS-level operators to runtime and IC calls in the "generic" case. 30 // Lowers JS-level operators to runtime and IC calls in the "generic" case.
31 class JSGenericLowering : public LoweringBuilder { 31 class JSGenericLowering : public Reducer {
32 public: 32 public:
33 JSGenericLowering(CompilationInfo* info, JSGraph* graph, 33 JSGenericLowering(CompilationInfo* info, JSGraph* graph,
34 MachineOperatorBuilder* machine, 34 MachineOperatorBuilder* machine);
35 SourcePositionTable* source_positions);
36 virtual ~JSGenericLowering() {} 35 virtual ~JSGenericLowering() {}
37 36
38 virtual void Lower(Node* node); 37 virtual Reduction Reduce(Node* node);
39 38
40 protected: 39 protected:
41 // Dispatched depending on opcode. 40 // Dispatched depending on opcode.
42 #define DECLARE_LOWER(x) Node* Lower##x(Node* node); 41 #define DECLARE_LOWER(x) Node* Lower##x(Node* node);
43 ALL_OP_LIST(DECLARE_LOWER) 42 ALL_OP_LIST(DECLARE_LOWER)
44 #undef DECLARE_LOWER 43 #undef DECLARE_LOWER
45 44
46 // Helpers to create new constant nodes. 45 // Helpers to create new constant nodes.
47 Node* SmiConstant(int immediate); 46 Node* SmiConstant(int immediate);
48 Node* Int32Constant(int immediate); 47 Node* Int32Constant(int immediate);
(...skipping 25 matching lines...) Expand all
74 JSGraph* jsgraph_; 73 JSGraph* jsgraph_;
75 Linkage* linkage_; 74 Linkage* linkage_;
76 MachineOperatorBuilder* machine_; 75 MachineOperatorBuilder* machine_;
77 SetOncePointer<Node> centrystub_constant_; 76 SetOncePointer<Node> centrystub_constant_;
78 }; 77 };
79 } 78 }
80 } 79 }
81 } // namespace v8::internal::compiler 80 } // namespace v8::internal::compiler
82 81
83 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ 82 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698