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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 329233002: [Arm]: Make Assembler::movw only emit a movw instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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/arm/assembler-arm.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/stub-cache.h" 10 #include "src/stub-cache.h"
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 if (condition != al) { 834 if (condition != al) {
835 __ mov(scratch, Operand::Zero(), LeaveCC, NegateCondition(condition)); 835 __ mov(scratch, Operand::Zero(), LeaveCC, NegateCondition(condition));
836 __ mov(scratch, Operand(1), LeaveCC, condition); 836 __ mov(scratch, Operand(1), LeaveCC, condition);
837 __ push(scratch); 837 __ push(scratch);
838 } 838 }
839 839
840 __ push(r1); 840 __ push(r1);
841 __ mov(scratch, Operand(count)); 841 __ mov(scratch, Operand(count));
842 __ ldr(r1, MemOperand(scratch)); 842 __ ldr(r1, MemOperand(scratch));
843 __ sub(r1, r1, Operand(1), SetCC); 843 __ sub(r1, r1, Operand(1), SetCC);
844 __ movw(r1, FLAG_deopt_every_n_times, eq); 844 __ mov(r1, Operand(FLAG_deopt_every_n_times), LeaveCC, eq);
845 __ str(r1, MemOperand(scratch)); 845 __ str(r1, MemOperand(scratch));
846 __ pop(r1); 846 __ pop(r1);
847 847
848 if (condition != al) { 848 if (condition != al) {
849 // Clean up the stack before the deoptimizer call 849 // Clean up the stack before the deoptimizer call
850 __ pop(scratch); 850 __ pop(scratch);
851 } 851 }
852 852
853 __ Call(entry, RelocInfo::RUNTIME_ENTRY, eq); 853 __ Call(entry, RelocInfo::RUNTIME_ENTRY, eq);
854 854
(...skipping 4959 matching lines...) Expand 10 before | Expand all | Expand 10 after
5814 __ ldr(result, FieldMemOperand(scratch, 5814 __ ldr(result, FieldMemOperand(scratch,
5815 FixedArray::kHeaderSize - kPointerSize)); 5815 FixedArray::kHeaderSize - kPointerSize));
5816 __ bind(deferred->exit()); 5816 __ bind(deferred->exit());
5817 __ bind(&done); 5817 __ bind(&done);
5818 } 5818 }
5819 5819
5820 5820
5821 #undef __ 5821 #undef __
5822 5822
5823 } } // namespace v8::internal 5823 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698