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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 void InitializeInferredTypes(); | 270 void InitializeInferredTypes(); |
271 void InsertTypeConversions(); | 271 void InsertTypeConversions(); |
272 void MergeRemovableSimulates(); | 272 void MergeRemovableSimulates(); |
273 void InsertRepresentationChanges(); | 273 void InsertRepresentationChanges(); |
274 void MarkDeoptimizeOnUndefined(); | 274 void MarkDeoptimizeOnUndefined(); |
275 void ComputeMinusZeroChecks(); | 275 void ComputeMinusZeroChecks(); |
276 void ComputeSafeUint32Operations(); | 276 void ComputeSafeUint32Operations(); |
277 void GlobalValueNumbering(); | 277 void GlobalValueNumbering(); |
278 bool ProcessArgumentsObject(); | 278 bool ProcessArgumentsObject(); |
279 void EliminateRedundantPhis(); | 279 void EliminateRedundantPhis(); |
280 void EliminateUnreachablePhis(); | |
281 void Canonicalize(); | 280 void Canonicalize(); |
282 void OrderBlocks(); | 281 void OrderBlocks(); |
283 void AssignDominators(); | 282 void AssignDominators(); |
284 void SetupInformativeDefinitions(); | 283 void SetupInformativeDefinitions(); |
285 void EliminateRedundantBoundsChecks(); | 284 void EliminateRedundantBoundsChecks(); |
286 void DehoistSimpleArrayIndexComputations(); | 285 void DehoistSimpleArrayIndexComputations(); |
287 void DeadCodeElimination(); | |
288 void RestoreActualValues(); | 286 void RestoreActualValues(); |
| 287 void DeadCodeElimination(const char *phase_name); |
289 void PropagateDeoptimizingMark(); | 288 void PropagateDeoptimizingMark(); |
290 void EliminateUnusedInstructions(); | |
291 | 289 |
292 // Returns false if there are phi-uses of the arguments-object | 290 // Returns false if there are phi-uses of the arguments-object |
293 // which are not supported by the optimizing compiler. | 291 // which are not supported by the optimizing compiler. |
294 bool CheckArgumentsPhiUses(); | 292 bool CheckArgumentsPhiUses(); |
295 | 293 |
296 // Returns false if there are phi-uses of an uninitialized const | 294 // Returns false if there are phi-uses of an uninitialized const |
297 // which are not supported by the optimizing compiler. | 295 // which are not supported by the optimizing compiler. |
298 bool CheckConstPhiUses(); | 296 bool CheckConstPhiUses(); |
299 | 297 |
300 void CollectPhis(); | 298 void CollectPhis(); |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 } | 393 } |
396 uint32_instructions_->Add(instr, zone()); | 394 uint32_instructions_->Add(instr, zone()); |
397 } | 395 } |
398 | 396 |
399 private: | 397 private: |
400 HConstant* GetConstantInt32(SetOncePointer<HConstant>* pointer, | 398 HConstant* GetConstantInt32(SetOncePointer<HConstant>* pointer, |
401 int32_t integer_value); | 399 int32_t integer_value); |
402 HConstant* GetConstantSmi(SetOncePointer<HConstant>* pointer, | 400 HConstant* GetConstantSmi(SetOncePointer<HConstant>* pointer, |
403 int32_t integer_value); | 401 int32_t integer_value); |
404 | 402 |
| 403 void MarkLive(HValue* ref, HValue* instr, ZoneList<HValue*>* worklist); |
| 404 void MarkLiveInstructions(); |
| 405 void RemoveDeadInstructions(); |
405 void MarkAsDeoptimizingRecursively(HBasicBlock* block); | 406 void MarkAsDeoptimizingRecursively(HBasicBlock* block); |
406 void NullifyUnreachableInstructions(); | 407 void NullifyUnreachableInstructions(); |
407 void InsertTypeConversions(HInstruction* instr); | 408 void InsertTypeConversions(HInstruction* instr); |
408 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); | 409 void PropagateMinusZeroChecks(HValue* value, BitVector* visited); |
409 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); | 410 void RecursivelyMarkPhiDeoptimizeOnUndefined(HPhi* phi); |
410 void InsertRepresentationChangeForUse(HValue* value, | 411 void InsertRepresentationChangeForUse(HValue* value, |
411 HValue* use_value, | 412 HValue* use_value, |
412 int use_index, | 413 int use_index, |
413 Representation to); | 414 Representation to); |
414 void InsertRepresentationChangesForValue(HValue* value); | 415 void InsertRepresentationChangesForValue(HValue* value); |
(...skipping 1598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2013 EmbeddedVector<char, 64> filename_; | 2014 EmbeddedVector<char, 64> filename_; |
2014 HeapStringAllocator string_allocator_; | 2015 HeapStringAllocator string_allocator_; |
2015 StringStream trace_; | 2016 StringStream trace_; |
2016 int indent_; | 2017 int indent_; |
2017 }; | 2018 }; |
2018 | 2019 |
2019 | 2020 |
2020 } } // namespace v8::internal | 2021 } } // namespace v8::internal |
2021 | 2022 |
2022 #endif // V8_HYDROGEN_H_ | 2023 #endif // V8_HYDROGEN_H_ |
OLD | NEW |