| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 DEBUG_BREAK_SLOT_AT_RETURN, | 406 DEBUG_BREAK_SLOT_AT_RETURN, |
| 407 DEBUG_BREAK_SLOT_AT_CALL, | 407 DEBUG_BREAK_SLOT_AT_CALL, |
| 408 DEBUG_BREAK_SLOT_AT_TAIL_CALL, | 408 DEBUG_BREAK_SLOT_AT_TAIL_CALL, |
| 409 | 409 |
| 410 EXTERNAL_REFERENCE, // The address of an external C++ function. | 410 EXTERNAL_REFERENCE, // The address of an external C++ function. |
| 411 INTERNAL_REFERENCE, // An address inside the same function. | 411 INTERNAL_REFERENCE, // An address inside the same function. |
| 412 | 412 |
| 413 // Encoded internal reference, used only on MIPS, MIPS64 and PPC. | 413 // Encoded internal reference, used only on MIPS, MIPS64 and PPC. |
| 414 INTERNAL_REFERENCE_ENCODED, | 414 INTERNAL_REFERENCE_ENCODED, |
| 415 | 415 |
| 416 // Continuation points for a generator yield. | |
| 417 GENERATOR_CONTINUATION, | |
| 418 | |
| 419 // Marks constant and veneer pools. Only used on ARM and ARM64. | 416 // Marks constant and veneer pools. Only used on ARM and ARM64. |
| 420 // They use a custom noncompact encoding. | 417 // They use a custom noncompact encoding. |
| 421 CONST_POOL, | 418 CONST_POOL, |
| 422 VENEER_POOL, | 419 VENEER_POOL, |
| 423 | 420 |
| 424 DEOPT_SCRIPT_OFFSET, | 421 DEOPT_SCRIPT_OFFSET, |
| 425 DEOPT_INLINING_ID, // Deoptimization source position. | 422 DEOPT_INLINING_ID, // Deoptimization source position. |
| 426 DEOPT_REASON, // Deoptimization reason index. | 423 DEOPT_REASON, // Deoptimization reason index. |
| 427 DEOPT_ID, // Deoptimization inlining id. | 424 DEOPT_ID, // Deoptimization inlining id. |
| 428 | 425 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 } | 514 } |
| 518 static inline bool IsDebuggerStatement(Mode mode) { | 515 static inline bool IsDebuggerStatement(Mode mode) { |
| 519 return mode == DEBUGGER_STATEMENT; | 516 return mode == DEBUGGER_STATEMENT; |
| 520 } | 517 } |
| 521 static inline bool IsNone(Mode mode) { | 518 static inline bool IsNone(Mode mode) { |
| 522 return mode == NONE32 || mode == NONE64; | 519 return mode == NONE32 || mode == NONE64; |
| 523 } | 520 } |
| 524 static inline bool IsCodeAgeSequence(Mode mode) { | 521 static inline bool IsCodeAgeSequence(Mode mode) { |
| 525 return mode == CODE_AGE_SEQUENCE; | 522 return mode == CODE_AGE_SEQUENCE; |
| 526 } | 523 } |
| 527 static inline bool IsGeneratorContinuation(Mode mode) { | |
| 528 return mode == GENERATOR_CONTINUATION; | |
| 529 } | |
| 530 static inline bool IsWasmMemoryReference(Mode mode) { | 524 static inline bool IsWasmMemoryReference(Mode mode) { |
| 531 return mode == WASM_MEMORY_REFERENCE; | 525 return mode == WASM_MEMORY_REFERENCE; |
| 532 } | 526 } |
| 533 static inline bool IsWasmMemorySizeReference(Mode mode) { | 527 static inline bool IsWasmMemorySizeReference(Mode mode) { |
| 534 return mode == WASM_MEMORY_SIZE_REFERENCE; | 528 return mode == WASM_MEMORY_SIZE_REFERENCE; |
| 535 } | 529 } |
| 536 static inline bool IsWasmGlobalReference(Mode mode) { | 530 static inline bool IsWasmGlobalReference(Mode mode) { |
| 537 return mode == WASM_GLOBAL_REFERENCE; | 531 return mode == WASM_GLOBAL_REFERENCE; |
| 538 } | 532 } |
| 539 static inline int ModeMask(Mode mode) { return 1 << mode; } | 533 static inline int ModeMask(Mode mode) { return 1 << mode; } |
| (...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1282 std::vector<ConstantPoolEntry> shared_entries; | 1276 std::vector<ConstantPoolEntry> shared_entries; |
| 1283 }; | 1277 }; |
| 1284 | 1278 |
| 1285 Label emitted_label_; // Records pc_offset of emitted pool | 1279 Label emitted_label_; // Records pc_offset of emitted pool |
| 1286 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1280 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1287 }; | 1281 }; |
| 1288 | 1282 |
| 1289 } // namespace internal | 1283 } // namespace internal |
| 1290 } // namespace v8 | 1284 } // namespace v8 |
| 1291 #endif // V8_ASSEMBLER_H_ | 1285 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |