OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ |
| 6 #define V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ |
| 7 |
| 8 #include "src/compiler/graph-reducer.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 namespace compiler { |
| 13 |
| 14 // Forward declarations. |
| 15 class JSGraph; |
| 16 |
| 17 |
| 18 class JSFrameSpecialization final : public Reducer { |
| 19 public: |
| 20 JSFrameSpecialization(JavaScriptFrame const* frame, JSGraph* jsgraph) |
| 21 : frame_(frame), jsgraph_(jsgraph) {} |
| 22 ~JSFrameSpecialization() final {} |
| 23 |
| 24 Reduction Reduce(Node* node) final; |
| 25 |
| 26 private: |
| 27 Reduction ReduceOsrValue(Node* node); |
| 28 Reduction ReduceParameter(Node* node); |
| 29 |
| 30 Isolate* isolate() const; |
| 31 JavaScriptFrame const* frame() const { return frame_; } |
| 32 JSGraph* jsgraph() const { return jsgraph_; } |
| 33 |
| 34 JavaScriptFrame const* const frame_; |
| 35 JSGraph* const jsgraph_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(JSFrameSpecialization); |
| 38 }; |
| 39 |
| 40 } // namespace compiler |
| 41 } // namespace internal |
| 42 } // namespace v8 |
| 43 |
| 44 #endif // V8_COMPILER_JS_FRAME_SPECIALIZATION_H_ |
OLD | NEW |