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

Side by Side Diff: src/deoptimizer.h

Issue 10831172: Introduced TypeFeedbackId and BailoutId types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review feedback. 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/compiler.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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 Address expressions_top, 204 Address expressions_top,
205 uint32_t expressions_size, 205 uint32_t expressions_size,
206 DeoptimizedFrameInfo* info); 206 DeoptimizedFrameInfo* info);
207 #endif 207 #endif
208 208
209 static void ComputeOutputFrames(Deoptimizer* deoptimizer); 209 static void ComputeOutputFrames(Deoptimizer* deoptimizer);
210 210
211 static Address GetDeoptimizationEntry(int id, BailoutType type); 211 static Address GetDeoptimizationEntry(int id, BailoutType type);
212 static int GetDeoptimizationId(Address addr, BailoutType type); 212 static int GetDeoptimizationId(Address addr, BailoutType type);
213 static int GetOutputInfo(DeoptimizationOutputData* data, 213 static int GetOutputInfo(DeoptimizationOutputData* data,
214 unsigned node_id, 214 BailoutId node_id,
215 SharedFunctionInfo* shared); 215 SharedFunctionInfo* shared);
216 216
217 // Code generation support. 217 // Code generation support.
218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); } 218 static int input_offset() { return OFFSET_OF(Deoptimizer, input_); }
219 static int output_count_offset() { 219 static int output_count_offset() {
220 return OFFSET_OF(Deoptimizer, output_count_); 220 return OFFSET_OF(Deoptimizer, output_count_);
221 } 221 }
222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); } 222 static int output_offset() { return OFFSET_OF(Deoptimizer, output_); }
223 223
224 static int has_alignment_padding_offset() { 224 static int has_alignment_padding_offset() {
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 index_(buffer->CurrentIndex()), 580 index_(buffer->CurrentIndex()),
581 zone_(zone) { 581 zone_(zone) {
582 buffer_->Add(BEGIN, zone); 582 buffer_->Add(BEGIN, zone);
583 buffer_->Add(frame_count, zone); 583 buffer_->Add(frame_count, zone);
584 buffer_->Add(jsframe_count, zone); 584 buffer_->Add(jsframe_count, zone);
585 } 585 }
586 586
587 int index() const { return index_; } 587 int index() const { return index_; }
588 588
589 // Commands. 589 // Commands.
590 void BeginJSFrame(int node_id, int literal_id, unsigned height); 590 void BeginJSFrame(BailoutId node_id, int literal_id, unsigned height);
591 void BeginArgumentsAdaptorFrame(int literal_id, unsigned height); 591 void BeginArgumentsAdaptorFrame(int literal_id, unsigned height);
592 void BeginConstructStubFrame(int literal_id, unsigned height); 592 void BeginConstructStubFrame(int literal_id, unsigned height);
593 void StoreRegister(Register reg); 593 void StoreRegister(Register reg);
594 void StoreInt32Register(Register reg); 594 void StoreInt32Register(Register reg);
595 void StoreDoubleRegister(DoubleRegister reg); 595 void StoreDoubleRegister(DoubleRegister reg);
596 void StoreStackSlot(int index); 596 void StoreStackSlot(int index);
597 void StoreInt32StackSlot(int index); 597 void StoreInt32StackSlot(int index);
598 void StoreDoubleStackSlot(int index); 598 void StoreDoubleStackSlot(int index);
599 void StoreLiteral(int literal_id); 599 void StoreLiteral(int literal_id);
600 void StoreArgumentsObject(); 600 void StoreArgumentsObject();
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 Object** expression_stack_; 789 Object** expression_stack_;
790 int source_position_; 790 int source_position_;
791 791
792 friend class Deoptimizer; 792 friend class Deoptimizer;
793 }; 793 };
794 #endif 794 #endif
795 795
796 } } // namespace v8::internal 796 } } // namespace v8::internal
797 797
798 #endif // V8_DEOPTIMIZER_H_ 798 #endif // V8_DEOPTIMIZER_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/deoptimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698