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

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

Issue 75203003: Remove intrinsified version of fsin, fcos. The optimized code calls into runtime, which may use dif… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.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_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/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 1358
1359 __ Bind(&is_smi); 1359 __ Bind(&is_smi);
1360 __ SmiUntag(T0); 1360 __ SmiUntag(T0);
1361 __ mtc1(T0, F2); 1361 __ mtc1(T0, F2);
1362 __ b(&double_op); 1362 __ b(&double_op);
1363 __ delay_slot()->cvtdw(D1, F2); 1363 __ delay_slot()->cvtdw(D1, F2);
1364 __ Bind(&fall_through); 1364 __ Bind(&fall_through);
1365 } 1365 }
1366 1366
1367 1367
1368 void Intrinsifier::Math_sin(Assembler* assembler) {
1369 }
1370
1371
1372 void Intrinsifier::Math_cos(Assembler* assembler) {
1373 }
1374
1375
1376 // var state = ((_A * (_state[kSTATE_LO])) + _state[kSTATE_HI]) & _MASK_64; 1368 // var state = ((_A * (_state[kSTATE_LO])) + _state[kSTATE_HI]) & _MASK_64;
1377 // _state[kSTATE_LO] = state & _MASK_32; 1369 // _state[kSTATE_LO] = state & _MASK_32;
1378 // _state[kSTATE_HI] = state >> 32; 1370 // _state[kSTATE_HI] = state >> 32;
1379 void Intrinsifier::Random_nextState(Assembler* assembler) { 1371 void Intrinsifier::Random_nextState(Assembler* assembler) {
1380 const Library& math_lib = Library::Handle(Library::MathLibrary()); 1372 const Library& math_lib = Library::Handle(Library::MathLibrary());
1381 ASSERT(!math_lib.IsNull()); 1373 ASSERT(!math_lib.IsNull());
1382 const Class& random_class = Class::Handle( 1374 const Class& random_class = Class::Handle(
1383 math_lib.LookupClassAllowPrivate(Symbols::_Random())); 1375 math_lib.LookupClassAllowPrivate(Symbols::_Random()));
1384 ASSERT(!random_class.IsNull()); 1376 ASSERT(!random_class.IsNull());
1385 const Field& state_field = Field::ZoneHandle( 1377 const Field& state_field = Field::ZoneHandle(
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 } 1775 }
1784 1776
1785 1777
1786 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { 1778 void Intrinsifier::TwoByteString_equality(Assembler* assembler) {
1787 StringEquality(assembler, kTwoByteStringCid); 1779 StringEquality(assembler, kTwoByteStringCid);
1788 } 1780 }
1789 1781
1790 } // namespace dart 1782 } // namespace dart
1791 1783
1792 #endif // defined TARGET_ARCH_MIPS 1784 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_ia32.cc ('k') | runtime/vm/intrinsifier_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698