OLD | NEW |
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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 Zone* zone() { return isolate_->zone(); } | 209 Zone* zone() { return isolate_->zone(); } |
210 | 210 |
211 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } | 211 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } |
212 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } | 212 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } |
213 HBasicBlock* entry_block() const { return entry_block_; } | 213 HBasicBlock* entry_block() const { return entry_block_; } |
214 HEnvironment* start_environment() const { return start_environment_; } | 214 HEnvironment* start_environment() const { return start_environment_; } |
215 | 215 |
216 void InitializeInferredTypes(); | 216 void InitializeInferredTypes(); |
217 void InsertTypeConversions(); | 217 void InsertTypeConversions(); |
218 void InsertRepresentationChanges(); | 218 void InsertRepresentationChanges(); |
| 219 void MarkDeoptimizeOnUndefined(); |
219 void ComputeMinusZeroChecks(); | 220 void ComputeMinusZeroChecks(); |
220 bool ProcessArgumentsObject(); | 221 bool ProcessArgumentsObject(); |
221 void EliminateRedundantPhis(); | 222 void EliminateRedundantPhis(); |
222 void EliminateUnreachablePhis(); | 223 void EliminateUnreachablePhis(); |
223 void Canonicalize(); | 224 void Canonicalize(); |
224 void OrderBlocks(); | 225 void OrderBlocks(); |
225 void AssignDominators(); | 226 void AssignDominators(); |
226 | 227 |
227 // Returns false if there are phi-uses of the arguments-object | 228 // Returns false if there are phi-uses of the arguments-object |
228 // which are not supported by the optimizing compiler. | 229 // which are not supported by the optimizing compiler. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 HBasicBlock* loop_header); | 273 HBasicBlock* loop_header); |
273 void PostorderLoopBlocks(HLoopInformation* loop, | 274 void PostorderLoopBlocks(HLoopInformation* loop, |
274 BitVector* visited, | 275 BitVector* visited, |
275 ZoneList<HBasicBlock*>* order, | 276 ZoneList<HBasicBlock*>* order, |
276 HBasicBlock* loop_header); | 277 HBasicBlock* loop_header); |
277 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | 278 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, |
278 Object* value); | 279 Object* value); |
279 | 280 |
280 void InsertTypeConversions(HInstruction* instr); | 281 void InsertTypeConversions(HInstruction* instr); |
281 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 282 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
| 283 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
282 void InsertRepresentationChangeForUse(HValue* value, | 284 void InsertRepresentationChangeForUse(HValue* value, |
283 HValue* use_value, | 285 HValue* use_value, |
284 int use_index, | 286 int use_index, |
285 Representation to); | 287 Representation to); |
286 void InsertRepresentationChangesForValue(HValue* value); | 288 void InsertRepresentationChangesForValue(HValue* value); |
287 void InferTypes(ZoneList<HValue*>* worklist); | 289 void InferTypes(ZoneList<HValue*>* worklist); |
288 void InitializeInferredTypes(int from_inclusive, int to_inclusive); | 290 void InitializeInferredTypes(int from_inclusive, int to_inclusive); |
289 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); | 291 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); |
290 | 292 |
291 Isolate* isolate_; | 293 Isolate* isolate_; |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 const char* filename_; | 1192 const char* filename_; |
1191 HeapStringAllocator string_allocator_; | 1193 HeapStringAllocator string_allocator_; |
1192 StringStream trace_; | 1194 StringStream trace_; |
1193 int indent_; | 1195 int indent_; |
1194 }; | 1196 }; |
1195 | 1197 |
1196 | 1198 |
1197 } } // namespace v8::internal | 1199 } } // namespace v8::internal |
1198 | 1200 |
1199 #endif // V8_HYDROGEN_H_ | 1201 #endif // V8_HYDROGEN_H_ |
OLD | NEW |