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

Side by Side Diff: src/hydrogen.h

Issue 7234010: HBasicBlock::CreateSimulate argument name clarity (Closed) Base URL: http://v8.googlecode.com/svn/trunk
Patch Set: The same rename, but in more places. Created 9 years, 6 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 | « no previous file | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void UpdateEnvironment(HEnvironment* env) { last_environment_ = env; } 109 void UpdateEnvironment(HEnvironment* env) { last_environment_ = env; }
110 HBasicBlock* parent_loop_header() const { return parent_loop_header_; } 110 HBasicBlock* parent_loop_header() const { return parent_loop_header_; }
111 111
112 void set_parent_loop_header(HBasicBlock* block) { 112 void set_parent_loop_header(HBasicBlock* block) {
113 ASSERT(parent_loop_header_ == NULL); 113 ASSERT(parent_loop_header_ == NULL);
114 parent_loop_header_ = block; 114 parent_loop_header_ = block;
115 } 115 }
116 116
117 bool HasParentLoopHeader() const { return parent_loop_header_ != NULL; } 117 bool HasParentLoopHeader() const { return parent_loop_header_ != NULL; }
118 118
119 void SetJoinId(int id); 119 void SetJoinId(int ast_id);
120 120
121 void Finish(HControlInstruction* last); 121 void Finish(HControlInstruction* last);
122 void FinishExit(HControlInstruction* instruction); 122 void FinishExit(HControlInstruction* instruction);
123 void Goto(HBasicBlock* block, bool include_stack_check = false); 123 void Goto(HBasicBlock* block, bool include_stack_check = false);
124 124
125 int PredecessorIndexOf(HBasicBlock* predecessor) const; 125 int PredecessorIndexOf(HBasicBlock* predecessor) const;
126 void AddSimulate(int id) { AddInstruction(CreateSimulate(id)); } 126 void AddSimulate(int ast_id) { AddInstruction(CreateSimulate(ast_id)); }
127 void AssignCommonDominator(HBasicBlock* other); 127 void AssignCommonDominator(HBasicBlock* other);
128 128
129 void FinishExitWithDeoptimization(HDeoptimize::UseEnvironment has_uses) { 129 void FinishExitWithDeoptimization(HDeoptimize::UseEnvironment has_uses) {
130 FinishExit(CreateDeoptimize(has_uses)); 130 FinishExit(CreateDeoptimize(has_uses));
131 } 131 }
132 132
133 // Add the inlined function exit sequence, adding an HLeaveInlined 133 // Add the inlined function exit sequence, adding an HLeaveInlined
134 // instruction and updating the bailout environment. 134 // instruction and updating the bailout environment.
135 void AddLeaveInlined(HValue* return_value, HBasicBlock* target); 135 void AddLeaveInlined(HValue* return_value, HBasicBlock* target);
136 136
(...skipping 12 matching lines...) Expand all
149 inline Zone* zone(); 149 inline Zone* zone();
150 150
151 #ifdef DEBUG 151 #ifdef DEBUG
152 void Verify(); 152 void Verify();
153 #endif 153 #endif
154 154
155 private: 155 private:
156 void RegisterPredecessor(HBasicBlock* pred); 156 void RegisterPredecessor(HBasicBlock* pred);
157 void AddDominatedBlock(HBasicBlock* block); 157 void AddDominatedBlock(HBasicBlock* block);
158 158
159 HSimulate* CreateSimulate(int id); 159 HSimulate* CreateSimulate(int ast_id);
160 HDeoptimize* CreateDeoptimize(HDeoptimize::UseEnvironment has_uses); 160 HDeoptimize* CreateDeoptimize(HDeoptimize::UseEnvironment has_uses);
161 161
162 int block_id_; 162 int block_id_;
163 HGraph* graph_; 163 HGraph* graph_;
164 ZoneList<HPhi*> phis_; 164 ZoneList<HPhi*> phis_;
165 HInstruction* first_; 165 HInstruction* first_;
166 HInstruction* last_; 166 HInstruction* last_;
167 HControlInstruction* end_; 167 HControlInstruction* end_;
168 HLoopInformation* loop_information_; 168 HLoopInformation* loop_information_;
169 ZoneList<HBasicBlock*> predecessors_; 169 ZoneList<HBasicBlock*> predecessors_;
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 HBasicBlock* current_block() const { return current_block_; } 687 HBasicBlock* current_block() const { return current_block_; }
688 void set_current_block(HBasicBlock* block) { current_block_ = block; } 688 void set_current_block(HBasicBlock* block) { current_block_ = block; }
689 HEnvironment* environment() const { 689 HEnvironment* environment() const {
690 return current_block()->last_environment(); 690 return current_block()->last_environment();
691 } 691 }
692 692
693 bool inline_bailout() { return inline_bailout_; } 693 bool inline_bailout() { return inline_bailout_; }
694 694
695 // Adding instructions. 695 // Adding instructions.
696 HInstruction* AddInstruction(HInstruction* instr); 696 HInstruction* AddInstruction(HInstruction* instr);
697 void AddSimulate(int id); 697 void AddSimulate(int ast_id);
698 698
699 // Bailout environment manipulation. 699 // Bailout environment manipulation.
700 void Push(HValue* value) { environment()->Push(value); } 700 void Push(HValue* value) { environment()->Push(value); }
701 HValue* Pop() { return environment()->Pop(); } 701 HValue* Pop() { return environment()->Pop(); }
702 702
703 void Bailout(const char* reason); 703 void Bailout(const char* reason);
704 704
705 private: 705 private:
706 // Type of a member function that generates inline code for a native function. 706 // Type of a member function that generates inline code for a native function.
707 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call); 707 typedef void (HGraphBuilder::*InlineFunctionGenerator)(CallRuntime* call);
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 const char* filename_; 1197 const char* filename_;
1198 HeapStringAllocator string_allocator_; 1198 HeapStringAllocator string_allocator_;
1199 StringStream trace_; 1199 StringStream trace_;
1200 int indent_; 1200 int indent_;
1201 }; 1201 };
1202 1202
1203 1203
1204 } } // namespace v8::internal 1204 } } // namespace v8::internal
1205 1205
1206 #endif // V8_HYDROGEN_H_ 1206 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698