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 52 matching lines...) Loading... | |
63 HValue* NewMapCheckAndInsert(HCapturedObject* state, HCheckMaps* mapcheck); | 63 HValue* NewMapCheckAndInsert(HCapturedObject* state, HCheckMaps* mapcheck); |
64 | 64 |
65 HCapturedObject* StateAt(HBasicBlock* block) { | 65 HCapturedObject* StateAt(HBasicBlock* block) { |
66 return block_states_.at(block->block_id()); | 66 return block_states_.at(block->block_id()); |
67 } | 67 } |
68 | 68 |
69 void SetStateAt(HBasicBlock* block, HCapturedObject* state) { | 69 void SetStateAt(HBasicBlock* block, HCapturedObject* state) { |
70 block_states_.Set(block->block_id(), state); | 70 block_states_.Set(block->block_id(), state); |
71 } | 71 } |
72 | 72 |
73 // Maximum number of escape analysis iterations. | |
74 static const int kMaxFixpointIterationCount = 2; | |
titzer
2013/09/30 11:38:06
How about a flag?
Michael Starzinger
2013/10/16 08:40:13
Done.
| |
75 | |
73 // List of allocations captured during collection phase. | 76 // List of allocations captured during collection phase. |
74 ZoneList<HInstruction*> captured_; | 77 ZoneList<HInstruction*> captured_; |
75 | 78 |
76 // Number of captured objects on which scalar replacement was done. | 79 // Number of captured objects on which scalar replacement was done. |
77 int number_of_objects_; | 80 int number_of_objects_; |
78 | 81 |
79 // Number of scalar values tracked during scalar replacement phase. | 82 // Number of scalar values tracked during scalar replacement phase. |
80 int number_of_values_; | 83 int number_of_values_; |
81 int cumulative_values_; | 84 int cumulative_values_; |
82 | 85 |
83 // Map of block IDs to the data-flow state at block entry during the | 86 // Map of block IDs to the data-flow state at block entry during the |
84 // scalar replacement phase. | 87 // scalar replacement phase. |
85 ZoneList<HCapturedObject*> block_states_; | 88 ZoneList<HCapturedObject*> block_states_; |
86 }; | 89 }; |
87 | 90 |
88 | 91 |
89 } } // namespace v8::internal | 92 } } // namespace v8::internal |
90 | 93 |
91 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ | 94 #endif // V8_HYDROGEN_ESCAPE_ANALYSIS_H_ |
OLD | NEW |