| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 | 31 |
| 32 namespace v8 { | 32 namespace v8 { |
| 33 namespace internal { | 33 namespace internal { |
| 34 | 34 |
| 35 | 35 |
| 36 EnvironmentSlotLivenessAnalyzer::EnvironmentSlotLivenessAnalyzer( | 36 EnvironmentSlotLivenessAnalyzer::EnvironmentSlotLivenessAnalyzer( |
| 37 HGraph* graph) | 37 HGraph* graph) |
| 38 : graph_(graph), | 38 : graph_(graph), |
| 39 zone_(graph->isolate()), | 39 zone_(graph->isolate()), |
| 40 zone_scope_(&zone_, DELETE_ON_EXIT), | 40 zone_scope_(&zone_), |
| 41 block_count_(graph->blocks()->length()), | 41 block_count_(graph->blocks()->length()), |
| 42 maximum_environment_size_(graph->maximum_environment_size()), | 42 maximum_environment_size_(graph->maximum_environment_size()), |
| 43 collect_markers_(true), | 43 collect_markers_(true), |
| 44 last_simulate_(NULL) { | 44 last_simulate_(NULL) { |
| 45 if (maximum_environment_size_ == 0) return; | 45 if (maximum_environment_size_ == 0) return; |
| 46 | 46 |
| 47 live_at_block_start_ = | 47 live_at_block_start_ = |
| 48 new(zone()) ZoneList<BitVector*>(block_count_, zone()); | 48 new(zone()) ZoneList<BitVector*>(block_count_, zone()); |
| 49 first_simulate_ = new(zone()) ZoneList<HSimulate*>(block_count_, zone()); | 49 first_simulate_ = new(zone()) ZoneList<HSimulate*>(block_count_, zone()); |
| 50 first_simulate_invalid_for_index_ = | 50 first_simulate_invalid_for_index_ = |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 ZapEnvironmentSlotsInSuccessors(block, live); | 258 ZapEnvironmentSlotsInSuccessors(block, live); |
| 259 } | 259 } |
| 260 | 260 |
| 261 // Finally, remove the HEnvironment{Bind,Lookup} markers. | 261 // Finally, remove the HEnvironment{Bind,Lookup} markers. |
| 262 for (int i = 0; i < markers_->length(); ++i) { | 262 for (int i = 0; i < markers_->length(); ++i) { |
| 263 markers_->at(i)->DeleteAndReplaceWith(NULL); | 263 markers_->at(i)->DeleteAndReplaceWith(NULL); |
| 264 } | 264 } |
| 265 } | 265 } |
| 266 | 266 |
| 267 } } // namespace v8::internal | 267 } } // namespace v8::internal |
| OLD | NEW |