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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "lib/error.h" | 10 #include "lib/error.h" |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 // descriptor. | 148 // descriptor. |
149 Register temp_reg = locs()->temp(0).reg(); | 149 Register temp_reg = locs()->temp(0).reg(); |
150 int argument_count = ArgumentCount(); | 150 int argument_count = ArgumentCount(); |
151 const Array& arguments_descriptor = | 151 const Array& arguments_descriptor = |
152 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 152 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
153 argument_names())); | 153 argument_names())); |
154 __ LoadObject(temp_reg, arguments_descriptor); | 154 __ LoadObject(temp_reg, arguments_descriptor); |
155 compiler->GenerateDartCall(deopt_id(), | 155 compiler->GenerateDartCall(deopt_id(), |
156 token_pos(), | 156 token_pos(), |
157 &StubCode::CallClosureFunctionLabel(), | 157 &StubCode::CallClosureFunctionLabel(), |
158 PcDescriptors::kOther, | 158 PcDescriptors::kClosureCall, |
159 locs()); | 159 locs()); |
160 __ Drop(argument_count); | 160 __ Drop(argument_count); |
161 } | 161 } |
162 | 162 |
163 | 163 |
164 LocationSummary* LoadLocalInstr::MakeLocationSummary() const { | 164 LocationSummary* LoadLocalInstr::MakeLocationSummary() const { |
165 return LocationSummary::Make(0, | 165 return LocationSummary::Make(0, |
166 Location::RequiresRegister(), | 166 Location::RequiresRegister(), |
167 LocationSummary::kNoCall); | 167 LocationSummary::kNoCall); |
168 } | 168 } |
(...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2796 compiler->GenerateCall(token_pos(), | 2796 compiler->GenerateCall(token_pos(), |
2797 &label, | 2797 &label, |
2798 PcDescriptors::kOther, | 2798 PcDescriptors::kOther, |
2799 locs()); | 2799 locs()); |
2800 __ Drop(2); // Discard type arguments and receiver. | 2800 __ Drop(2); // Discard type arguments and receiver. |
2801 } | 2801 } |
2802 | 2802 |
2803 } // namespace dart | 2803 } // namespace dart |
2804 | 2804 |
2805 #endif // defined TARGET_ARCH_ARM | 2805 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |