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

Side by Side Diff: src/hydrogen.h

Issue 6711027: [Isolates] Merge 7201:7258 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void SetJoinId(int id); 117 void SetJoinId(int id);
118 118
119 void Finish(HControlInstruction* last); 119 void Finish(HControlInstruction* last);
120 void FinishExit(HControlInstruction* instruction); 120 void FinishExit(HControlInstruction* instruction);
121 void Goto(HBasicBlock* block, bool include_stack_check = false); 121 void Goto(HBasicBlock* block, bool include_stack_check = false);
122 122
123 int PredecessorIndexOf(HBasicBlock* predecessor) const; 123 int PredecessorIndexOf(HBasicBlock* predecessor) const;
124 void AddSimulate(int id) { AddInstruction(CreateSimulate(id)); } 124 void AddSimulate(int id) { AddInstruction(CreateSimulate(id)); }
125 void AssignCommonDominator(HBasicBlock* other); 125 void AssignCommonDominator(HBasicBlock* other);
126 126
127 void FinishExitWithDeoptimization() {
128 FinishExit(CreateDeoptimize());
129 }
130
127 // Add the inlined function exit sequence, adding an HLeaveInlined 131 // Add the inlined function exit sequence, adding an HLeaveInlined
128 // instruction and updating the bailout environment. 132 // instruction and updating the bailout environment.
129 void AddLeaveInlined(HValue* return_value, HBasicBlock* target); 133 void AddLeaveInlined(HValue* return_value, HBasicBlock* target);
130 134
131 // If a target block is tagged as an inline function return, all 135 // If a target block is tagged as an inline function return, all
132 // predecessors should contain the inlined exit sequence: 136 // predecessors should contain the inlined exit sequence:
133 // 137 //
134 // LeaveInlined 138 // LeaveInlined
135 // Simulate (caller's environment) 139 // Simulate (caller's environment)
136 // Goto (target block) 140 // Goto (target block)
137 bool IsInlineReturnTarget() const { return is_inline_return_target_; } 141 bool IsInlineReturnTarget() const { return is_inline_return_target_; }
138 void MarkAsInlineReturnTarget() { is_inline_return_target_ = true; } 142 void MarkAsInlineReturnTarget() { is_inline_return_target_ = true; }
139 143
140 #ifdef DEBUG 144 #ifdef DEBUG
141 void Verify(); 145 void Verify();
142 #endif 146 #endif
143 147
144 private: 148 private:
145 void RegisterPredecessor(HBasicBlock* pred); 149 void RegisterPredecessor(HBasicBlock* pred);
146 void AddDominatedBlock(HBasicBlock* block); 150 void AddDominatedBlock(HBasicBlock* block);
147 151
148 HSimulate* CreateSimulate(int id); 152 HSimulate* CreateSimulate(int id);
153 HDeoptimize* CreateDeoptimize();
149 154
150 int block_id_; 155 int block_id_;
151 HGraph* graph_; 156 HGraph* graph_;
152 ZoneList<HPhi*> phis_; 157 ZoneList<HPhi*> phis_;
153 HInstruction* first_; 158 HInstruction* first_;
154 HInstruction* last_; 159 HInstruction* last_;
155 HControlInstruction* end_; 160 HControlInstruction* end_;
156 HLoopInformation* loop_information_; 161 HLoopInformation* loop_information_;
157 ZoneList<HBasicBlock*> predecessors_; 162 ZoneList<HBasicBlock*> predecessors_;
158 HBasicBlock* dominator_; 163 HBasicBlock* dominator_;
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 const char* filename_; 1099 const char* filename_;
1095 HeapStringAllocator string_allocator_; 1100 HeapStringAllocator string_allocator_;
1096 StringStream trace_; 1101 StringStream trace_;
1097 int indent_; 1102 int indent_;
1098 }; 1103 };
1099 1104
1100 1105
1101 } } // namespace v8::internal 1106 } } // namespace v8::internal
1102 1107
1103 #endif // V8_HYDROGEN_H_ 1108 #endif // V8_HYDROGEN_H_
OLDNEW
« src/global-handles.cc ('K') | « src/heap.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698