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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 Deoptimizer::BailoutType bailout_type; | 159 Deoptimizer::BailoutType bailout_type; |
160 bool needs_frame; | 160 bool needs_frame; |
161 }; | 161 }; |
162 | 162 |
163 static bool TraceEnabledFor(BailoutType deopt_type, | 163 static bool TraceEnabledFor(BailoutType deopt_type, |
164 StackFrame::Type frame_type); | 164 StackFrame::Type frame_type); |
165 static const char* MessageFor(BailoutType type); | 165 static const char* MessageFor(BailoutType type); |
166 | 166 |
167 int output_count() const { return output_count_; } | 167 int output_count() const { return output_count_; } |
168 | 168 |
169 Code::Kind compiled_code_kind() const { return compiled_code_->kind(); } | 169 Handle<JSFunction> function() const { return Handle<JSFunction>(function_); } |
| 170 Handle<Code> compiled_code() const { return Handle<Code>(compiled_code_); } |
| 171 BailoutType bailout_type() const { return bailout_type_; } |
170 | 172 |
171 // Number of created JS frames. Not all created frames are necessarily JS. | 173 // Number of created JS frames. Not all created frames are necessarily JS. |
172 int jsframe_count() const { return jsframe_count_; } | 174 int jsframe_count() const { return jsframe_count_; } |
173 | 175 |
174 static Deoptimizer* New(JSFunction* function, | 176 static Deoptimizer* New(JSFunction* function, |
175 BailoutType type, | 177 BailoutType type, |
176 unsigned bailout_id, | 178 unsigned bailout_id, |
177 Address from, | 179 Address from, |
178 int fp_to_sp_delta, | 180 int fp_to_sp_delta, |
179 Isolate* isolate); | 181 Isolate* isolate); |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 Object** expression_stack_; | 1005 Object** expression_stack_; |
1004 int source_position_; | 1006 int source_position_; |
1005 | 1007 |
1006 friend class Deoptimizer; | 1008 friend class Deoptimizer; |
1007 }; | 1009 }; |
1008 #endif | 1010 #endif |
1009 | 1011 |
1010 } } // namespace v8::internal | 1012 } } // namespace v8::internal |
1011 | 1013 |
1012 #endif // V8_DEOPTIMIZER_H_ | 1014 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |