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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 | 313 |
314 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } | 314 const ZoneList<HBasicBlock*>* blocks() const { return &blocks_; } |
315 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } | 315 const ZoneList<HPhi*>* phi_list() const { return phi_list_; } |
316 HBasicBlock* entry_block() const { return entry_block_; } | 316 HBasicBlock* entry_block() const { return entry_block_; } |
317 HEnvironment* start_environment() const { return start_environment_; } | 317 HEnvironment* start_environment() const { return start_environment_; } |
318 | 318 |
319 void FinalizeUniqueValueIds(); | 319 void FinalizeUniqueValueIds(); |
320 bool ProcessArgumentsObject(); | 320 bool ProcessArgumentsObject(); |
321 void OrderBlocks(); | 321 void OrderBlocks(); |
322 void AssignDominators(); | 322 void AssignDominators(); |
323 void SetupInformativeDefinitions(); | |
324 void RestoreActualValues(); | 323 void RestoreActualValues(); |
325 | 324 |
326 // Returns false if there are phi-uses of the arguments-object | 325 // Returns false if there are phi-uses of the arguments-object |
327 // which are not supported by the optimizing compiler. | 326 // which are not supported by the optimizing compiler. |
328 bool CheckArgumentsPhiUses(); | 327 bool CheckArgumentsPhiUses(); |
329 | 328 |
330 // Returns false if there are phi-uses of an uninitialized const | 329 // Returns false if there are phi-uses of an uninitialized const |
331 // which are not supported by the optimizing compiler. | 330 // which are not supported by the optimizing compiler. |
332 bool CheckConstPhiUses(); | 331 bool CheckConstPhiUses(); |
333 | 332 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 private: | 460 private: |
462 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, | 461 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, |
463 int32_t integer_value); | 462 int32_t integer_value); |
464 | 463 |
465 template<class Phase> | 464 template<class Phase> |
466 void Run() { | 465 void Run() { |
467 Phase phase(this); | 466 Phase phase(this); |
468 phase.Run(); | 467 phase.Run(); |
469 } | 468 } |
470 | 469 |
471 void CheckForBackEdge(HBasicBlock* block, HBasicBlock* successor); | |
472 void SetupInformativeDefinitionsInBlock(HBasicBlock* block); | |
473 void SetupInformativeDefinitionsRecursively(HBasicBlock* block); | |
474 void EliminateRedundantBoundsChecksUsingInductionVariables(); | 470 void EliminateRedundantBoundsChecksUsingInductionVariables(); |
475 | 471 |
476 Isolate* isolate_; | 472 Isolate* isolate_; |
477 int next_block_id_; | 473 int next_block_id_; |
478 HBasicBlock* entry_block_; | 474 HBasicBlock* entry_block_; |
479 HEnvironment* start_environment_; | 475 HEnvironment* start_environment_; |
480 ZoneList<HBasicBlock*> blocks_; | 476 ZoneList<HBasicBlock*> blocks_; |
481 ZoneList<HValue*> values_; | 477 ZoneList<HValue*> values_; |
482 ZoneList<HPhi*>* phi_list_; | 478 ZoneList<HPhi*>* phi_list_; |
483 ZoneList<HInstruction*>* uint32_instructions_; | 479 ZoneList<HInstruction*>* uint32_instructions_; |
(...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 } | 2307 } |
2312 | 2308 |
2313 private: | 2309 private: |
2314 HGraphBuilder* builder_; | 2310 HGraphBuilder* builder_; |
2315 }; | 2311 }; |
2316 | 2312 |
2317 | 2313 |
2318 } } // namespace v8::internal | 2314 } } // namespace v8::internal |
2319 | 2315 |
2320 #endif // V8_HYDROGEN_H_ | 2316 #endif // V8_HYDROGEN_H_ |
OLD | NEW |