| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "hydrogen.h" | 28 #include "hydrogen.h" |
| 29 | 29 |
| 30 #include <algorithm> | 30 #include <algorithm> |
| 31 | 31 |
| 32 #include "v8.h" | 32 #include "v8.h" |
| 33 #include "codegen.h" | 33 #include "codegen.h" |
| 34 #include "full-codegen.h" | 34 #include "full-codegen.h" |
| 35 #include "hashmap.h" | 35 #include "hashmap.h" |
| 36 #include "hydrogen-bce.h" | 36 #include "hydrogen-bce.h" |
| 37 #include "hydrogen-bch.h" |
| 37 #include "hydrogen-canonicalize.h" | 38 #include "hydrogen-canonicalize.h" |
| 38 #include "hydrogen-dce.h" | 39 #include "hydrogen-dce.h" |
| 39 #include "hydrogen-dehoist.h" | 40 #include "hydrogen-dehoist.h" |
| 40 #include "hydrogen-deoptimizing-mark.h" | 41 #include "hydrogen-deoptimizing-mark.h" |
| 41 #include "hydrogen-environment-liveness.h" | 42 #include "hydrogen-environment-liveness.h" |
| 42 #include "hydrogen-escape-analysis.h" | 43 #include "hydrogen-escape-analysis.h" |
| 43 #include "hydrogen-infer-representation.h" | 44 #include "hydrogen-infer-representation.h" |
| 44 #include "hydrogen-infer-types.h" | 45 #include "hydrogen-infer-types.h" |
| 45 #include "hydrogen-gvn.h" | 46 #include "hydrogen-gvn.h" |
| 46 #include "hydrogen-minus-zero.h" | 47 #include "hydrogen-minus-zero.h" |
| (...skipping 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3022 | 3023 |
| 3023 Run<HComputeMinusZeroChecksPhase>(); | 3024 Run<HComputeMinusZeroChecksPhase>(); |
| 3024 | 3025 |
| 3025 // Eliminate redundant stack checks on backwards branches. | 3026 // Eliminate redundant stack checks on backwards branches. |
| 3026 Run<HStackCheckEliminationPhase>(); | 3027 Run<HStackCheckEliminationPhase>(); |
| 3027 | 3028 |
| 3028 if (FLAG_idefs) SetupInformativeDefinitions(); | 3029 if (FLAG_idefs) SetupInformativeDefinitions(); |
| 3029 if (FLAG_array_bounds_checks_elimination && !FLAG_idefs) { | 3030 if (FLAG_array_bounds_checks_elimination && !FLAG_idefs) { |
| 3030 Run<HBoundsCheckEliminationPhase>(); | 3031 Run<HBoundsCheckEliminationPhase>(); |
| 3031 } | 3032 } |
| 3033 if (FLAG_array_bounds_checks_hoisting && !FLAG_idefs) { |
| 3034 Run<HBoundsCheckHoistingPhase>(); |
| 3035 } |
| 3032 if (FLAG_array_index_dehoisting) Run<HDehoistIndexComputationsPhase>(); | 3036 if (FLAG_array_index_dehoisting) Run<HDehoistIndexComputationsPhase>(); |
| 3033 if (FLAG_dead_code_elimination) Run<HDeadCodeEliminationPhase>(); | 3037 if (FLAG_dead_code_elimination) Run<HDeadCodeEliminationPhase>(); |
| 3034 | 3038 |
| 3035 RestoreActualValues(); | 3039 RestoreActualValues(); |
| 3036 | 3040 |
| 3037 return true; | 3041 return true; |
| 3038 } | 3042 } |
| 3039 | 3043 |
| 3040 | 3044 |
| 3041 void HGraph::SetupInformativeDefinitionsInBlock(HBasicBlock* block) { | 3045 void HGraph::SetupInformativeDefinitionsInBlock(HBasicBlock* block) { |
| (...skipping 6905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9947 if (ShouldProduceTraceOutput()) { | 9951 if (ShouldProduceTraceOutput()) { |
| 9948 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 9952 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 9949 } | 9953 } |
| 9950 | 9954 |
| 9951 #ifdef DEBUG | 9955 #ifdef DEBUG |
| 9952 graph_->Verify(false); // No full verify. | 9956 graph_->Verify(false); // No full verify. |
| 9953 #endif | 9957 #endif |
| 9954 } | 9958 } |
| 9955 | 9959 |
| 9956 } } // namespace v8::internal | 9960 } } // namespace v8::internal |
| OLD | NEW |