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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 void DoComputeAccessorStubFrame(TranslationIterator* iterator, | 326 void DoComputeAccessorStubFrame(TranslationIterator* iterator, |
327 int frame_index, | 327 int frame_index, |
328 bool is_setter_stub_frame); | 328 bool is_setter_stub_frame); |
329 void DoComputeCompiledStubFrame(TranslationIterator* iterator, | 329 void DoComputeCompiledStubFrame(TranslationIterator* iterator, |
330 int frame_index); | 330 int frame_index); |
331 | 331 |
332 void DoTranslateObject(TranslationIterator* iterator, | 332 void DoTranslateObject(TranslationIterator* iterator, |
333 int object_index, | 333 int object_index, |
334 int field_index); | 334 int field_index); |
335 | 335 |
336 enum DeoptimizerTranslatedValueType { | |
337 TRANSLATED_VALUE_IS_NATIVE, | |
338 TRANSLATED_VALUE_IS_TAGGED | |
339 }; | |
340 | |
341 void DoTranslateCommand(TranslationIterator* iterator, | 336 void DoTranslateCommand(TranslationIterator* iterator, |
342 int frame_index, | 337 int frame_index, |
343 unsigned output_offset, | 338 unsigned output_offset); |
344 DeoptimizerTranslatedValueType value_type = TRANSLATED_VALUE_IS_TAGGED); | |
345 | 339 |
346 unsigned ComputeInputFrameSize() const; | 340 unsigned ComputeInputFrameSize() const; |
347 unsigned ComputeFixedSize(JSFunction* function) const; | 341 unsigned ComputeFixedSize(JSFunction* function) const; |
348 | 342 |
349 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; | 343 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; |
350 unsigned ComputeOutgoingArgumentSize() const; | 344 unsigned ComputeOutgoingArgumentSize() const; |
351 | 345 |
352 Object* ComputeLiteral(int index) const; | 346 Object* ComputeLiteral(int index) const; |
353 | 347 |
354 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments); | 348 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments); |
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
932 Object** expression_stack_; | 926 Object** expression_stack_; |
933 int source_position_; | 927 int source_position_; |
934 | 928 |
935 friend class Deoptimizer; | 929 friend class Deoptimizer; |
936 }; | 930 }; |
937 #endif | 931 #endif |
938 | 932 |
939 } } // namespace v8::internal | 933 } } // namespace v8::internal |
940 | 934 |
941 #endif // V8_DEOPTIMIZER_H_ | 935 #endif // V8_DEOPTIMIZER_H_ |
OLD | NEW |