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 126 matching lines...) Loading... |
137 public: | 137 public: |
138 enum BailoutType { | 138 enum BailoutType { |
139 EAGER, | 139 EAGER, |
140 LAZY, | 140 LAZY, |
141 OSR, | 141 OSR, |
142 // This last bailout type is not really a bailout, but used by the | 142 // This last bailout type is not really a bailout, but used by the |
143 // debugger to deoptimize stack frames to allow inspection. | 143 // debugger to deoptimize stack frames to allow inspection. |
144 DEBUGGER | 144 DEBUGGER |
145 }; | 145 }; |
146 | 146 |
147 static bool TraceEnabledFor(BailoutType type); | 147 static bool TraceEnabledFor(BailoutType deopt_type, |
| 148 StackFrame::Type frame_type); |
148 static const char* MessageFor(BailoutType type); | 149 static const char* MessageFor(BailoutType type); |
149 | 150 |
150 int output_count() const { return output_count_; } | 151 int output_count() const { return output_count_; } |
151 | 152 |
152 Code::Kind compiled_code_kind() const { return compiled_code_->kind(); } | 153 Code::Kind compiled_code_kind() const { return compiled_code_->kind(); } |
153 | 154 |
154 // Number of created JS frames. Not all created frames are necessarily JS. | 155 // Number of created JS frames. Not all created frames are necessarily JS. |
155 int jsframe_count() const { return jsframe_count_; } | 156 int jsframe_count() const { return jsframe_count_; } |
156 | 157 |
157 static Deoptimizer* New(JSFunction* function, | 158 static Deoptimizer* New(JSFunction* function, |
(...skipping 242 matching lines...) Loading... |
400 int output_count_; | 401 int output_count_; |
401 // Number of output js frames. | 402 // Number of output js frames. |
402 int jsframe_count_; | 403 int jsframe_count_; |
403 // Array of output frame descriptions. | 404 // Array of output frame descriptions. |
404 FrameDescription** output_; | 405 FrameDescription** output_; |
405 | 406 |
406 List<Object*> deferred_arguments_objects_values_; | 407 List<Object*> deferred_arguments_objects_values_; |
407 List<ArgumentsObjectMaterializationDescriptor> deferred_arguments_objects_; | 408 List<ArgumentsObjectMaterializationDescriptor> deferred_arguments_objects_; |
408 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; | 409 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; |
409 | 410 |
| 411 bool trace_; |
| 412 |
410 static const int table_entry_size_; | 413 static const int table_entry_size_; |
411 | 414 |
412 friend class FrameDescription; | 415 friend class FrameDescription; |
413 friend class DeoptimizingCodeListNode; | 416 friend class DeoptimizingCodeListNode; |
414 friend class DeoptimizedFrameInfo; | 417 friend class DeoptimizedFrameInfo; |
415 }; | 418 }; |
416 | 419 |
417 | 420 |
418 class FrameDescription { | 421 class FrameDescription { |
419 public: | 422 public: |
(...skipping 455 matching lines...) Loading... |
875 Object** expression_stack_; | 878 Object** expression_stack_; |
876 int source_position_; | 879 int source_position_; |
877 | 880 |
878 friend class Deoptimizer; | 881 friend class Deoptimizer; |
879 }; | 882 }; |
880 #endif | 883 #endif |
881 | 884 |
882 } } // namespace v8::internal | 885 } } // namespace v8::internal |
883 | 886 |
884 #endif // V8_DEOPTIMIZER_H_ | 887 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |