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

Side by Side Diff: src/arm/stub-cache-arm.cc

Issue 6973063: Extend GCMole with poor man's data flow analysis to catch dead raw pointer vars. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3510 matching lines...) Expand 10 before | Expand all | Expand 10 after
3521 3521
3522 if (CpuFeatures::IsSupported(VFP3)) { 3522 if (CpuFeatures::IsSupported(VFP3)) {
3523 CpuFeatures::Scope scope(VFP3); 3523 CpuFeatures::Scope scope(VFP3);
3524 __ vmov(s0, value); 3524 __ vmov(s0, value);
3525 __ vcvt_f64_s32(d0, s0); 3525 __ vcvt_f64_s32(d0, s0);
3526 __ sub(r3, r0, Operand(kHeapObjectTag)); 3526 __ sub(r3, r0, Operand(kHeapObjectTag));
3527 __ vstr(d0, r3, HeapNumber::kValueOffset); 3527 __ vstr(d0, r3, HeapNumber::kValueOffset);
3528 __ Ret(); 3528 __ Ret();
3529 } else { 3529 } else {
3530 WriteInt32ToHeapNumberStub stub(value, r0, r3); 3530 WriteInt32ToHeapNumberStub stub(value, r0, r3);
3531 __ TailCallStub(&stub); 3531 MaybeObject* stub_code = masm()->TryTailCallStub(&stub);
3532 if (stub_code->IsFailure()) return stub_code;
3532 } 3533 }
3533 } else if (array_type == kExternalUnsignedIntArray) { 3534 } else if (array_type == kExternalUnsignedIntArray) {
3534 // The test is different for unsigned int values. Since we need 3535 // The test is different for unsigned int values. Since we need
3535 // the value to be in the range of a positive smi, we can't 3536 // the value to be in the range of a positive smi, we can't
3536 // handle either of the top two bits being set in the value. 3537 // handle either of the top two bits being set in the value.
3537 if (CpuFeatures::IsSupported(VFP3)) { 3538 if (CpuFeatures::IsSupported(VFP3)) {
3538 CpuFeatures::Scope scope(VFP3); 3539 CpuFeatures::Scope scope(VFP3);
3539 Label box_int, done; 3540 Label box_int, done;
3540 __ tst(value, Operand(0xC0000000)); 3541 __ tst(value, Operand(0xC0000000));
3541 __ b(ne, &box_int); 3542 __ b(ne, &box_int);
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
4053 4054
4054 return GetCode(flags); 4055 return GetCode(flags);
4055 } 4056 }
4056 4057
4057 4058
4058 #undef __ 4059 #undef __
4059 4060
4060 } } // namespace v8::internal 4061 } } // namespace v8::internal
4061 4062
4062 #endif // V8_TARGET_ARCH_ARM 4063 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/bootstrapper.cc » ('j') | src/bootstrapper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698