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

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

Issue 297143007: MIPS: Avoid HeapObject check in HStoreNamedField. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 7 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
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | no next file » | 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 5652 matching lines...) Expand 10 before | Expand all | Expand 10 after
5721 } 5726 }
5722 if (ms.shift() > 0) sra(result, result, ms.shift()); 5727 if (ms.shift() > 0) sra(result, result, ms.shift());
5723 srl(at, dividend, 31); 5728 srl(at, dividend, 31);
5724 Addu(result, result, Operand(at)); 5729 Addu(result, result, Operand(at));
5725 } 5730 }
5726 5731
5727 5732
5728 } } // namespace v8::internal 5733 } } // namespace v8::internal
5729 5734
5730 #endif // V8_TARGET_ARCH_MIPS 5735 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698