Chromium Code Reviews| 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 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3067 UNIMPLEMENTED(); | 3067 UNIMPLEMENTED(); |
| 3068 return NULL; | 3068 return NULL; |
| 3069 } | 3069 } |
| 3070 | 3070 |
| 3071 | 3071 |
| 3072 void BinaryUint32x4OpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3072 void BinaryUint32x4OpInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3073 UNIMPLEMENTED(); | 3073 UNIMPLEMENTED(); |
| 3074 } | 3074 } |
| 3075 | 3075 |
| 3076 | 3076 |
| 3077 LocationSummary* MathSqrtInstr::MakeLocationSummary() const { | 3077 LocationSummary* MathUnaryInstr::MakeLocationSummary() const { |
| 3078 const intptr_t kNumInputs = 1; | 3078 const intptr_t kNumInputs = 1; |
| 3079 const intptr_t kNumTemps = 0; | 3079 const intptr_t kNumTemps = 0; |
| 3080 LocationSummary* summary = | 3080 LocationSummary* summary = |
| 3081 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 3081 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| 3082 summary->set_in(0, Location::RequiresFpuRegister()); | 3082 summary->set_in(0, Location::RequiresFpuRegister()); |
| 3083 summary->set_out(Location::RequiresFpuRegister()); | 3083 summary->set_out(Location::RequiresFpuRegister()); |
| 3084 return summary; | 3084 return summary; |
| 3085 } | 3085 } |
| 3086 | 3086 |
| 3087 | 3087 |
| 3088 void MathSqrtInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 3088 void MathUnaryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 3089 ASSERT(kind() == MethodRecognizer::kMathSqrt); | |
|
Ivan Posva
2013/08/05 23:32:16
ditto
srdjan
2013/08/06 15:43:05
Done.
| |
| 3089 __ sqrtd(locs()->out().fpu_reg(), locs()->in(0).fpu_reg()); | 3090 __ sqrtd(locs()->out().fpu_reg(), locs()->in(0).fpu_reg()); |
| 3090 } | 3091 } |
| 3091 | 3092 |
| 3092 | 3093 |
| 3093 LocationSummary* MathMinMaxInstr::MakeLocationSummary() const { | 3094 LocationSummary* MathMinMaxInstr::MakeLocationSummary() const { |
| 3094 if (result_cid() == kDoubleCid) { | 3095 if (result_cid() == kDoubleCid) { |
| 3095 const intptr_t kNumInputs = 2; | 3096 const intptr_t kNumInputs = 2; |
| 3096 const intptr_t kNumTemps = 1; | 3097 const intptr_t kNumTemps = 1; |
| 3097 LocationSummary* summary = | 3098 LocationSummary* summary = |
| 3098 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); | 3099 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3868 compiler->GenerateCall(token_pos(), | 3869 compiler->GenerateCall(token_pos(), |
| 3869 &label, | 3870 &label, |
| 3870 PcDescriptors::kOther, | 3871 PcDescriptors::kOther, |
| 3871 locs()); | 3872 locs()); |
| 3872 __ Drop(2); // Discard type arguments and receiver. | 3873 __ Drop(2); // Discard type arguments and receiver. |
| 3873 } | 3874 } |
| 3874 | 3875 |
| 3875 } // namespace dart | 3876 } // namespace dart |
| 3876 | 3877 |
| 3877 #endif // defined TARGET_ARCH_MIPS | 3878 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |