| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 63 HValue* NewMapCheckAndInsert(HCapturedObject* state, HCheckMaps* mapcheck); | 63 HValue* NewMapCheckAndInsert(HCapturedObject* state, HCheckMaps* mapcheck); |
| 64 | 64 |
| 65 HValue* NewLoadReplacement(HLoadNamedField* load, HValue* load_value); |
| 66 |
| 65 HCapturedObject* StateAt(HBasicBlock* block) { | 67 HCapturedObject* StateAt(HBasicBlock* block) { |
| 66 return block_states_.at(block->block_id()); | 68 return block_states_.at(block->block_id()); |
| 67 } | 69 } |
| 68 | 70 |
| 69 void SetStateAt(HBasicBlock* block, HCapturedObject* state) { | 71 void SetStateAt(HBasicBlock* block, HCapturedObject* state) { |
| 70 block_states_.Set(block->block_id(), state); | 72 block_states_.Set(block->block_id(), state); |
| 71 } | 73 } |
| 72 | 74 |
| 73 // List of allocations captured during collection phase. | 75 // List of allocations captured during collection phase. |
| 74 ZoneList<HInstruction*> captured_; | 76 ZoneList<HInstruction*> captured_; |
| 75 | 77 |
| 76 // Number of captured objects on which scalar replacement was done. | 78 // Number of captured objects on which scalar replacement was done. |
| 77 int number_of_objects_; | 79 int number_of_objects_; |
| 78 | 80 |
| 79 // Number of scalar values tracked during scalar replacement phase. | 81 // Number of scalar values tracked during scalar replacement phase. |
| 80 int number_of_values_; | 82 int number_of_values_; |
| 81 int cumulative_values_; | 83 int cumulative_values_; |
| 82 | 84 |
| 83 // Map of block IDs to the data-flow state at block entry during the | 85 // Map of block IDs to the data-flow state at block entry during the |
| 84 // scalar replacement phase. | 86 // scalar replacement phase. |
| 85 ZoneList<HCapturedObject*> block_states_; | 87 ZoneList<HCapturedObject*> block_states_; |
| 86 }; | 88 }; |
| 87 | 89 |
| 88 | 90 |
| 89 } } // namespace v8::internal | 91 } } // namespace v8::internal |
| 90 | 92 |
| 91 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ | 93 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ |
| OLD | NEW |