Chromium Code Reviews| 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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator, | 322 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator, |
| 323 int frame_index); | 323 int frame_index); |
| 324 void DoComputeConstructStubFrame(TranslationIterator* iterator, | 324 void DoComputeConstructStubFrame(TranslationIterator* iterator, |
| 325 int frame_index); | 325 int frame_index); |
| 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 // Translate object, store the result into an auxiliary array | |
| 333 // (deferred_objects_tagged_values_). | |
| 332 void DoTranslateObject(TranslationIterator* iterator, | 334 void DoTranslateObject(TranslationIterator* iterator, |
| 333 int object_index, | 335 int object_index, |
| 334 int field_index); | 336 int field_index); |
| 335 | 337 |
| 338 // Translate object, store the result into the given frame slot. | |
|
Michael Starzinger
2014/04/25 12:29:59
nit: This does not only translate objects but also
| |
| 336 void DoTranslateCommand(TranslationIterator* iterator, | 339 void DoTranslateCommand(TranslationIterator* iterator, |
| 337 int frame_index, | 340 int frame_index, |
| 338 unsigned output_offset); | 341 unsigned output_offset); |
| 339 | 342 |
| 343 // Translate object, do not store the result anywhere (but do update | |
| 344 // the deferred materialization array). | |
| 345 void DoTranslateSkip(TranslationIterator* iterator); | |
|
Michael Starzinger
2014/04/25 12:29:59
nit: Maybe we could call this DoTranslateObjectAnd
| |
| 346 | |
| 340 unsigned ComputeInputFrameSize() const; | 347 unsigned ComputeInputFrameSize() const; |
| 341 unsigned ComputeFixedSize(JSFunction* function) const; | 348 unsigned ComputeFixedSize(JSFunction* function) const; |
| 342 | 349 |
| 343 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; | 350 unsigned ComputeIncomingArgumentSize(JSFunction* function) const; |
| 344 unsigned ComputeOutgoingArgumentSize() const; | 351 unsigned ComputeOutgoingArgumentSize() const; |
| 345 | 352 |
| 346 Object* ComputeLiteral(int index) const; | 353 Object* ComputeLiteral(int index) const; |
| 347 | 354 |
| 348 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments); | 355 void AddObjectStart(intptr_t slot_address, int argc, bool is_arguments); |
| 349 void AddObjectDuplication(intptr_t slot, int object_index); | 356 void AddObjectDuplication(intptr_t slot, int object_index); |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 991 Object** expression_stack_; | 998 Object** expression_stack_; |
| 992 int source_position_; | 999 int source_position_; |
| 993 | 1000 |
| 994 friend class Deoptimizer; | 1001 friend class Deoptimizer; |
| 995 }; | 1002 }; |
| 996 #endif | 1003 #endif |
| 997 | 1004 |
| 998 } } // namespace v8::internal | 1005 } } // namespace v8::internal |
| 999 | 1006 |
| 1000 #endif // V8_DEOPTIMIZER_H_ | 1007 #endif // V8_DEOPTIMIZER_H_ |
| OLD | NEW |