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

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

Issue 299373005: Avoid HeapObject check in HStoreNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix condition on arm64. 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/lithium-x64.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 "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 917
918 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) { 918 void MacroAssembler::Store(const Operand& dst, Register src, Representation r) {
919 ASSERT(!r.IsDouble()); 919 ASSERT(!r.IsDouble());
920 if (r.IsInteger8() || r.IsUInteger8()) { 920 if (r.IsInteger8() || r.IsUInteger8()) {
921 movb(dst, src); 921 movb(dst, src);
922 } else if (r.IsInteger16() || r.IsUInteger16()) { 922 } else if (r.IsInteger16() || r.IsUInteger16()) {
923 movw(dst, src); 923 movw(dst, src);
924 } else if (r.IsInteger32()) { 924 } else if (r.IsInteger32()) {
925 movl(dst, src); 925 movl(dst, src);
926 } else { 926 } else {
927 if (r.IsHeapObject()) {
928 AssertNotSmi(src);
929 } else if (r.IsSmi()) {
930 AssertSmi(src);
931 }
927 movp(dst, src); 932 movp(dst, src);
928 } 933 }
929 } 934 }
930 935
931 936
932 void MacroAssembler::Set(Register dst, int64_t x) { 937 void MacroAssembler::Set(Register dst, int64_t x) {
933 if (x == 0) { 938 if (x == 0) {
934 xorl(dst, dst); 939 xorl(dst, dst);
935 } else if (is_uint32(x)) { 940 } else if (is_uint32(x)) {
936 movl(dst, Immediate(static_cast<uint32_t>(x))); 941 movl(dst, Immediate(static_cast<uint32_t>(x)));
(...skipping 4276 matching lines...) Expand 10 before | Expand all | Expand 10 after
5213 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift())); 5218 if (ms.shift() > 0) sarl(rdx, Immediate(ms.shift()));
5214 movl(rax, dividend); 5219 movl(rax, dividend);
5215 shrl(rax, Immediate(31)); 5220 shrl(rax, Immediate(31));
5216 addl(rdx, rax); 5221 addl(rdx, rax);
5217 } 5222 }
5218 5223
5219 5224
5220 } } // namespace v8::internal 5225 } } // namespace v8::internal
5221 5226
5222 #endif // V8_TARGET_ARCH_X64 5227 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698