| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 } | 359 } |
| 360 } | 360 } |
| 361 } | 361 } |
| 362 | 362 |
| 363 | 363 |
| 364 HGlobalValueNumberer::HGlobalValueNumberer(HGraph* graph, CompilationInfo* info) | 364 HGlobalValueNumberer::HGlobalValueNumberer(HGraph* graph, CompilationInfo* info) |
| 365 : graph_(graph), | 365 : graph_(graph), |
| 366 info_(info), | 366 info_(info), |
| 367 removed_side_effects_(false), | 367 removed_side_effects_(false), |
| 368 phase_zone_(info->phase_zone()), | 368 phase_zone_(info->phase_zone()), |
| 369 phase_zone_scope_(phase_zone_, DELETE_ON_EXIT), | 369 phase_zone_scope_(phase_zone_), |
| 370 block_side_effects_(graph->blocks()->length(), phase_zone_), | 370 block_side_effects_(graph->blocks()->length(), phase_zone_), |
| 371 loop_side_effects_(graph->blocks()->length(), phase_zone_), | 371 loop_side_effects_(graph->blocks()->length(), phase_zone_), |
| 372 visited_on_paths_(phase_zone_, graph->blocks()->length()) { | 372 visited_on_paths_(phase_zone_, graph->blocks()->length()) { |
| 373 ASSERT(!AllowHandleAllocation::IsAllowed()); | 373 ASSERT(!AllowHandleAllocation::IsAllowed()); |
| 374 block_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), | 374 block_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), |
| 375 phase_zone_); | 375 phase_zone_); |
| 376 loop_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), | 376 loop_side_effects_.AddBlock(GVNFlagSet(), graph_->blocks()->length(), |
| 377 phase_zone_); | 377 phase_zone_); |
| 378 } | 378 } |
| 379 | 379 |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 dominated); | 849 dominated); |
| 850 successor_map->Kill(side_effects_on_all_paths); | 850 successor_map->Kill(side_effects_on_all_paths); |
| 851 successor_dominators->Kill(side_effects_on_all_paths); | 851 successor_dominators->Kill(side_effects_on_all_paths); |
| 852 } | 852 } |
| 853 } | 853 } |
| 854 current = next; | 854 current = next; |
| 855 } | 855 } |
| 856 } | 856 } |
| 857 | 857 |
| 858 } } // namespace v8::internal | 858 } } // namespace v8::internal |
| OLD | NEW |