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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 Object** expression_stack_; | 989 Object** expression_stack_; |
990 int source_position_; | 990 int source_position_; |
991 | 991 |
992 friend class Deoptimizer; | 992 friend class Deoptimizer; |
993 }; | 993 }; |
994 #endif | 994 #endif |
995 | 995 |
996 } } // namespace v8::internal | 996 } } // namespace v8::internal |
997 | 997 |
998 #endif // V8_DEOPTIMIZER_H_ | 998 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |