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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 bool FlowGraphCompiler::IsPotentialUnboxedField(const Field& field) { | 248 bool FlowGraphCompiler::IsPotentialUnboxedField(const Field& field) { |
249 return field.is_unboxing_candidate() && | 249 return field.is_unboxing_candidate() && |
250 (FlowGraphCompiler::IsUnboxedField(field) || | 250 (FlowGraphCompiler::IsUnboxedField(field) || |
251 (!field.is_final() && (field.guarded_cid() == kIllegalCid))); | 251 (!field.is_final() && (field.guarded_cid() == kIllegalCid))); |
252 } | 252 } |
253 | 253 |
254 | 254 |
255 void FlowGraphCompiler::InitCompiler() { | 255 void FlowGraphCompiler::InitCompiler() { |
256 #ifndef PRODUCT | 256 #ifndef PRODUCT |
257 TimelineDurationScope tds(thread(), | 257 TimelineDurationScope tds(thread(), |
258 isolate()->GetCompilerStream(), | 258 Timeline::GetCompilerStream(), |
259 "InitCompiler"); | 259 "InitCompiler"); |
260 #endif // !PRODUCT | 260 #endif // !PRODUCT |
261 pc_descriptors_list_ = new(zone()) DescriptorList(64); | 261 pc_descriptors_list_ = new(zone()) DescriptorList(64); |
262 exception_handlers_list_ = new(zone()) ExceptionHandlerList(); | 262 exception_handlers_list_ = new(zone()) ExceptionHandlerList(); |
263 block_info_.Clear(); | 263 block_info_.Clear(); |
264 // Conservative detection of leaf routines used to remove the stack check | 264 // Conservative detection of leaf routines used to remove the stack check |
265 // on function entry. | 265 // on function entry. |
266 bool is_leaf = is_optimizing() && !flow_graph().IsCompiledForOsr(); | 266 bool is_leaf = is_optimizing() && !flow_graph().IsCompiledForOsr(); |
267 // Initialize block info and search optimized (non-OSR) code for calls | 267 // Initialize block info and search optimized (non-OSR) code for calls |
268 // indicating a non-leaf routine and calls without IC data indicating | 268 // indicating a non-leaf routine and calls without IC data indicating |
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1934 | 1934 |
1935 | 1935 |
1936 void FlowGraphCompiler::FrameStateClear() { | 1936 void FlowGraphCompiler::FrameStateClear() { |
1937 ASSERT(!is_optimizing()); | 1937 ASSERT(!is_optimizing()); |
1938 frame_state_.TruncateTo(0); | 1938 frame_state_.TruncateTo(0); |
1939 } | 1939 } |
1940 #endif | 1940 #endif |
1941 | 1941 |
1942 | 1942 |
1943 } // namespace dart | 1943 } // namespace dart |
OLD | NEW |