| 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_FRAME_H_ | 5 #ifndef V8_COMPILER_FRAME_H_ |
| 6 #define V8_COMPILER_FRAME_H_ | 6 #define V8_COMPILER_FRAME_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/data-flow.h" | 10 #include "src/bit-vector.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 namespace compiler { | 14 namespace compiler { |
| 15 | 15 |
| 16 // Collects the spill slot requirements and the allocated general and double | 16 // Collects the spill slot requirements and the allocated general and double |
| 17 // registers for a compiled function. Frames are usually populated by the | 17 // registers for a compiled function. Frames are usually populated by the |
| 18 // register allocator and are used by Linkage to generate code for the prologue | 18 // register allocator and are used by Linkage to generate code for the prologue |
| 19 // and epilogue to compiled code. | 19 // and epilogue to compiled code. |
| 20 class Frame { | 20 class Frame { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 int offset_; // Encodes SP or FP in the low order bit. | 95 int offset_; // Encodes SP or FP in the low order bit. |
| 96 | 96 |
| 97 static const int kFromSp = 1; | 97 static const int kFromSp = 1; |
| 98 static const int kFromFp = 0; | 98 static const int kFromFp = 0; |
| 99 }; | 99 }; |
| 100 } | 100 } |
| 101 } | 101 } |
| 102 } // namespace v8::internal::compiler | 102 } // namespace v8::internal::compiler |
| 103 | 103 |
| 104 #endif // V8_COMPILER_FRAME_H_ | 104 #endif // V8_COMPILER_FRAME_H_ |
| OLD | NEW |