| OLD | NEW |
| 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 bool ProcessArgumentsObject(); | 262 bool ProcessArgumentsObject(); |
| 263 void EliminateRedundantPhis(); | 263 void EliminateRedundantPhis(); |
| 264 void EliminateUnreachablePhis(); | 264 void EliminateUnreachablePhis(); |
| 265 void Canonicalize(); | 265 void Canonicalize(); |
| 266 void OrderBlocks(); | 266 void OrderBlocks(); |
| 267 void AssignDominators(); | 267 void AssignDominators(); |
| 268 void ReplaceCheckedValues(); | 268 void ReplaceCheckedValues(); |
| 269 void EliminateRedundantBoundsChecks(); | 269 void EliminateRedundantBoundsChecks(); |
| 270 void DehoistSimpleArrayIndexComputations(); | 270 void DehoistSimpleArrayIndexComputations(); |
| 271 void PropagateDeoptimizingMark(); | 271 void PropagateDeoptimizingMark(); |
| 272 void ReplaceWithRor(); |
| 273 |
| 272 | 274 |
| 273 // Returns false if there are phi-uses of the arguments-object | 275 // Returns false if there are phi-uses of the arguments-object |
| 274 // which are not supported by the optimizing compiler. | 276 // which are not supported by the optimizing compiler. |
| 275 bool CheckArgumentsPhiUses(); | 277 bool CheckArgumentsPhiUses(); |
| 276 | 278 |
| 277 // Returns false if there are phi-uses of an uninitialized const | 279 // Returns false if there are phi-uses of an uninitialized const |
| 278 // which are not supported by the optimizing compiler. | 280 // which are not supported by the optimizing compiler. |
| 279 bool CheckConstPhiUses(); | 281 bool CheckConstPhiUses(); |
| 280 | 282 |
| 281 void CollectPhis(); | 283 void CollectPhis(); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); | 378 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
| 377 void InsertRepresentationChangeForUse(HValue* value, | 379 void InsertRepresentationChangeForUse(HValue* value, |
| 378 HValue* use_value, | 380 HValue* use_value, |
| 379 int use_index, | 381 int use_index, |
| 380 Representation to); | 382 Representation to); |
| 381 void InsertRepresentationChangesForValue(HValue* value); | 383 void InsertRepresentationChangesForValue(HValue* value); |
| 382 void InferTypes(ZoneList<HValue*>* worklist); | 384 void InferTypes(ZoneList<HValue*>* worklist); |
| 383 void InitializeInferredTypes(int from_inclusive, int to_inclusive); | 385 void InitializeInferredTypes(int from_inclusive, int to_inclusive); |
| 384 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); | 386 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); |
| 385 void EliminateRedundantBoundsChecks(HBasicBlock* bb, BoundsCheckTable* table); | 387 void EliminateRedundantBoundsChecks(HBasicBlock* bb, BoundsCheckTable* table); |
| 388 bool TryRotate(HInstruction* current); |
| 386 | 389 |
| 387 Isolate* isolate_; | 390 Isolate* isolate_; |
| 388 int next_block_id_; | 391 int next_block_id_; |
| 389 HBasicBlock* entry_block_; | 392 HBasicBlock* entry_block_; |
| 390 HEnvironment* start_environment_; | 393 HEnvironment* start_environment_; |
| 391 ZoneList<HBasicBlock*> blocks_; | 394 ZoneList<HBasicBlock*> blocks_; |
| 392 ZoneList<HValue*> values_; | 395 ZoneList<HValue*> values_; |
| 393 ZoneList<HPhi*>* phi_list_; | 396 ZoneList<HPhi*>* phi_list_; |
| 394 ZoneList<HInstruction*>* uint32_instructions_; | 397 ZoneList<HInstruction*>* uint32_instructions_; |
| 395 SetOncePointer<HConstant> undefined_constant_; | 398 SetOncePointer<HConstant> undefined_constant_; |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 const char* filename_; | 1489 const char* filename_; |
| 1487 HeapStringAllocator string_allocator_; | 1490 HeapStringAllocator string_allocator_; |
| 1488 StringStream trace_; | 1491 StringStream trace_; |
| 1489 int indent_; | 1492 int indent_; |
| 1490 }; | 1493 }; |
| 1491 | 1494 |
| 1492 | 1495 |
| 1493 } } // namespace v8::internal | 1496 } } // namespace v8::internal |
| 1494 | 1497 |
| 1495 #endif // V8_HYDROGEN_H_ | 1498 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |