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" | |
9 | |
10 #include "src/bit-vector.h" | 8 #include "src/bit-vector.h" |
11 | 9 |
12 namespace v8 { | 10 namespace v8 { |
13 namespace internal { | 11 namespace internal { |
14 namespace compiler { | 12 namespace compiler { |
15 | 13 |
16 // Collects the spill slot requirements and the allocated general and double | 14 // Collects the spill slot requirements and the allocated general and double |
17 // registers for a compiled function. Frames are usually populated by the | 15 // 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 | 16 // register allocator and are used by Linkage to generate code for the prologue |
19 // and epilogue to compiled code. | 17 // and epilogue to compiled code. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 int offset_; // Encodes SP or FP in the low order bit. | 110 int offset_; // Encodes SP or FP in the low order bit. |
113 | 111 |
114 static const int kFromSp = 1; | 112 static const int kFromSp = 1; |
115 static const int kFromFp = 0; | 113 static const int kFromFp = 0; |
116 }; | 114 }; |
117 } | 115 } |
118 } | 116 } |
119 } // namespace v8::internal::compiler | 117 } // namespace v8::internal::compiler |
120 | 118 |
121 #endif // V8_COMPILER_FRAME_H_ | 119 #endif // V8_COMPILER_FRAME_H_ |
OLD | NEW |