| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); | 75 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeed)); |
| 76 const Address kHandleZapValue = | 76 const Address kHandleZapValue = |
| 77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); | 77 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddead)); |
| 78 const Address kFromSpaceZapValue = | 78 const Address kFromSpaceZapValue = |
| 79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); | 79 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdad)); |
| 80 const uint64_t kDebugZapValue = 0xbadbaddbbadbaddb; | 80 const uint64_t kDebugZapValue = 0xbadbaddbbadbaddb; |
| 81 #else | 81 #else |
| 82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); | 82 const Address kZapValue = reinterpret_cast<Address>(0xdeadbeed); |
| 83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); | 83 const Address kHandleZapValue = reinterpret_cast<Address>(0xbaddead); |
| 84 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); | 84 const Address kFromSpaceZapValue = reinterpret_cast<Address>(0xbeefdad); |
| 85 const uint32_t kSlotsZapValue = 0xbeefdeed; |
| 85 const uint32_t kDebugZapValue = 0xbadbaddb; | 86 const uint32_t kDebugZapValue = 0xbadbaddb; |
| 86 #endif | 87 #endif |
| 87 | 88 |
| 88 | 89 |
| 89 // Number of bits to represent the page size for paged spaces. The value of 13 | 90 // Number of bits to represent the page size for paged spaces. The value of 13 |
| 90 // gives 8K bytes per page. | 91 // gives 8K bytes per page. |
| 91 const int kPageSizeBits = 13; | 92 const int kPageSizeBits = 13; |
| 92 | 93 |
| 93 // On Intel architecture, cache line size is 64 bytes. | 94 // On Intel architecture, cache line size is 64 bytes. |
| 94 // On ARM it may be less (32 bytes), but as far this constant is | 95 // On ARM it may be less (32 bytes), but as far this constant is |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Like MONOMORPHIC but check failed due to prototype. | 279 // Like MONOMORPHIC but check failed due to prototype. |
| 279 MONOMORPHIC_PROTOTYPE_FAILURE, | 280 MONOMORPHIC_PROTOTYPE_FAILURE, |
| 280 // Multiple receiver types have been seen. | 281 // Multiple receiver types have been seen. |
| 281 MEGAMORPHIC, | 282 MEGAMORPHIC, |
| 282 // Special states for debug break or step in prepare stubs. | 283 // Special states for debug break or step in prepare stubs. |
| 283 DEBUG_BREAK, | 284 DEBUG_BREAK, |
| 284 DEBUG_PREPARE_STEP_IN | 285 DEBUG_PREPARE_STEP_IN |
| 285 }; | 286 }; |
| 286 | 287 |
| 287 | 288 |
| 289 enum CheckType { |
| 290 RECEIVER_MAP_CHECK, |
| 291 STRING_CHECK, |
| 292 NUMBER_CHECK, |
| 293 BOOLEAN_CHECK |
| 294 }; |
| 295 |
| 296 |
| 288 enum InLoopFlag { | 297 enum InLoopFlag { |
| 289 NOT_IN_LOOP, | 298 NOT_IN_LOOP, |
| 290 IN_LOOP | 299 IN_LOOP |
| 291 }; | 300 }; |
| 292 | 301 |
| 293 | 302 |
| 294 enum CallFunctionFlags { | 303 enum CallFunctionFlags { |
| 295 NO_CALL_FUNCTION_FLAGS = 0, | 304 NO_CALL_FUNCTION_FLAGS = 0, |
| 296 RECEIVER_MIGHT_BE_VALUE = 1 << 0 // Receiver might not be a JSObject. | 305 RECEIVER_MIGHT_BE_VALUE = 1 << 0 // Receiver might not be a JSObject. |
| 297 }; | 306 }; |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 CMOV = 15, // x86 | 464 CMOV = 15, // x86 |
| 456 RDTSC = 4, // x86 | 465 RDTSC = 4, // x86 |
| 457 CPUID = 10, // x86 | 466 CPUID = 10, // x86 |
| 458 VFP3 = 1, // ARM | 467 VFP3 = 1, // ARM |
| 459 ARMv7 = 2, // ARM | 468 ARMv7 = 2, // ARM |
| 460 SAHF = 0}; // x86 | 469 SAHF = 0}; // x86 |
| 461 | 470 |
| 462 } } // namespace v8::internal | 471 } } // namespace v8::internal |
| 463 | 472 |
| 464 #endif // V8_V8GLOBALS_H_ | 473 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |