| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_DEOPTIMIZER_H_ | 5 #ifndef V8_DEOPTIMIZER_H_ |
| 6 #define V8_DEOPTIMIZER_H_ | 6 #define V8_DEOPTIMIZER_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 889 | 889 |
| 890 static int registers_offset() { | 890 static int registers_offset() { |
| 891 return OFFSET_OF(FrameDescription, register_values_.registers_); | 891 return OFFSET_OF(FrameDescription, register_values_.registers_); |
| 892 } | 892 } |
| 893 | 893 |
| 894 static int double_registers_offset() { | 894 static int double_registers_offset() { |
| 895 return OFFSET_OF(FrameDescription, register_values_.double_registers_); | 895 return OFFSET_OF(FrameDescription, register_values_.double_registers_); |
| 896 } | 896 } |
| 897 | 897 |
| 898 static int frame_size_offset() { | 898 static int frame_size_offset() { |
| 899 return OFFSET_OF(FrameDescription, frame_size_); | 899 return offsetof(FrameDescription, frame_size_); |
| 900 } | 900 } |
| 901 | 901 |
| 902 static int pc_offset() { | 902 static int pc_offset() { return offsetof(FrameDescription, pc_); } |
| 903 return OFFSET_OF(FrameDescription, pc_); | |
| 904 } | |
| 905 | 903 |
| 906 static int state_offset() { | 904 static int state_offset() { return offsetof(FrameDescription, state_); } |
| 907 return OFFSET_OF(FrameDescription, state_); | |
| 908 } | |
| 909 | 905 |
| 910 static int continuation_offset() { | 906 static int continuation_offset() { |
| 911 return OFFSET_OF(FrameDescription, continuation_); | 907 return offsetof(FrameDescription, continuation_); |
| 912 } | 908 } |
| 913 | 909 |
| 914 static int frame_content_offset() { | 910 static int frame_content_offset() { |
| 915 return OFFSET_OF(FrameDescription, frame_content_); | 911 return offsetof(FrameDescription, frame_content_); |
| 916 } | 912 } |
| 917 | 913 |
| 918 private: | 914 private: |
| 919 static const uint32_t kZapUint32 = 0xbeeddead; | 915 static const uint32_t kZapUint32 = 0xbeeddead; |
| 920 | 916 |
| 921 // Frame_size_ must hold a uint32_t value. It is only a uintptr_t to | 917 // Frame_size_ must hold a uint32_t value. It is only a uintptr_t to |
| 922 // keep the variable-size array frame_content_ of type intptr_t at | 918 // keep the variable-size array frame_content_ of type intptr_t at |
| 923 // the end of the structure aligned. | 919 // the end of the structure aligned. |
| 924 uintptr_t frame_size_; // Number of bytes. | 920 uintptr_t frame_size_; // Number of bytes. |
| 925 JSFunction* function_; | 921 JSFunction* function_; |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1188 Object** expression_stack_; | 1184 Object** expression_stack_; |
| 1189 int source_position_; | 1185 int source_position_; |
| 1190 | 1186 |
| 1191 friend class Deoptimizer; | 1187 friend class Deoptimizer; |
| 1192 }; | 1188 }; |
| 1193 | 1189 |
| 1194 } // namespace internal | 1190 } // namespace internal |
| 1195 } // namespace v8 | 1191 } // namespace v8 |
| 1196 | 1192 |
| 1197 #endif // V8_DEOPTIMIZER_H_ | 1193 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |