| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 EAGER, | 127 EAGER, |
| 128 LAZY, | 128 LAZY, |
| 129 SOFT, | 129 SOFT, |
| 130 // This last bailout type is not really a bailout, but used by the | 130 // This last bailout type is not really a bailout, but used by the |
| 131 // debugger to deoptimize stack frames to allow inspection. | 131 // debugger to deoptimize stack frames to allow inspection. |
| 132 DEBUGGER | 132 DEBUGGER |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 static const int kBailoutTypesWithCodeEntry = SOFT + 1; | 135 static const int kBailoutTypesWithCodeEntry = SOFT + 1; |
| 136 | 136 |
| 137 struct JumpTableEntry { | 137 struct JumpTableEntry : public ZoneObject { |
| 138 inline JumpTableEntry(Address entry, | 138 inline JumpTableEntry(Address entry, |
| 139 Deoptimizer::BailoutType type, | 139 Deoptimizer::BailoutType type, |
| 140 bool frame) | 140 bool frame) |
| 141 : label(), | 141 : label(), |
| 142 address(entry), | 142 address(entry), |
| 143 bailout_type(type), | 143 bailout_type(type), |
| 144 needs_frame(frame) { } | 144 needs_frame(frame) { } |
| 145 Label label; | 145 Label label; |
| 146 Address address; | 146 Address address; |
| 147 Deoptimizer::BailoutType bailout_type; | 147 Deoptimizer::BailoutType bailout_type; |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 } | 501 } |
| 502 | 502 |
| 503 void SetFrameSlot(unsigned offset, intptr_t value) { | 503 void SetFrameSlot(unsigned offset, intptr_t value) { |
| 504 *GetFrameSlotPointer(offset) = value; | 504 *GetFrameSlotPointer(offset) = value; |
| 505 } | 505 } |
| 506 | 506 |
| 507 void SetCallerPc(unsigned offset, intptr_t value); | 507 void SetCallerPc(unsigned offset, intptr_t value); |
| 508 | 508 |
| 509 void SetCallerFp(unsigned offset, intptr_t value); | 509 void SetCallerFp(unsigned offset, intptr_t value); |
| 510 | 510 |
| 511 void SetCallerConstantPool(unsigned offset, intptr_t value); |
| 512 |
| 511 intptr_t GetRegister(unsigned n) const { | 513 intptr_t GetRegister(unsigned n) const { |
| 512 #if DEBUG | 514 #if DEBUG |
| 513 // This convoluted ASSERT is needed to work around a gcc problem that | 515 // This convoluted ASSERT is needed to work around a gcc problem that |
| 514 // improperly detects an array bounds overflow in optimized debug builds | 516 // improperly detects an array bounds overflow in optimized debug builds |
| 515 // when using a plain ASSERT. | 517 // when using a plain ASSERT. |
| 516 if (n >= ARRAY_SIZE(registers_)) { | 518 if (n >= ARRAY_SIZE(registers_)) { |
| 517 ASSERT(false); | 519 ASSERT(false); |
| 518 return 0; | 520 return 0; |
| 519 } | 521 } |
| 520 #endif | 522 #endif |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 Object** expression_stack_; | 991 Object** expression_stack_; |
| 990 int source_position_; | 992 int source_position_; |
| 991 | 993 |
| 992 friend class Deoptimizer; | 994 friend class Deoptimizer; |
| 993 }; | 995 }; |
| 994 #endif | 996 #endif |
| 995 | 997 |
| 996 } } // namespace v8::internal | 998 } } // namespace v8::internal |
| 997 | 999 |
| 998 #endif // V8_DEOPTIMIZER_H_ | 1000 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |