OLD | NEW |
---|---|
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/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); | 44 void ReplaceWithRuntimeCall(Node* node, Runtime::FunctionId f, int args = -1); |
45 | 45 |
46 // Helper for optimization of JSCallFunction. | 46 // Helper for optimization of JSCallFunction. |
47 bool TryLowerDirectJSCall(Node* node); | 47 bool TryLowerDirectJSCall(Node* node); |
48 | 48 |
49 Zone* zone() const { return graph()->zone(); } | 49 Zone* zone() const { return graph()->zone(); } |
50 Isolate* isolate() const { return jsgraph()->isolate(); } | 50 Isolate* isolate() const { return jsgraph()->isolate(); } |
51 JSGraph* jsgraph() const { return jsgraph_; } | 51 JSGraph* jsgraph() const { return jsgraph_; } |
52 Graph* graph() const { return jsgraph()->graph(); } | 52 Graph* graph() const { return jsgraph()->graph(); } |
53 CommonOperatorBuilder* common() const { return jsgraph()->common(); } | 53 CommonOperatorBuilder* common() const { return jsgraph()->common(); } |
54 JSOperatorBuilder* javascript() const { return jsgraph()->javascript(); } | |
Michael Starzinger
2015/03/06 14:06:39
Is this used anywhere? If it is then that's actual
Benedikt Meurer
2015/03/09 05:01:45
That was leftover from a previous attempt. Removed
| |
54 MachineOperatorBuilder* machine() const { return jsgraph()->machine(); } | 55 MachineOperatorBuilder* machine() const { return jsgraph()->machine(); } |
55 | 56 |
56 private: | 57 private: |
57 bool is_typing_enabled_; | 58 bool is_typing_enabled_; |
58 JSGraph* jsgraph_; | 59 JSGraph* const jsgraph_; |
59 }; | 60 }; |
60 | 61 |
61 } // namespace compiler | 62 } // namespace compiler |
62 } // namespace internal | 63 } // namespace internal |
63 } // namespace v8 | 64 } // namespace v8 |
64 | 65 |
65 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ | 66 #endif // V8_COMPILER_JS_GENERIC_LOWERING_H_ |
OLD | NEW |