OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
6 | 6 |
7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
8 | 8 |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 old_saved_ic_data.IsNull() ? 0 : old_saved_ic_data.Length(); | 195 old_saved_ic_data.IsNull() ? 0 : old_saved_ic_data.Length(); |
196 for (intptr_t i = 1; i < saved_len; i++) { | 196 for (intptr_t i = 1; i < saved_len; i++) { |
197 ICData& ic_data = ICData::ZoneHandle(zone()); | 197 ICData& ic_data = ICData::ZoneHandle(zone()); |
198 ic_data ^= old_saved_ic_data.At(i); | 198 ic_data ^= old_saved_ic_data.At(i); |
199 (*deopt_id_to_ic_data_)[ic_data.deopt_id()] = &ic_data; | 199 (*deopt_id_to_ic_data_)[ic_data.deopt_id()] = &ic_data; |
200 } | 200 } |
201 } | 201 } |
202 ASSERT(assembler != NULL); | 202 ASSERT(assembler != NULL); |
203 ASSERT(!list_class_.IsNull()); | 203 ASSERT(!list_class_.IsNull()); |
204 | 204 |
205 #if defined(PRODUCT) | 205 bool stack_traces_only = !FLAG_profiler; |
206 const bool stack_traces_only = true; | |
207 #else | |
208 const bool stack_traces_only = false; | |
209 #endif | |
210 code_source_map_builder_ = new (zone_) | 206 code_source_map_builder_ = new (zone_) |
211 CodeSourceMapBuilder(stack_traces_only, caller_inline_id, | 207 CodeSourceMapBuilder(stack_traces_only, caller_inline_id, |
212 inline_id_to_token_pos, inline_id_to_function); | 208 inline_id_to_token_pos, inline_id_to_function); |
213 } | 209 } |
214 | 210 |
215 bool FlowGraphCompiler::IsUnboxedField(const Field& field) { | 211 bool FlowGraphCompiler::IsUnboxedField(const Field& field) { |
216 bool valid_class = | 212 bool valid_class = |
217 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) || | 213 (SupportsUnboxedDoubles() && (field.guarded_cid() == kDoubleCid)) || |
218 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) || | 214 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat32x4Cid)) || |
219 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid)); | 215 (SupportsUnboxedSimd128() && (field.guarded_cid() == kFloat64x2Cid)); |
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 return true; | 1941 return true; |
1946 } | 1942 } |
1947 | 1943 |
1948 void FlowGraphCompiler::FrameStateClear() { | 1944 void FlowGraphCompiler::FrameStateClear() { |
1949 ASSERT(!is_optimizing()); | 1945 ASSERT(!is_optimizing()); |
1950 frame_state_.TruncateTo(0); | 1946 frame_state_.TruncateTo(0); |
1951 } | 1947 } |
1952 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1948 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
1953 | 1949 |
1954 } // namespace dart | 1950 } // namespace dart |
OLD | NEW |