| 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 void ReplaceCheckedValues(); | 227 void ReplaceCheckedValues(); |
| 227 | 228 |
| 228 // Returns false if there are phi-uses of the arguments-object | 229 // Returns false if there are phi-uses of the arguments-object |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 HBasicBlock* loop_header); | 274 HBasicBlock* loop_header); |
| 274 void PostorderLoopBlocks(HLoopInformation* loop, | 275 void PostorderLoopBlocks(HLoopInformation* loop, |
| 275 BitVector* visited, | 276 BitVector* visited, |
| 276 ZoneList<HBasicBlock*>* order, | 277 ZoneList<HBasicBlock*>* order, |
| 277 HBasicBlock* loop_header); | 278 HBasicBlock* loop_header); |
| 278 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | 279 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, |
| 279 Object* value); | 280 Object* value); |
| 280 | 281 |
| 281 void InsertTypeConversions(HInstruction* instr); | 282 void InsertTypeConversions(HInstruction* instr); |
| 282 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 283 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
| 284 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
| 283 void InsertRepresentationChangeForUse(HValue* value, | 285 void InsertRepresentationChangeForUse(HValue* value, |
| 284 HValue* use_value, | 286 HValue* use_value, |
| 285 int use_index, | 287 int use_index, |
| 286 Representation to); | 288 Representation to); |
| 287 void InsertRepresentationChangesForValue(HValue* value); | 289 void InsertRepresentationChangesForValue(HValue* value); |
| 288 void InferTypes(ZoneList<HValue*>* worklist); | 290 void InferTypes(ZoneList<HValue*>* worklist); |
| 289 void InitializeInferredTypes(int from_inclusive, int to_inclusive); | 291 void InitializeInferredTypes(int from_inclusive, int to_inclusive); |
| 290 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); | 292 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); |
| 291 | 293 |
| 292 Isolate* isolate_; | 294 Isolate* isolate_; |
| (...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 const char* filename_; | 1193 const char* filename_; |
| 1192 HeapStringAllocator string_allocator_; | 1194 HeapStringAllocator string_allocator_; |
| 1193 StringStream trace_; | 1195 StringStream trace_; |
| 1194 int indent_; | 1196 int indent_; |
| 1195 }; | 1197 }; |
| 1196 | 1198 |
| 1197 | 1199 |
| 1198 } } // namespace v8::internal | 1200 } } // namespace v8::internal |
| 1199 | 1201 |
| 1200 #endif // V8_HYDROGEN_H_ | 1202 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |