OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
6 #include "src/hydrogen-gvn.h" | 6 #include "src/hydrogen-gvn.h" |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 private: | 92 private: |
93 int count_; | 93 int count_; |
94 HInstruction* data_[kNumberOfTrackedSideEffects]; | 94 HInstruction* data_[kNumberOfTrackedSideEffects]; |
95 }; | 95 }; |
96 | 96 |
97 | 97 |
98 void TraceGVN(const char* msg, ...) { | 98 void TraceGVN(const char* msg, ...) { |
99 va_list arguments; | 99 va_list arguments; |
100 va_start(arguments, msg); | 100 va_start(arguments, msg); |
101 OS::VPrint(msg, arguments); | 101 base::OS::VPrint(msg, arguments); |
102 va_end(arguments); | 102 va_end(arguments); |
103 } | 103 } |
104 | 104 |
105 | 105 |
106 // Wrap TraceGVN in macros to avoid the expense of evaluating its arguments when | 106 // Wrap TraceGVN in macros to avoid the expense of evaluating its arguments when |
107 // --trace-gvn is off. | 107 // --trace-gvn is off. |
108 #define TRACE_GVN_1(msg, a1) \ | 108 #define TRACE_GVN_1(msg, a1) \ |
109 if (FLAG_trace_gvn) { \ | 109 if (FLAG_trace_gvn) { \ |
110 TraceGVN(msg, a1); \ | 110 TraceGVN(msg, a1); \ |
111 } | 111 } |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 dominated); | 904 dominated); |
905 successor_map->Kill(side_effects_on_all_paths); | 905 successor_map->Kill(side_effects_on_all_paths); |
906 successor_dominators->Kill(side_effects_on_all_paths); | 906 successor_dominators->Kill(side_effects_on_all_paths); |
907 } | 907 } |
908 } | 908 } |
909 current = next; | 909 current = next; |
910 } | 910 } |
911 } | 911 } |
912 | 912 |
913 } } // namespace v8::internal | 913 } } // namespace v8::internal |
OLD | NEW |