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

Side by Side Diff: src/mips/macro-assembler-mips.cc

Issue 332333002: Version 3.26.31.6 (merged r21509, r21858, r21525) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 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 | « src/mips/lithium-mips.cc ('k') | src/version.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #include "v8.h" 7 #include "v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 void MacroAssembler::Store(Register src, 50 void MacroAssembler::Store(Register src,
51 const MemOperand& dst, 51 const MemOperand& dst,
52 Representation r) { 52 Representation r) {
53 ASSERT(!r.IsDouble()); 53 ASSERT(!r.IsDouble());
54 if (r.IsInteger8() || r.IsUInteger8()) { 54 if (r.IsInteger8() || r.IsUInteger8()) {
55 sb(src, dst); 55 sb(src, dst);
56 } else if (r.IsInteger16() || r.IsUInteger16()) { 56 } else if (r.IsInteger16() || r.IsUInteger16()) {
57 sh(src, dst); 57 sh(src, dst);
58 } else { 58 } else {
59 if (r.IsHeapObject()) {
60 AssertNotSmi(src);
61 } else if (r.IsSmi()) {
62 AssertSmi(src);
63 }
59 sw(src, dst); 64 sw(src, dst);
60 } 65 }
61 } 66 }
62 67
63 68
64 void MacroAssembler::LoadRoot(Register destination, 69 void MacroAssembler::LoadRoot(Register destination,
65 Heap::RootListIndex index) { 70 Heap::RootListIndex index) {
66 lw(destination, MemOperand(s6, index << kPointerSizeLog2)); 71 lw(destination, MemOperand(s6, index << kPointerSizeLog2));
67 } 72 }
68 73
(...skipping 5677 matching lines...) Expand 10 before | Expand all | Expand 10 after
5746 } 5751 }
5747 if (ms.shift() > 0) sra(result, result, ms.shift()); 5752 if (ms.shift() > 0) sra(result, result, ms.shift());
5748 srl(at, dividend, 31); 5753 srl(at, dividend, 31);
5749 Addu(result, result, Operand(at)); 5754 Addu(result, result, Operand(at));
5750 } 5755 }
5751 5756
5752 5757
5753 } } // namespace v8::internal 5758 } } // namespace v8::internal
5754 5759
5755 #endif // V8_TARGET_ARCH_MIPS 5760 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698