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

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

Issue 464016: Fix for bug 512 from Subrato De, CodeAurora. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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/disasm-arm.cc ('k') | src/arm/simulator-arm.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 } 987 }
988 LoadRoot(r0, Heap::kUndefinedValueRootIndex); 988 LoadRoot(r0, Heap::kUndefinedValueRootIndex);
989 } 989 }
990 990
991 991
992 void MacroAssembler::IntegerToDoubleConversionWithVFP3(Register inReg, 992 void MacroAssembler::IntegerToDoubleConversionWithVFP3(Register inReg,
993 Register outHighReg, 993 Register outHighReg,
994 Register outLowReg) { 994 Register outLowReg) {
995 // ARMv7 VFP3 instructions to implement integer to double conversion. 995 // ARMv7 VFP3 instructions to implement integer to double conversion.
996 mov(r7, Operand(inReg, ASR, kSmiTagSize)); 996 mov(r7, Operand(inReg, ASR, kSmiTagSize));
997 fmsr(s15, r7); 997 vmov(s15, r7);
998 fsitod(d7, s15); 998 vcvt(d7, s15);
999 fmrrd(outLowReg, outHighReg, d7); 999 vmov(outLowReg, outHighReg, d7);
1000 } 1000 }
1001 1001
1002 1002
1003 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) { 1003 void MacroAssembler::CallRuntime(Runtime::Function* f, int num_arguments) {
1004 // All parameters are on the stack. r0 has the return value after call. 1004 // All parameters are on the stack. r0 has the return value after call.
1005 1005
1006 // If the expected number of arguments of the runtime function is 1006 // If the expected number of arguments of the runtime function is
1007 // constant, we check that the actual number of arguments match the 1007 // constant, we check that the actual number of arguments match the
1008 // expectation. 1008 // expectation.
1009 if (f->nargs >= 0 && f->nargs != num_arguments) { 1009 if (f->nargs >= 0 && f->nargs != num_arguments) {
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 } 1226 }
1227 1227
1228 1228
1229 void CodePatcher::Emit(Address addr) { 1229 void CodePatcher::Emit(Address addr) {
1230 masm()->emit(reinterpret_cast<Instr>(addr)); 1230 masm()->emit(reinterpret_cast<Instr>(addr));
1231 } 1231 }
1232 #endif // ENABLE_DEBUGGER_SUPPORT 1232 #endif // ENABLE_DEBUGGER_SUPPORT
1233 1233
1234 1234
1235 } } // namespace v8::internal 1235 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/disasm-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698