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

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

Issue 67163: Avoid a call to the runtime system when doing binary fp ops on ARM... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 8 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/macro-assembler-arm.h ('k') | src/runtime.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 162
163 void MacroAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode, 163 void MacroAssembler::Call(Handle<Code> code, RelocInfo::Mode rmode,
164 Condition cond) { 164 Condition cond) {
165 ASSERT(RelocInfo::IsCodeTarget(rmode)); 165 ASSERT(RelocInfo::IsCodeTarget(rmode));
166 // 'code' is always generated ARM code, never THUMB code 166 // 'code' is always generated ARM code, never THUMB code
167 Call(reinterpret_cast<intptr_t>(code.location()), rmode, cond); 167 Call(reinterpret_cast<intptr_t>(code.location()), rmode, cond);
168 } 168 }
169 169
170 170
171 void MacroAssembler::Ret() { 171 void MacroAssembler::Ret(Condition cond) {
172 #if USE_BX 172 #if USE_BX
173 bx(lr); 173 bx(lr, cond);
174 #else 174 #else
175 mov(pc, Operand(lr)); 175 mov(pc, Operand(lr), LeaveCC, cond);
176 #endif 176 #endif
177 } 177 }
178 178
179 179
180 void MacroAssembler::SmiJumpTable(Register index, Vector<Label*> targets) { 180 void MacroAssembler::SmiJumpTable(Register index, Vector<Label*> targets) {
181 // Empty the const pool. 181 // Empty the const pool.
182 CheckConstPool(true, true); 182 CheckConstPool(true, true);
183 add(pc, pc, Operand(index, 183 add(pc, pc, Operand(index,
184 LSL, 184 LSL,
185 assembler::arm::Instr::kInstrSizeLog2 - kSmiTagSize)); 185 assembler::arm::Instr::kInstrSizeLog2 - kSmiTagSize));
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
927 #endif 927 #endif
928 mov(r0, Operand(p0)); 928 mov(r0, Operand(p0));
929 push(r0); 929 push(r0);
930 mov(r0, Operand(Smi::FromInt(p1 - p0))); 930 mov(r0, Operand(Smi::FromInt(p1 - p0)));
931 push(r0); 931 push(r0);
932 CallRuntime(Runtime::kAbort, 2); 932 CallRuntime(Runtime::kAbort, 2);
933 // will not return here 933 // will not return here
934 } 934 }
935 935
936 } } // namespace v8::internal 936 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macro-assembler-arm.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698