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 "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 void StringInterpolateInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 980 void StringInterpolateInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
981 Register array = locs()->in(0).reg(); | 981 Register array = locs()->in(0).reg(); |
982 __ Push(array); | 982 __ Push(array); |
983 const int kNumberOfArguments = 1; | 983 const int kNumberOfArguments = 1; |
984 const Array& kNoArgumentNames = Object::null_array(); | 984 const Array& kNoArgumentNames = Object::null_array(); |
985 compiler->GenerateStaticCall(deopt_id(), | 985 compiler->GenerateStaticCall(deopt_id(), |
986 token_pos(), | 986 token_pos(), |
987 CallFunction(), | 987 CallFunction(), |
988 kNumberOfArguments, | 988 kNumberOfArguments, |
989 kNoArgumentNames, | 989 kNoArgumentNames, |
990 locs()); | 990 locs(), |
| 991 ICData::Handle()); |
991 ASSERT(locs()->out(0).reg() == V0); | 992 ASSERT(locs()->out(0).reg() == V0); |
992 } | 993 } |
993 | 994 |
994 | 995 |
995 LocationSummary* LoadUntaggedInstr::MakeLocationSummary(Isolate* isolate, | 996 LocationSummary* LoadUntaggedInstr::MakeLocationSummary(Isolate* isolate, |
996 bool opt) const { | 997 bool opt) const { |
997 const intptr_t kNumInputs = 1; | 998 const intptr_t kNumInputs = 1; |
998 return LocationSummary::Make(isolate, | 999 return LocationSummary::Make(isolate, |
999 kNumInputs, | 1000 kNumInputs, |
1000 Location::RequiresRegister(), | 1001 Location::RequiresRegister(), |
(...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3853 const ICData& ic_data = *instance_call()->ic_data(); | 3854 const ICData& ic_data = *instance_call()->ic_data(); |
3854 ASSERT((ic_data.NumberOfChecks() == 1)); | 3855 ASSERT((ic_data.NumberOfChecks() == 1)); |
3855 const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0)); | 3856 const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0)); |
3856 | 3857 |
3857 const intptr_t kNumberOfArguments = 1; | 3858 const intptr_t kNumberOfArguments = 1; |
3858 compiler->GenerateStaticCall(deopt_id(), | 3859 compiler->GenerateStaticCall(deopt_id(), |
3859 instance_call()->token_pos(), | 3860 instance_call()->token_pos(), |
3860 target, | 3861 target, |
3861 kNumberOfArguments, | 3862 kNumberOfArguments, |
3862 Object::null_array(), // No argument names., | 3863 Object::null_array(), // No argument names., |
3863 locs()); | 3864 locs(), |
| 3865 ICData::Handle()); |
3864 __ Bind(&done); | 3866 __ Bind(&done); |
3865 } | 3867 } |
3866 | 3868 |
3867 | 3869 |
3868 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, | 3870 LocationSummary* DoubleToSmiInstr::MakeLocationSummary(Isolate* isolate, |
3869 bool opt) const { | 3871 bool opt) const { |
3870 const intptr_t kNumInputs = 1; | 3872 const intptr_t kNumInputs = 1; |
3871 const intptr_t kNumTemps = 0; | 3873 const intptr_t kNumTemps = 0; |
3872 LocationSummary* result = new(isolate) LocationSummary( | 3874 LocationSummary* result = new(isolate) LocationSummary( |
3873 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); | 3875 isolate, kNumInputs, kNumTemps, LocationSummary::kNoCall); |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4229 } | 4231 } |
4230 ASSERT(ic_data().NumArgsTested() == 1); | 4232 ASSERT(ic_data().NumArgsTested() == 1); |
4231 if (!with_checks()) { | 4233 if (!with_checks()) { |
4232 ASSERT(ic_data().HasOneTarget()); | 4234 ASSERT(ic_data().HasOneTarget()); |
4233 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); | 4235 const Function& target = Function::ZoneHandle(ic_data().GetTargetAt(0)); |
4234 compiler->GenerateStaticCall(deopt_id(), | 4236 compiler->GenerateStaticCall(deopt_id(), |
4235 instance_call()->token_pos(), | 4237 instance_call()->token_pos(), |
4236 target, | 4238 target, |
4237 instance_call()->ArgumentCount(), | 4239 instance_call()->ArgumentCount(), |
4238 instance_call()->argument_names(), | 4240 instance_call()->argument_names(), |
4239 locs()); | 4241 locs(), |
| 4242 ICData::Handle()); |
4240 return; | 4243 return; |
4241 } | 4244 } |
4242 | 4245 |
4243 // Load receiver into T0. | 4246 // Load receiver into T0. |
4244 __ lw(T0, Address(SP, (instance_call()->ArgumentCount() - 1) * kWordSize)); | 4247 __ lw(T0, Address(SP, (instance_call()->ArgumentCount() - 1) * kWordSize)); |
4245 | 4248 |
4246 LoadValueCid(compiler, T2, T0, | 4249 LoadValueCid(compiler, T2, T0, |
4247 (ic_data().GetReceiverClassIdAt(0) == kSmiCid) ? NULL : deopt); | 4250 (ic_data().GetReceiverClassIdAt(0) == kSmiCid) ? NULL : deopt); |
4248 | 4251 |
4249 compiler->EmitTestAndCall(ic_data(), | 4252 compiler->EmitTestAndCall(ic_data(), |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4678 compiler->GenerateCall(token_pos(), | 4681 compiler->GenerateCall(token_pos(), |
4679 &label, | 4682 &label, |
4680 PcDescriptors::kOther, | 4683 PcDescriptors::kOther, |
4681 locs()); | 4684 locs()); |
4682 __ Drop(ArgumentCount()); // Discard arguments. | 4685 __ Drop(ArgumentCount()); // Discard arguments. |
4683 } | 4686 } |
4684 | 4687 |
4685 } // namespace dart | 4688 } // namespace dart |
4686 | 4689 |
4687 #endif // defined TARGET_ARCH_MIPS | 4690 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |