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

Side by Side Diff: src/arm/ic-arm.cc

Issue 3872003: Fix the --noinline-new flag on ARM so that it forces us into C++ code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 2 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
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 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 // it to a HeapNumber. 1403 // it to a HeapNumber.
1404 Label box_int; 1404 Label box_int;
1405 __ cmp(value, Operand(0xC0000000)); 1405 __ cmp(value, Operand(0xC0000000));
1406 __ b(mi, &box_int); 1406 __ b(mi, &box_int);
1407 // Tag integer as smi and return it. 1407 // Tag integer as smi and return it.
1408 __ mov(r0, Operand(value, LSL, kSmiTagSize)); 1408 __ mov(r0, Operand(value, LSL, kSmiTagSize));
1409 __ Ret(); 1409 __ Ret();
1410 1410
1411 __ bind(&box_int); 1411 __ bind(&box_int);
1412 // Allocate a HeapNumber for the result and perform int-to-double 1412 // Allocate a HeapNumber for the result and perform int-to-double
1413 // conversion. Use r0 for result as key is not needed any more. 1413 // conversion. Use r0 for result as key is not needed any more if
1414 // the allocation succeeds.
1414 __ LoadRoot(r6, Heap::kHeapNumberMapRootIndex); 1415 __ LoadRoot(r6, Heap::kHeapNumberMapRootIndex);
1415 __ AllocateHeapNumber(r0, r3, r4, r6, &slow); 1416 __ AllocateHeapNumber(r5, r3, r4, r6, &slow);
1417 __ mov(r0, r5);
1416 1418
1417 if (CpuFeatures::IsSupported(VFP3)) { 1419 if (CpuFeatures::IsSupported(VFP3)) {
1418 CpuFeatures::Scope scope(VFP3); 1420 CpuFeatures::Scope scope(VFP3);
1419 __ vmov(s0, value); 1421 __ vmov(s0, value);
1420 __ vcvt_f64_s32(d0, s0); 1422 __ vcvt_f64_s32(d0, s0);
1421 __ sub(r3, r0, Operand(kHeapObjectTag)); 1423 __ sub(r3, r0, Operand(kHeapObjectTag));
1422 __ vstr(d0, r3, HeapNumber::kValueOffset); 1424 __ vstr(d0, r3, HeapNumber::kValueOffset);
1423 __ Ret(); 1425 __ Ret();
1424 } else { 1426 } else {
1425 WriteInt32ToHeapNumberStub stub(value, r0, r3); 1427 WriteInt32ToHeapNumberStub stub(value, r0, r3);
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 GenerateMiss(masm); 2254 GenerateMiss(masm);
2253 } 2255 }
2254 2256
2255 2257
2256 #undef __ 2258 #undef __
2257 2259
2258 2260
2259 } } // namespace v8::internal 2261 } } // namespace v8::internal
2260 2262
2261 #endif // V8_TARGET_ARCH_ARM 2263 #endif // V8_TARGET_ARCH_ARM
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698