OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_FRAME_SPECIALIZATION_H_ | 5 #ifndef V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ |
6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ | 6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_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 11 matching lines...) Expand all Loading... |
22 public: | 22 public: |
23 JSFrameSpecialization(Editor* editor, JavaScriptFrame const* frame, | 23 JSFrameSpecialization(Editor* editor, JavaScriptFrame const* frame, |
24 JSGraph* jsgraph) | 24 JSGraph* jsgraph) |
25 : AdvancedReducer(editor), frame_(frame), jsgraph_(jsgraph) {} | 25 : AdvancedReducer(editor), frame_(frame), jsgraph_(jsgraph) {} |
26 ~JSFrameSpecialization() final {} | 26 ~JSFrameSpecialization() final {} |
27 | 27 |
28 Reduction Reduce(Node* node) final; | 28 Reduction Reduce(Node* node) final; |
29 | 29 |
30 private: | 30 private: |
31 Reduction ReduceOsrValue(Node* node); | 31 Reduction ReduceOsrValue(Node* node); |
32 Reduction ReduceOsrGuard(Node* node); | |
33 Reduction ReduceParameter(Node* node); | 32 Reduction ReduceParameter(Node* node); |
34 | 33 |
35 Isolate* isolate() const; | 34 Isolate* isolate() const; |
36 JavaScriptFrame const* frame() const { return frame_; } | 35 JavaScriptFrame const* frame() const { return frame_; } |
37 JSGraph* jsgraph() const { return jsgraph_; } | 36 JSGraph* jsgraph() const { return jsgraph_; } |
38 | 37 |
39 JavaScriptFrame const* const frame_; | 38 JavaScriptFrame const* const frame_; |
40 JSGraph* const jsgraph_; | 39 JSGraph* const jsgraph_; |
41 | 40 |
42 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization); | 41 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization); |
43 }; | 42 }; |
44 | 43 |
45 } // namespace compiler | 44 } // namespace compiler |
46 } // namespace internal | 45 } // namespace internal |
47 } // namespace v8 | 46 } // namespace v8 |
48 | 47 |
49 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ | 48 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ |
OLD | NEW |