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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 // descriptor. | 150 // descriptor. |
151 Register temp_reg = locs()->temp(0).reg(); | 151 Register temp_reg = locs()->temp(0).reg(); |
152 int argument_count = ArgumentCount(); | 152 int argument_count = ArgumentCount(); |
153 const Array& arguments_descriptor = | 153 const Array& arguments_descriptor = |
154 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, | 154 Array::ZoneHandle(ArgumentsDescriptor::New(argument_count, |
155 argument_names())); | 155 argument_names())); |
156 __ LoadObject(temp_reg, arguments_descriptor); | 156 __ LoadObject(temp_reg, arguments_descriptor); |
157 compiler->GenerateDartCall(deopt_id(), | 157 compiler->GenerateDartCall(deopt_id(), |
158 token_pos(), | 158 token_pos(), |
159 &StubCode::CallClosureFunctionLabel(), | 159 &StubCode::CallClosureFunctionLabel(), |
160 PcDescriptors::kOther, | 160 PcDescriptors::kClosureCall, |
161 locs()); | 161 locs()); |
162 __ Drop(argument_count); | 162 __ Drop(argument_count); |
163 } | 163 } |
164 | 164 |
165 | 165 |
166 LocationSummary* LoadLocalInstr::MakeLocationSummary() const { | 166 LocationSummary* LoadLocalInstr::MakeLocationSummary() const { |
167 return LocationSummary::Make(0, | 167 return LocationSummary::Make(0, |
168 Location::RequiresRegister(), | 168 Location::RequiresRegister(), |
169 LocationSummary::kNoCall); | 169 LocationSummary::kNoCall); |
170 } | 170 } |
(...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 compiler->GenerateCall(token_pos(), | 2826 compiler->GenerateCall(token_pos(), |
2827 &label, | 2827 &label, |
2828 PcDescriptors::kOther, | 2828 PcDescriptors::kOther, |
2829 locs()); | 2829 locs()); |
2830 __ Drop(2); // Discard type arguments and receiver. | 2830 __ Drop(2); // Discard type arguments and receiver. |
2831 } | 2831 } |
2832 | 2832 |
2833 } // namespace dart | 2833 } // namespace dart |
2834 | 2834 |
2835 #endif // defined TARGET_ARCH_MIPS | 2835 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |