Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: src/deoptimizer.h

Issue 12490013: Deoptimizer support for hydrogen stubs that accept a variable number of arguments. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 void DoComputeJSFrame(TranslationIterator* iterator, int frame_index); 349 void DoComputeJSFrame(TranslationIterator* iterator, int frame_index);
350 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator, 350 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator,
351 int frame_index); 351 int frame_index);
352 void DoComputeConstructStubFrame(TranslationIterator* iterator, 352 void DoComputeConstructStubFrame(TranslationIterator* iterator,
353 int frame_index); 353 int frame_index);
354 void DoComputeAccessorStubFrame(TranslationIterator* iterator, 354 void DoComputeAccessorStubFrame(TranslationIterator* iterator,
355 int frame_index, 355 int frame_index,
356 bool is_setter_stub_frame); 356 bool is_setter_stub_frame);
357 void DoComputeCompiledStubFrame(TranslationIterator* iterator, 357 void DoComputeCompiledStubFrame(TranslationIterator* iterator,
358 int frame_index); 358 int frame_index);
359
360 enum DeoptimizerTranslatedValueType {
361 TRANSLATED_VALUE_IS_NATIVE,
362 TRANSLATED_VALUE_IS_TAGGED
363 };
364
359 void DoTranslateCommand(TranslationIterator* iterator, 365 void DoTranslateCommand(TranslationIterator* iterator,
360 int frame_index, 366 int frame_index,
361 unsigned output_offset); 367 unsigned output_offset,
368 DeoptimizerTranslatedValueType value_type = TRANSLATED_VALUE_IS_TAGGED);
369
362 // Translate a command for OSR. Updates the input offset to be used for 370 // Translate a command for OSR. Updates the input offset to be used for
363 // the next command. Returns false if translation of the command failed 371 // the next command. Returns false if translation of the command failed
364 // (e.g., a number conversion failed) and may or may not have updated the 372 // (e.g., a number conversion failed) and may or may not have updated the
365 // input offset. 373 // input offset.
366 bool DoOsrTranslateCommand(TranslationIterator* iterator, 374 bool DoOsrTranslateCommand(TranslationIterator* iterator,
367 int* input_offset); 375 int* input_offset);
368 376
369 unsigned ComputeInputFrameSize() const; 377 unsigned ComputeInputFrameSize() const;
370 unsigned ComputeFixedSize(JSFunction* function) const; 378 unsigned ComputeFixedSize(JSFunction* function) const;
371 379
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 Object** expression_stack_; 903 Object** expression_stack_;
896 int source_position_; 904 int source_position_;
897 905
898 friend class Deoptimizer; 906 friend class Deoptimizer;
899 }; 907 };
900 #endif 908 #endif
901 909
902 } } // namespace v8::internal 910 } } // namespace v8::internal
903 911
904 #endif // V8_DEOPTIMIZER_H_ 912 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698