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

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

Issue 334743011: Version 3.26.31.5 (revert 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/ia32/lithium-ia32.cc ('k') | src/mips/lithium-codegen-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 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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "bootstrapper.h" 9 #include "bootstrapper.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 50
51 void MacroAssembler::Store(Register src, const Operand& dst, Representation r) { 51 void MacroAssembler::Store(Register src, const Operand& dst, Representation r) {
52 ASSERT(!r.IsDouble()); 52 ASSERT(!r.IsDouble());
53 if (r.IsInteger8() || r.IsUInteger8()) { 53 if (r.IsInteger8() || r.IsUInteger8()) {
54 mov_b(dst, src); 54 mov_b(dst, src);
55 } else if (r.IsInteger16() || r.IsUInteger16()) { 55 } else if (r.IsInteger16() || r.IsUInteger16()) {
56 mov_w(dst, src); 56 mov_w(dst, src);
57 } else { 57 } else {
58 if (r.IsHeapObject()) {
59 AssertNotSmi(src);
60 } else if (r.IsSmi()) {
61 AssertSmi(src);
62 }
63 mov(dst, src); 58 mov(dst, src);
64 } 59 }
65 } 60 }
66 61
67 62
68 void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index) { 63 void MacroAssembler::LoadRoot(Register destination, Heap::RootListIndex index) {
69 if (isolate()->heap()->RootCanBeTreatedAsConstant(index)) { 64 if (isolate()->heap()->RootCanBeTreatedAsConstant(index)) {
70 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]); 65 Handle<Object> value(&isolate()->heap()->roots_array_start()[index]);
71 mov(destination, value); 66 mov(destination, value);
72 return; 67 return;
(...skipping 3555 matching lines...) Expand 10 before | Expand all | Expand 10 after
3628 if (ms.shift() > 0) sar(edx, ms.shift()); 3623 if (ms.shift() > 0) sar(edx, ms.shift());
3629 mov(eax, dividend); 3624 mov(eax, dividend);
3630 shr(eax, 31); 3625 shr(eax, 31);
3631 add(edx, eax); 3626 add(edx, eax);
3632 } 3627 }
3633 3628
3634 3629
3635 } } // namespace v8::internal 3630 } } // namespace v8::internal
3636 3631
3637 #endif // V8_TARGET_ARCH_IA32 3632 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698