| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 static int GetOutputInfo(DeoptimizationOutputData* data, | 205 static int GetOutputInfo(DeoptimizationOutputData* data, |
| 206 unsigned node_id, | 206 unsigned node_id, |
| 207 SharedFunctionInfo* shared); | 207 SharedFunctionInfo* shared); |
| 208 | 208 |
| 209 // Code generation support. | 209 // Code generation support. |
| 210 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } | 210 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } |
| 211 static int output_count_offset() { | 211 static int output_count_offset() { |
| 212 return OFFSET_OF(Deoptimizer, output_count_); | 212 return OFFSET_OF(Deoptimizer, output_count_); |
| 213 } | 213 } |
| 214 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } | 214 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } |
| 215 static int frame_alignment_marker_offset() { |
| 216 return OFFSET_OF(Deoptimizer, frame_alignment_marker_); } |
| 217 static int has_alignment_padding_offset() { |
| 218 return OFFSET_OF(Deoptimizer, has_alignment_padding_); |
| 219 } |
| 215 | 220 |
| 216 static int GetDeoptimizedCodeCount(Isolate* isolate); | 221 static int GetDeoptimizedCodeCount(Isolate* isolate); |
| 217 | 222 |
| 218 static const int kNotDeoptimizationEntry = -1; | 223 static const int kNotDeoptimizationEntry = -1; |
| 219 | 224 |
| 220 // Generators for the deoptimization entry code. | 225 // Generators for the deoptimization entry code. |
| 221 class EntryGenerator BASE_EMBEDDED { | 226 class EntryGenerator BASE_EMBEDDED { |
| 222 public: | 227 public: |
| 223 EntryGenerator(MacroAssembler* masm, BailoutType type) | 228 EntryGenerator(MacroAssembler* masm, BailoutType type) |
| 224 : masm_(masm), type_(type) { } | 229 : masm_(masm), type_(type) { } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 Address from_; | 314 Address from_; |
| 310 int fp_to_sp_delta_; | 315 int fp_to_sp_delta_; |
| 311 | 316 |
| 312 // Input frame description. | 317 // Input frame description. |
| 313 FrameDescription* input_; | 318 FrameDescription* input_; |
| 314 // Number of output frames. | 319 // Number of output frames. |
| 315 int output_count_; | 320 int output_count_; |
| 316 // Array of output frame descriptions. | 321 // Array of output frame descriptions. |
| 317 FrameDescription** output_; | 322 FrameDescription** output_; |
| 318 | 323 |
| 324 // Frames can be dynamically padded on ia32 to align untagged doubles. |
| 325 Object* frame_alignment_marker_; |
| 326 intptr_t has_alignment_padding_; |
| 327 |
| 319 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; | 328 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; |
| 320 | 329 |
| 321 static const int table_entry_size_; | 330 static const int table_entry_size_; |
| 322 | 331 |
| 323 friend class FrameDescription; | 332 friend class FrameDescription; |
| 324 friend class DeoptimizingCodeListNode; | 333 friend class DeoptimizingCodeListNode; |
| 325 friend class DeoptimizedFrameInfo; | 334 friend class DeoptimizedFrameInfo; |
| 326 }; | 335 }; |
| 327 | 336 |
| 328 | 337 |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 Object** parameters_; | 727 Object** parameters_; |
| 719 Object** expression_stack_; | 728 Object** expression_stack_; |
| 720 | 729 |
| 721 friend class Deoptimizer; | 730 friend class Deoptimizer; |
| 722 }; | 731 }; |
| 723 #endif | 732 #endif |
| 724 | 733 |
| 725 } } // namespace v8::internal | 734 } } // namespace v8::internal |
| 726 | 735 |
| 727 #endif // V8_DEOPTIMIZER_H_ | 736 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |