Chromium Code Reviews| 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 "include/v8stdint.h" | 8 #include "include/v8stdint.h" |
| 9 | 9 |
| 10 #include "src/base/build_config.h" | 10 #include "src/base/build_config.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 284 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); | 284 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); |
| 285 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); | 285 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); |
| 286 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); | 286 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); |
| 287 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); | 287 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); |
| 288 const uint32_t kSlotsZapValue = 0xbeefdeef; | 288 const uint32_t kSlotsZapValue = 0xbeefdeef; |
| 289 const uint32_t kDebugZapValue = 0xbadbaddb; | 289 const uint32_t kDebugZapValue = 0xbadbaddb; |
| 290 const uint32_t kFreeListZapValue = 0xfeed1eaf; | 290 const uint32_t kFreeListZapValue = 0xfeed1eaf; |
| 291 #endif | 291 #endif |
| 292 | 292 |
| 293 const int kCodeZapValue = 0xbadc0de; | 293 const int kCodeZapValue = 0xbadc0de; |
| 294 const uint64_t kPhantomReferenceZap = 0xca11bac; | |
|
jochen (gone - plz use gerrit)
2014/10/20 13:51:14
should there be a 32bit and a 64bit zap value?
Erik Corry
2014/10/20 13:56:37
I think 32 bit is enough - it's converted to a Smi
| |
| 294 | 295 |
| 295 // On Intel architecture, cache line size is 64 bytes. | 296 // On Intel architecture, cache line size is 64 bytes. |
| 296 // 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 |
| 297 // 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. |
| 298 #define PROCESSOR_CACHE_LINE_SIZE 64 | 299 #define PROCESSOR_CACHE_LINE_SIZE 64 |
| 299 | 300 |
| 300 // Constants relevant to double precision floating point numbers. | 301 // Constants relevant to double precision floating point numbers. |
| 301 // 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. |
| 302 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); | 303 const uint32_t kQuietNaNHighBitsMask = 0xfff << (51 - 32); |
| 303 | 304 |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 803 | 804 |
| 804 inline bool IsConciseMethod(FunctionKind kind) { | 805 inline bool IsConciseMethod(FunctionKind kind) { |
| 805 DCHECK(IsValidFunctionKind(kind)); | 806 DCHECK(IsValidFunctionKind(kind)); |
| 806 return kind & FunctionKind::kConciseMethod; | 807 return kind & FunctionKind::kConciseMethod; |
| 807 } | 808 } |
| 808 } } // namespace v8::internal | 809 } } // namespace v8::internal |
| 809 | 810 |
| 810 namespace i = v8::internal; | 811 namespace i = v8::internal; |
| 811 | 812 |
| 812 #endif // V8_GLOBALS_H_ | 813 #endif // V8_GLOBALS_H_ |
| OLD | NEW |