| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1; | 64 const intptr_t kFailureTagMask = (1 << kFailureTagSize) - 1; |
| 65 | 65 |
| 66 | 66 |
| 67 // Zap-value: The value used for zapping dead objects. | 67 // Zap-value: The value used for zapping dead objects. |
| 68 // Should be a recognizable hex value tagged as a failure. | 68 // Should be a recognizable hex value tagged as a failure. |
| 69 #ifdef V8_HOST_ARCH_64_BIT | 69 #ifdef V8_HOST_ARCH_64_BIT |
| 70 const Address kZapValue = | 70 const Address kZapValue = |
| 71 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef)); | 71 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef)); |
| 72 const Address kHandleZapValue = | 72 const Address kHandleZapValue = |
| 73 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf)); | 73 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf)); |
| 74 const Address kGlobalHandleZapValue = |
| 75 reinterpret_cast<Address>(V8_UINT64_C(0x1baffed00baffedf)); |
| 74 const Address kFromSpaceZapValue = | 76 const Address kFromSpaceZapValue = |
| 75 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf)); | 77 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf)); |
| 76 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb); | 78 const uint64_t kDebugZapValue = V8_UINT64_C(0xbadbaddbbadbaddb); |
| 77 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef); | 79 const uint64_t kSlotsZapValue = V8_UINT64_C(0xbeefdeadbeefdeef); |
| 78 const uint64_t kFreeListZapValue = 0xfeed1eaffeed1eaf; | 80 const uint64_t kFreeListZapValue = 0xfeed1eaffeed1eaf; |
| 79 #else | 81 #else |
| 80 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); | 82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeef); |
| 81 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); | 83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddeaf); |
| 84 const Address kGlobalHandleZapValue = reinterpret_cast<Address>(0xbaffedf); |
| 82 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); | 85 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdaf); |
| 83 const uint32_t kSlotsZapValue = 0xbeefdeef; | 86 const uint32_t kSlotsZapValue = 0xbeefdeef; |
| 84 const uint32_t kDebugZapValue = 0xbadbaddb; | 87 const uint32_t kDebugZapValue = 0xbadbaddb; |
| 85 const uint32_t kFreeListZapValue = 0xfeed1eaf; | 88 const uint32_t kFreeListZapValue = 0xfeed1eaf; |
| 86 #endif | 89 #endif |
| 87 | 90 |
| 88 const int kCodeZapValue = 0xbadc0de; | 91 const int kCodeZapValue = 0xbadc0de; |
| 89 | 92 |
| 90 // Number of bits to represent the page size for paged spaces. The value of 20 | 93 // Number of bits to represent the page size for paged spaces. The value of 20 |
| 91 // gives 1Mb bytes per page. | 94 // gives 1Mb bytes per page. |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 569 |
| 567 enum ClearExceptionFlag { | 570 enum ClearExceptionFlag { |
| 568 KEEP_EXCEPTION, | 571 KEEP_EXCEPTION, |
| 569 CLEAR_EXCEPTION | 572 CLEAR_EXCEPTION |
| 570 }; | 573 }; |
| 571 | 574 |
| 572 | 575 |
| 573 } } // namespace v8::internal | 576 } } // namespace v8::internal |
| 574 | 577 |
| 575 #endif // V8_V8GLOBALS_H_ | 578 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |