| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 captured_(0, zone()), | 42 captured_(0, zone()), |
| 43 number_of_objects_(0), | 43 number_of_objects_(0), |
| 44 number_of_values_(0), | 44 number_of_values_(0), |
| 45 cumulative_values_(0), | 45 cumulative_values_(0), |
| 46 block_states_(graph->blocks()->length(), zone()) { } | 46 block_states_(graph->blocks()->length(), zone()) { } |
| 47 | 47 |
| 48 void Run(); | 48 void Run(); |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void CollectCapturedValues(); | 51 void CollectCapturedValues(); |
| 52 bool HasNoEscapingUses(HValue* value); | 52 bool HasNoEscapingUses(HValue* value, int size); |
| 53 void PerformScalarReplacement(); | 53 void PerformScalarReplacement(); |
| 54 void AnalyzeDataFlow(HInstruction* instr); | 54 void AnalyzeDataFlow(HInstruction* instr); |
| 55 | 55 |
| 56 HCapturedObject* NewState(HInstruction* prev); | 56 HCapturedObject* NewState(HInstruction* prev); |
| 57 HCapturedObject* NewStateForAllocation(HInstruction* prev); | 57 HCapturedObject* NewStateForAllocation(HInstruction* prev); |
| 58 HCapturedObject* NewStateForLoopHeader(HInstruction* prev, HCapturedObject*); | 58 HCapturedObject* NewStateForLoopHeader(HInstruction* prev, HCapturedObject*); |
| 59 HCapturedObject* NewStateCopy(HInstruction* prev, HCapturedObject* state); | 59 HCapturedObject* NewStateCopy(HInstruction* prev, HCapturedObject* state); |
| 60 | 60 |
| 61 HPhi* NewPhiAndInsert(HBasicBlock* block, HValue* incoming_value, int index); | 61 HPhi* NewPhiAndInsert(HBasicBlock* block, HValue* incoming_value, int index); |
| 62 | 62 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 82 | 82 |
| 83 // Map of block IDs to the data-flow state at block entry during the | 83 // Map of block IDs to the data-flow state at block entry during the |
| 84 // scalar replacement phase. | 84 // scalar replacement phase. |
| 85 ZoneList<HCapturedObject*> block_states_; | 85 ZoneList<HCapturedObject*> block_states_; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 | 88 |
| 89 } } // namespace v8::internal | 89 } } // namespace v8::internal |
| 90 | 90 |
| 91 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ | 91 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ |
| OLD | NEW |