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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 static int GetOutputInfo(DeoptimizationOutputData* data, | 213 static int GetOutputInfo(DeoptimizationOutputData* data, |
214 unsigned node_id, | 214 unsigned node_id, |
215 SharedFunctionInfo* shared); | 215 SharedFunctionInfo* shared); |
216 | 216 |
217 // Code generation support. | 217 // Code generation support. |
218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } | 218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } |
219 static int output_count_offset() { | 219 static int output_count_offset() { |
220 return OFFSET_OF(Deoptimizer, output_count_); | 220 return OFFSET_OF(Deoptimizer, output_count_); |
221 } | 221 } |
222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } | 222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } |
223 static int frame_alignment_marker_offset() { | |
224 return OFFSET_OF(Deoptimizer, frame_alignment_marker_); } | |
225 static int has_alignment_padding_offset() { | |
226 return OFFSET_OF(Deoptimizer, has_alignment_padding_); | |
227 } | |
228 | 223 |
229 static int GetDeoptimizedCodeCount(Isolate* isolate); | 224 static int GetDeoptimizedCodeCount(Isolate* isolate); |
230 | 225 |
231 static const int kNotDeoptimizationEntry = -1; | 226 static const int kNotDeoptimizationEntry = -1; |
232 | 227 |
233 // Generators for the deoptimization entry code. | 228 // Generators for the deoptimization entry code. |
234 class EntryGenerator BASE_EMBEDDED { | 229 class EntryGenerator BASE_EMBEDDED { |
235 public: | 230 public: |
236 EntryGenerator(MacroAssembler* masm, BailoutType type) | 231 EntryGenerator(MacroAssembler* masm, BailoutType type) |
237 : masm_(masm), type_(type) { } | 232 : masm_(masm), type_(type) { } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 325 |
331 // Input frame description. | 326 // Input frame description. |
332 FrameDescription* input_; | 327 FrameDescription* input_; |
333 // Number of output frames. | 328 // Number of output frames. |
334 int output_count_; | 329 int output_count_; |
335 // Number of output js frames. | 330 // Number of output js frames. |
336 int jsframe_count_; | 331 int jsframe_count_; |
337 // Array of output frame descriptions. | 332 // Array of output frame descriptions. |
338 FrameDescription** output_; | 333 FrameDescription** output_; |
339 | 334 |
340 // Frames can be dynamically padded on ia32 to align untagged doubles. | |
341 Object* frame_alignment_marker_; | |
342 intptr_t has_alignment_padding_; | |
343 | |
344 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; | 335 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; |
345 | 336 |
346 static const int table_entry_size_; | 337 static const int table_entry_size_; |
347 | 338 |
348 friend class FrameDescription; | 339 friend class FrameDescription; |
349 friend class DeoptimizingCodeListNode; | 340 friend class DeoptimizingCodeListNode; |
350 friend class DeoptimizedFrameInfo; | 341 friend class DeoptimizedFrameInfo; |
351 }; | 342 }; |
352 | 343 |
353 | 344 |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 Object** expression_stack_; | 776 Object** expression_stack_; |
786 int source_position_; | 777 int source_position_; |
787 | 778 |
788 friend class Deoptimizer; | 779 friend class Deoptimizer; |
789 }; | 780 }; |
790 #endif | 781 #endif |
791 | 782 |
792 } } // namespace v8::internal | 783 } } // namespace v8::internal |
793 | 784 |
794 #endif // V8_DEOPTIMIZER_H_ | 785 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |