| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 Register result = locs()->out().reg(); | 967 Register result = locs()->out().reg(); |
| 968 __ movl(result, | 968 __ movl(result, |
| 969 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress()))); | 969 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress()))); |
| 970 __ movl(result, Address(result, | 970 __ movl(result, Address(result, |
| 971 char_code, | 971 char_code, |
| 972 TIMES_HALF_WORD_SIZE, // Char code is a smi. | 972 TIMES_HALF_WORD_SIZE, // Char code is a smi. |
| 973 Symbols::kNullCharCodeSymbolOffset * kWordSize)); | 973 Symbols::kNullCharCodeSymbolOffset * kWordSize)); |
| 974 } | 974 } |
| 975 | 975 |
| 976 | 976 |
| 977 LocationSummary* StringInterpolateInstr::MakeLocationSummary() const { |
| 978 const intptr_t kNumInputs = 1; |
| 979 const intptr_t kNumTemps = 0; |
| 980 LocationSummary* summary = |
| 981 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); |
| 982 summary->set_in(0, Location::RegisterLocation(EAX)); |
| 983 summary->set_out(Location::RegisterLocation(EAX)); |
| 984 return summary; |
| 985 } |
| 986 |
| 987 |
| 988 void StringInterpolateInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 989 Register array = locs()->in(0).reg(); |
| 990 __ pushl(array); |
| 991 const int kNumberOfArguments = 1; |
| 992 const Array& kNoArgumentNames = Object::null_array(); |
| 993 compiler->GenerateStaticCall(deopt_id(), |
| 994 token_pos(), |
| 995 CallFunction(), |
| 996 kNumberOfArguments, |
| 997 kNoArgumentNames, |
| 998 locs()); |
| 999 ASSERT(locs()->out().reg() == EAX); |
| 1000 } |
| 1001 |
| 1002 |
| 977 LocationSummary* LoadUntaggedInstr::MakeLocationSummary() const { | 1003 LocationSummary* LoadUntaggedInstr::MakeLocationSummary() const { |
| 978 const intptr_t kNumInputs = 1; | 1004 const intptr_t kNumInputs = 1; |
| 979 return LocationSummary::Make(kNumInputs, | 1005 return LocationSummary::Make(kNumInputs, |
| 980 Location::RequiresRegister(), | 1006 Location::RequiresRegister(), |
| 981 LocationSummary::kNoCall); | 1007 LocationSummary::kNoCall); |
| 982 } | 1008 } |
| 983 | 1009 |
| 984 | 1010 |
| 985 void LoadUntaggedInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 1011 void LoadUntaggedInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 986 Register object = locs()->in(0).reg(); | 1012 Register object = locs()->in(0).reg(); |
| (...skipping 4163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5150 PcDescriptors::kOther, | 5176 PcDescriptors::kOther, |
| 5151 locs()); | 5177 locs()); |
| 5152 __ Drop(2); // Discard type arguments and receiver. | 5178 __ Drop(2); // Discard type arguments and receiver. |
| 5153 } | 5179 } |
| 5154 | 5180 |
| 5155 } // namespace dart | 5181 } // namespace dart |
| 5156 | 5182 |
| 5157 #undef __ | 5183 #undef __ |
| 5158 | 5184 |
| 5159 #endif // defined TARGET_ARCH_IA32 | 5185 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |