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

Side by Side Diff: src/deoptimizer.h

Issue 70203002: Simplify Hydrogen code stubs with variable argument count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years, 1 month 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
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