| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 c.u[1] = *reinterpret_cast<uint32_t*>(p + 4); | 53 c.u[1] = *reinterpret_cast<uint32_t*>(p + 4); |
| 54 return c.d; | 54 return c.d; |
| 55 #endif // V8_HOST_CAN_READ_UNALIGNED | 55 #endif // V8_HOST_CAN_READ_UNALIGNED |
| 56 } | 56 } |
| 57 | 57 |
| 58 | 58 |
| 59 class FrameDescription; | 59 class FrameDescription; |
| 60 class TranslationIterator; | 60 class TranslationIterator; |
| 61 class DeoptimizedFrameInfo; | 61 class DeoptimizedFrameInfo; |
| 62 | 62 |
| 63 template<typename T> |
| 63 class HeapNumberMaterializationDescriptor BASE_EMBEDDED { | 64 class HeapNumberMaterializationDescriptor BASE_EMBEDDED { |
| 64 public: | 65 public: |
| 65 HeapNumberMaterializationDescriptor(Address slot_address, double val) | 66 HeapNumberMaterializationDescriptor(T destination, double value) |
| 66 : slot_address_(slot_address), val_(val) { } | 67 : destination_(destination), value_(value) { } |
| 67 | 68 |
| 68 Address slot_address() const { return slot_address_; } | 69 T destination() const { return destination_; } |
| 69 double value() const { return val_; } | 70 double value() const { return value_; } |
| 70 | 71 |
| 71 private: | 72 private: |
| 72 Address slot_address_; | 73 T destination_; |
| 73 double val_; | 74 double value_; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 | 77 |
| 77 class ObjectMaterializationDescriptor BASE_EMBEDDED { | 78 class ObjectMaterializationDescriptor BASE_EMBEDDED { |
| 78 public: | 79 public: |
| 79 ObjectMaterializationDescriptor( | 80 ObjectMaterializationDescriptor( |
| 80 Address slot_address, int frame, int length, int duplicate, bool is_args) | 81 Address slot_address, int frame, int length, int duplicate, bool is_args) |
| 81 : slot_address_(slot_address), | 82 : slot_address_(slot_address), |
| 82 jsframe_index_(frame), | 83 jsframe_index_(frame), |
| 83 object_length_(length), | 84 object_length_(length), |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 FrameDescription* input_; | 425 FrameDescription* input_; |
| 425 // Number of output frames. | 426 // Number of output frames. |
| 426 int output_count_; | 427 int output_count_; |
| 427 // Number of output js frames. | 428 // Number of output js frames. |
| 428 int jsframe_count_; | 429 int jsframe_count_; |
| 429 // Array of output frame descriptions. | 430 // Array of output frame descriptions. |
| 430 FrameDescription** output_; | 431 FrameDescription** output_; |
| 431 | 432 |
| 432 // Deferred values to be materialized. | 433 // Deferred values to be materialized. |
| 433 List<Object*> deferred_objects_tagged_values_; | 434 List<Object*> deferred_objects_tagged_values_; |
| 434 List<double> deferred_objects_double_values_; | 435 List<HeapNumberMaterializationDescriptor<int> > |
| 436 deferred_objects_double_values_; |
| 435 List<ObjectMaterializationDescriptor> deferred_objects_; | 437 List<ObjectMaterializationDescriptor> deferred_objects_; |
| 436 List<HeapNumberMaterializationDescriptor> deferred_heap_numbers_; | 438 List<HeapNumberMaterializationDescriptor<Address> > deferred_heap_numbers_; |
| 437 | 439 |
| 438 // Output frame information. Only used during heap object materialization. | 440 // Output frame information. Only used during heap object materialization. |
| 439 List<Handle<JSFunction> > jsframe_functions_; | 441 List<Handle<JSFunction> > jsframe_functions_; |
| 440 List<bool> jsframe_has_adapted_arguments_; | 442 List<bool> jsframe_has_adapted_arguments_; |
| 441 | 443 |
| 442 // Materialized objects. Only used during heap object materialization. | 444 // Materialized objects. Only used during heap object materialization. |
| 443 List<Handle<Object> >* materialized_values_; | 445 List<Handle<Object> >* materialized_values_; |
| 444 List<Handle<Object> >* materialized_objects_; | 446 List<Handle<Object> >* materialized_objects_; |
| 445 int materialization_value_index_; | 447 int materialization_value_index_; |
| 446 int materialization_object_index_; | 448 int materialization_object_index_; |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 Object** expression_stack_; | 924 Object** expression_stack_; |
| 923 int source_position_; | 925 int source_position_; |
| 924 | 926 |
| 925 friend class Deoptimizer; | 927 friend class Deoptimizer; |
| 926 }; | 928 }; |
| 927 #endif | 929 #endif |
| 928 | 930 |
| 929 } } // namespace v8::internal | 931 } } // namespace v8::internal |
| 930 | 932 |
| 931 #endif // V8_DEOPTIMIZER_H_ | 933 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |