| 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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 569 |
| 570 // --------------------------------------------------------------------------- | 570 // --------------------------------------------------------------------------- |
| 571 // Exception handling | 571 // Exception handling |
| 572 | 572 |
| 573 // Push a new try handler and link it into try handler chain. | 573 // Push a new try handler and link it into try handler chain. |
| 574 void PushTryHandler(StackHandler::Kind kind, int handler_index); | 574 void PushTryHandler(StackHandler::Kind kind, int handler_index); |
| 575 | 575 |
| 576 // Unlink the stack handler on top of the stack from the try handler chain. | 576 // Unlink the stack handler on top of the stack from the try handler chain. |
| 577 void PopTryHandler(); | 577 void PopTryHandler(); |
| 578 | 578 |
| 579 // Throw to the top handler in the try hander chain. | |
| 580 void Throw(Register value); | |
| 581 | |
| 582 // Throw past all JS frames to the top JS entry frame. | |
| 583 void ThrowUncatchable(Register value); | |
| 584 | |
| 585 // --------------------------------------------------------------------------- | 579 // --------------------------------------------------------------------------- |
| 586 // Inline caching support | 580 // Inline caching support |
| 587 | 581 |
| 588 // Generate code for checking access rights - used for security checks | 582 // Generate code for checking access rights - used for security checks |
| 589 // on access to global objects across environments. The holder register | 583 // on access to global objects across environments. The holder register |
| 590 // is left untouched, but the scratch register is clobbered. | 584 // is left untouched, but the scratch register is clobbered. |
| 591 void CheckAccessGlobalProxy(Register holder_reg, | 585 void CheckAccessGlobalProxy(Register holder_reg, |
| 592 Register scratch1, | 586 Register scratch1, |
| 593 Register scratch2, | 587 Register scratch2, |
| 594 Label* miss); | 588 Label* miss); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 Label::Distance condition_met_distance = Label::kFar); | 996 Label::Distance condition_met_distance = Label::kFar); |
| 1003 | 997 |
| 1004 // Helper for finding the mark bits for an address. Afterwards, the | 998 // Helper for finding the mark bits for an address. Afterwards, the |
| 1005 // bitmap register points at the word with the mark bits and the mask | 999 // bitmap register points at the word with the mark bits and the mask |
| 1006 // the position of the first bit. Uses ecx as scratch and leaves addr_reg | 1000 // the position of the first bit. Uses ecx as scratch and leaves addr_reg |
| 1007 // unchanged. | 1001 // unchanged. |
| 1008 inline void GetMarkBits(Register addr_reg, | 1002 inline void GetMarkBits(Register addr_reg, |
| 1009 Register bitmap_reg, | 1003 Register bitmap_reg, |
| 1010 Register mask_reg); | 1004 Register mask_reg); |
| 1011 | 1005 |
| 1012 // Helper for throwing exceptions. Compute a handler address and jump to | |
| 1013 // it. See the implementation for register usage. | |
| 1014 void JumpToHandlerEntry(); | |
| 1015 | |
| 1016 // Compute memory operands for safepoint stack slots. | 1006 // Compute memory operands for safepoint stack slots. |
| 1017 Operand SafepointRegisterSlot(Register reg); | 1007 Operand SafepointRegisterSlot(Register reg); |
| 1018 static int SafepointRegisterStackIndex(int reg_code); | 1008 static int SafepointRegisterStackIndex(int reg_code); |
| 1019 | 1009 |
| 1020 // Needs access to SafepointRegisterStackIndex for compiled frame | 1010 // Needs access to SafepointRegisterStackIndex for compiled frame |
| 1021 // traversal. | 1011 // traversal. |
| 1022 friend class StandardFrame; | 1012 friend class StandardFrame; |
| 1023 }; | 1013 }; |
| 1024 | 1014 |
| 1025 | 1015 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 } \ | 1087 } \ |
| 1098 masm-> | 1088 masm-> |
| 1099 #else | 1089 #else |
| 1100 #define ACCESS_MASM(masm) masm-> | 1090 #define ACCESS_MASM(masm) masm-> |
| 1101 #endif | 1091 #endif |
| 1102 | 1092 |
| 1103 | 1093 |
| 1104 } } // namespace v8::internal | 1094 } } // namespace v8::internal |
| 1105 | 1095 |
| 1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1096 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |