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

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

Issue 15934025: Enables more VM tests for SIMMIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 months 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_mips.cc ('k') | runtime/vm/intrinsifier_mips.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/intrinsifier.h" 8 #include "vm/intrinsifier.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1523 // hash_ = hash_ & ((static_cast<intptr_t>(1) << bits) - 1); 1523 // hash_ = hash_ & ((static_cast<intptr_t>(1) << bits) - 1);
1524 __ LoadImmediate(R2, (static_cast<intptr_t>(1) << String::kHashBits) - 1); 1524 __ LoadImmediate(R2, (static_cast<intptr_t>(1) << String::kHashBits) - 1);
1525 __ and_(R0, R0, ShifterOperand(R2)); 1525 __ and_(R0, R0, ShifterOperand(R2));
1526 __ cmp(R0, ShifterOperand(0)); 1526 __ cmp(R0, ShifterOperand(0));
1527 // return hash_ == 0 ? 1 : hash_; 1527 // return hash_ == 0 ? 1 : hash_;
1528 __ Bind(&done); 1528 __ Bind(&done);
1529 __ mov(R0, ShifterOperand(1), EQ); 1529 __ mov(R0, ShifterOperand(1), EQ);
1530 __ SmiTag(R0); 1530 __ SmiTag(R0);
1531 __ str(R0, FieldAddress(R1, String::hash_offset())); 1531 __ str(R0, FieldAddress(R1, String::hash_offset()));
1532 __ Ret(); 1532 __ Ret();
1533 return false; 1533 return true;
1534 } 1534 }
1535 1535
1536 1536
1537 // Allocates one-byte string of length 'end - start'. The content is not 1537 // Allocates one-byte string of length 'end - start'. The content is not
1538 // initialized. 1538 // initialized.
1539 // 'length-reg' (R2) contains tagged length. 1539 // 'length-reg' (R2) contains tagged length.
1540 // Returns new string as tagged pointer in R0. 1540 // Returns new string as tagged pointer in R0.
1541 static void TryAllocateOnebyteString(Assembler* assembler, 1541 static void TryAllocateOnebyteString(Assembler* assembler,
1542 Label* ok, 1542 Label* ok,
1543 Label* failure) { 1543 Label* failure) {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 __ Bind(&ok); 1687 __ Bind(&ok);
1688 __ Ret(); 1688 __ Ret();
1689 1689
1690 __ Bind(&fall_through); 1690 __ Bind(&fall_through);
1691 return false; 1691 return false;
1692 } 1692 }
1693 1693
1694 } // namespace dart 1694 } // namespace dart
1695 1695
1696 #endif // defined TARGET_ARCH_ARM 1696 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/intrinsifier_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698