Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: runtime/vm/intermediate_language_arm.cc

Issue 92433002: Merge sin(a), cos(a) into one instruction. TODO: Implement for ARM and MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 4127 matching lines...) Expand 10 before | Expand all | Expand 10 after
4138 // Note that index is expected smi-tagged, (i.e, times 2) for all arrays. 4138 // Note that index is expected smi-tagged, (i.e, times 2) for all arrays.
4139 // [0]: divide resut, [1]: mod result. 4139 // [0]: divide resut, [1]: mod result.
4140 __ mov(temp, ShifterOperand(0 + 4140 __ mov(temp, ShifterOperand(0 +
4141 FlowGraphCompiler::DataOffsetFor(kArrayCid) - kHeapObjectTag)); 4141 FlowGraphCompiler::DataOffsetFor(kArrayCid) - kHeapObjectTag));
4142 Address store_address(result, temp, LSL, 0); 4142 Address store_address(result, temp, LSL, 0);
4143 __ StoreIntoObjectNoBarrier(result, store_address, result_div); 4143 __ StoreIntoObjectNoBarrier(result, store_address, result_div);
4144 __ add(temp, temp, ShifterOperand(kWordSize)); 4144 __ add(temp, temp, ShifterOperand(kWordSize));
4145 __ StoreIntoObjectNoBarrier(result, store_address, result_mod); 4145 __ StoreIntoObjectNoBarrier(result, store_address, result_mod);
4146 return; 4146 return;
4147 } 4147 }
4148 if (kind() == MergedMathInstr::kSinCos) {
4149 UNIMPLEMENTED();
4150 }
4148 UNIMPLEMENTED(); 4151 UNIMPLEMENTED();
4149 } 4152 }
4150 4153
4151 4154
4152 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary() const { 4155 LocationSummary* PolymorphicInstanceCallInstr::MakeLocationSummary() const {
4153 return MakeCallSummary(); 4156 return MakeCallSummary();
4154 } 4157 }
4155 4158
4156 4159
4157 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 4160 void PolymorphicInstanceCallInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
4627 compiler->GenerateCall(token_pos(), 4630 compiler->GenerateCall(token_pos(),
4628 &label, 4631 &label,
4629 PcDescriptors::kOther, 4632 PcDescriptors::kOther,
4630 locs()); 4633 locs());
4631 __ Drop(2); // Discard type arguments and receiver. 4634 __ Drop(2); // Discard type arguments and receiver.
4632 } 4635 }
4633 4636
4634 } // namespace dart 4637 } // namespace dart
4635 4638
4636 #endif // defined TARGET_ARCH_ARM 4639 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698