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

Side by Side Diff: src/deoptimizer.h

Issue 10855098: Deoptimization support for accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Tiny test changes. Rebased. Created 8 years, 4 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/builtins.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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 Code* optimized_code); 277 Code* optimized_code);
278 void DeleteFrameDescriptions(); 278 void DeleteFrameDescriptions();
279 279
280 void DoComputeOutputFrames(); 280 void DoComputeOutputFrames();
281 void DoComputeOsrOutputFrame(); 281 void DoComputeOsrOutputFrame();
282 void DoComputeJSFrame(TranslationIterator* iterator, int frame_index); 282 void DoComputeJSFrame(TranslationIterator* iterator, int frame_index);
283 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator, 283 void DoComputeArgumentsAdaptorFrame(TranslationIterator* iterator,
284 int frame_index); 284 int frame_index);
285 void DoComputeConstructStubFrame(TranslationIterator* iterator, 285 void DoComputeConstructStubFrame(TranslationIterator* iterator,
286 int frame_index); 286 int frame_index);
287 void DoComputeSetterStubFrame(TranslationIterator* iterator,
288 int frame_index);
287 void DoTranslateCommand(TranslationIterator* iterator, 289 void DoTranslateCommand(TranslationIterator* iterator,
288 int frame_index, 290 int frame_index,
289 unsigned output_offset); 291 unsigned output_offset);
290 // Translate a command for OSR. Updates the input offset to be used for 292 // Translate a command for OSR. Updates the input offset to be used for
291 // the next command. Returns false if translation of the command failed 293 // the next command. Returns false if translation of the command failed
292 // (e.g., a number conversion failed) and may or may not have updated the 294 // (e.g., a number conversion failed) and may or may not have updated the
293 // input offset. 295 // input offset.
294 bool DoOsrTranslateCommand(TranslationIterator* iterator, 296 bool DoOsrTranslateCommand(TranslationIterator* iterator,
295 int* input_offset); 297 int* input_offset);
296 298
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 int index_; 554 int index_;
553 }; 555 };
554 556
555 557
556 class Translation BASE_EMBEDDED { 558 class Translation BASE_EMBEDDED {
557 public: 559 public:
558 enum Opcode { 560 enum Opcode {
559 BEGIN, 561 BEGIN,
560 JS_FRAME, 562 JS_FRAME,
561 CONSTRUCT_STUB_FRAME, 563 CONSTRUCT_STUB_FRAME,
564 SETTER_STUB_FRAME,
562 ARGUMENTS_ADAPTOR_FRAME, 565 ARGUMENTS_ADAPTOR_FRAME,
563 REGISTER, 566 REGISTER,
564 INT32_REGISTER, 567 INT32_REGISTER,
565 DOUBLE_REGISTER, 568 DOUBLE_REGISTER,
566 STACK_SLOT, 569 STACK_SLOT,
567 INT32_STACK_SLOT, 570 INT32_STACK_SLOT,
568 DOUBLE_STACK_SLOT, 571 DOUBLE_STACK_SLOT,
569 LITERAL, 572 LITERAL,
570 ARGUMENTS_OBJECT, 573 ARGUMENTS_OBJECT,
571 574
(...skipping 11 matching lines...) Expand all
583 buffer_->Add(frame_count, zone); 586 buffer_->Add(frame_count, zone);
584 buffer_->Add(jsframe_count, zone); 587 buffer_->Add(jsframe_count, zone);
585 } 588 }
586 589
587 int index() const { return index_; } 590 int index() const { return index_; }
588 591
589 // Commands. 592 // Commands.
590 void BeginJSFrame(BailoutId node_id, int literal_id, unsigned height); 593 void BeginJSFrame(BailoutId node_id, int literal_id, unsigned height);
591 void BeginArgumentsAdaptorFrame(int literal_id, unsigned height); 594 void BeginArgumentsAdaptorFrame(int literal_id, unsigned height);
592 void BeginConstructStubFrame(int literal_id, unsigned height); 595 void BeginConstructStubFrame(int literal_id, unsigned height);
596 void BeginSetterStubFrame(int literal_id);
593 void StoreRegister(Register reg); 597 void StoreRegister(Register reg);
594 void StoreInt32Register(Register reg); 598 void StoreInt32Register(Register reg);
595 void StoreDoubleRegister(DoubleRegister reg); 599 void StoreDoubleRegister(DoubleRegister reg);
596 void StoreStackSlot(int index); 600 void StoreStackSlot(int index);
597 void StoreInt32StackSlot(int index); 601 void StoreInt32StackSlot(int index);
598 void StoreDoubleStackSlot(int index); 602 void StoreDoubleStackSlot(int index);
599 void StoreLiteral(int literal_id); 603 void StoreLiteral(int literal_id);
600 void StoreArgumentsObject(); 604 void StoreArgumentsObject();
601 void MarkDuplicate(); 605 void MarkDuplicate();
602 606
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 Object** expression_stack_; 793 Object** expression_stack_;
790 int source_position_; 794 int source_position_;
791 795
792 friend class Deoptimizer; 796 friend class Deoptimizer;
793 }; 797 };
794 #endif 798 #endif
795 799
796 } } // namespace v8::internal 800 } } // namespace v8::internal
797 801
798 #endif // V8_DEOPTIMIZER_H_ 802 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698