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_TRANSITIONS_INL_H_ | 5 #ifndef V8_TRANSITIONS_INL_H_ |
6 #define V8_TRANSITIONS_INL_H_ | 6 #define V8_TRANSITIONS_INL_H_ |
7 | 7 |
8 #include "transitions.h" | 8 #include "src/transitions.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 | 13 |
14 #define FIELD_ADDR(p, offset) \ | 14 #define FIELD_ADDR(p, offset) \ |
15 (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag) | 15 (reinterpret_cast<byte*>(p) + offset - kHeapObjectTag) |
16 | 16 |
17 #define WRITE_FIELD(p, offset, value) \ | 17 #define WRITE_FIELD(p, offset, value) \ |
18 (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value) | 18 (*reinterpret_cast<Object**>(FIELD_ADDR(p, offset)) = value) |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 155 |
156 | 156 |
157 #undef FIELD_ADDR | 157 #undef FIELD_ADDR |
158 #undef WRITE_FIELD | 158 #undef WRITE_FIELD |
159 #undef CONDITIONAL_WRITE_BARRIER | 159 #undef CONDITIONAL_WRITE_BARRIER |
160 | 160 |
161 | 161 |
162 } } // namespace v8::internal | 162 } } // namespace v8::internal |
163 | 163 |
164 #endif // V8_TRANSITIONS_INL_H_ | 164 #endif // V8_TRANSITIONS_INL_H_ |
OLD | NEW |