| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_HYDROGEN_OSR_H_ | 5 #ifndef V8_HYDROGEN_OSR_H_ |
| 6 #define V8_HYDROGEN_OSR_H_ | 6 #define V8_HYDROGEN_OSR_H_ |
| 7 | 7 |
| 8 #include "hydrogen.h" | 8 #include "hydrogen.h" |
| 9 #include "ast.h" | 9 #include "ast.h" |
| 10 #include "zone.h" | 10 #include "zone.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // Process the OSR values and phis after initial graph optimization. | 34 // Process the OSR values and phis after initial graph optimization. |
| 35 void FinishOsrValues(); | 35 void FinishOsrValues(); |
| 36 | 36 |
| 37 // Return the number of slots in the unoptimized frame at the entry to OSR. | 37 // Return the number of slots in the unoptimized frame at the entry to OSR. |
| 38 int UnoptimizedFrameSlots() const { | 38 int UnoptimizedFrameSlots() const { |
| 39 return unoptimized_frame_slots_; | 39 return unoptimized_frame_slots_; |
| 40 } | 40 } |
| 41 | 41 |
| 42 bool HasOsrEntryAt(IterationStatement* statement); | 42 bool HasOsrEntryAt(IterationStatement* statement); |
| 43 | 43 |
| 44 HBasicBlock* osr_entry() { return osr_entry_; } |
| 45 |
| 44 private: | 46 private: |
| 45 int unoptimized_frame_slots_; | 47 int unoptimized_frame_slots_; |
| 46 HOptimizedGraphBuilder* builder_; | 48 HOptimizedGraphBuilder* builder_; |
| 47 HBasicBlock* osr_entry_; | 49 HBasicBlock* osr_entry_; |
| 48 HBasicBlock* osr_loop_entry_; | 50 HBasicBlock* osr_loop_entry_; |
| 49 ZoneList<HUnknownOSRValue*>* osr_values_; | 51 ZoneList<HUnknownOSRValue*>* osr_values_; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } } // namespace v8::internal | 54 } } // namespace v8::internal |
| 53 | 55 |
| 54 #endif // V8_HYDROGEN_OSR_H_ | 56 #endif // V8_HYDROGEN_OSR_H_ |
| OLD | NEW |