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_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); | 281 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); |
282 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); | 282 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); |
283 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); | 283 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); |
284 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); | 284 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); |
285 const uint32_t kSlotsZapValue = 0xbeefdeef; | 285 const uint32_t kSlotsZapValue = 0xbeefdeef; |
286 const uint32_t kDebugZapValue = 0xbadbaddb; | 286 const uint32_t kDebugZapValue = 0xbadbaddb; |
287 const uint32_t kFreeListZapValue = 0xfeed1eaf; | 287 const uint32_t kFreeListZapValue = 0xfeed1eaf; |
288 #endif | 288 #endif |
289 | 289 |
290 const int kCodeZapValue = 0xbadc0de; | 290 const int kCodeZapValue = 0xbadc0de; |
| 291 const uint32_t kPhantomReferenceZap = 0xca11bac; |
291 | 292 |
292 // On Intel architecture, cache line size is 64 bytes. | 293 // On Intel architecture, cache line size is 64 bytes. |
293 // On ARM it may be less (32 bytes), but as far this constant is | 294 // On ARM it may be less (32 bytes), but as far this constant is |
294 // used for aligning data, it doesn't hurt to align on a greater value. | 295 // used for aligning data, it doesn't hurt to align on a greater value. |
295 #define PROCESSOR_CACHE_LINE_SIZE 64 | 296 #define PROCESSOR_CACHE_LINE_SIZE 64 |
296 | 297 |
297 // Constants relevant to double precision floating point numbers. | 298 // Constants relevant to double precision floating point numbers. |
298 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. | 299 // If looking only at the top 32 bits, the QNaN mask is bits 19 to 30. |
299 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); | 300 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); |
300 | 301 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 803 |
803 inline bool IsConciseMethod(FunctionKind kind) { | 804 inline bool IsConciseMethod(FunctionKind kind) { |
804 DCHECK(IsValidFunctionKind(kind)); | 805 DCHECK(IsValidFunctionKind(kind)); |
805 return kind & FunctionKind::kConciseMethod; | 806 return kind & FunctionKind::kConciseMethod; |
806 } | 807 } |
807 } } // namespace v8::internal | 808 } } // namespace v8::internal |
808 | 809 |
809 namespace i = v8::internal; | 810 namespace i = v8::internal; |
810 | 811 |
811 #endif // V8_GLOBALS_H_ | 812 #endif // V8_GLOBALS_H_ |
OLD | NEW |