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