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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
6 | 6 |
7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/constant_propagator.h" | 10 #include "vm/constant_propagator.h" |
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 if (!compiler->is_optimizing()) { | 3044 if (!compiler->is_optimizing()) { |
3045 #if !defined(TARGET_ARCH_DBC) | 3045 #if !defined(TARGET_ARCH_DBC) |
3046 // TODO(vegorov) re-enable edge counters on DBC if we consider them | 3046 // TODO(vegorov) re-enable edge counters on DBC if we consider them |
3047 // beneficial for the quality of the optimized bytecode. | 3047 // beneficial for the quality of the optimized bytecode. |
3048 if (compiler->NeedsEdgeCounter(this)) { | 3048 if (compiler->NeedsEdgeCounter(this)) { |
3049 compiler->EmitEdgeCounter(preorder_number()); | 3049 compiler->EmitEdgeCounter(preorder_number()); |
3050 } | 3050 } |
3051 #endif | 3051 #endif |
3052 | 3052 |
3053 // The deoptimization descriptor points after the edge counter code for | 3053 // The deoptimization descriptor points after the edge counter code for |
3054 // uniformity with ARM and MIPS, where we can reuse pattern matching | 3054 // uniformity with ARM, where we can reuse pattern matching code that |
3055 // code that matches backwards from the end of the pattern. | 3055 // matches backwards from the end of the pattern. |
3056 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, GetDeoptId(), | 3056 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, GetDeoptId(), |
3057 TokenPosition::kNoSource); | 3057 TokenPosition::kNoSource); |
3058 } | 3058 } |
3059 if (HasParallelMove()) { | 3059 if (HasParallelMove()) { |
3060 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 3060 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
3061 } | 3061 } |
3062 } | 3062 } |
3063 | 3063 |
3064 | 3064 |
3065 void IndirectGotoInstr::ComputeOffsetTable() { | 3065 void IndirectGotoInstr::ComputeOffsetTable() { |
(...skipping 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4359 "native function '%s' (%" Pd " arguments) cannot be found", | 4359 "native function '%s' (%" Pd " arguments) cannot be found", |
4360 native_name().ToCString(), function().NumParameters()); | 4360 native_name().ToCString(), function().NumParameters()); |
4361 } | 4361 } |
4362 set_is_auto_scope(auto_setup_scope); | 4362 set_is_auto_scope(auto_setup_scope); |
4363 set_native_c_function(native_function); | 4363 set_native_c_function(native_function); |
4364 } | 4364 } |
4365 | 4365 |
4366 #undef __ | 4366 #undef __ |
4367 | 4367 |
4368 } // namespace dart | 4368 } // namespace dart |
OLD | NEW |