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

Side by Side Diff: src/arm/assembler-arm-inl.h

Issue 74193004: ARM: use vstm/vldm when possible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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.h ('k') | src/arm/macro-assembler-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 int Register::NumAllocatableRegisters() { 50 int Register::NumAllocatableRegisters() {
51 return kMaxNumAllocatableRegisters; 51 return kMaxNumAllocatableRegisters;
52 } 52 }
53 53
54 54
55 int DwVfpRegister::NumRegisters() { 55 int DwVfpRegister::NumRegisters() {
56 return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16; 56 return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16;
57 } 57 }
58 58
59 59
60 int DwVfpRegister::NumReservedRegisters() {
61 return kNumReservedRegisters;
62 }
63
64
60 int DwVfpRegister::NumAllocatableRegisters() { 65 int DwVfpRegister::NumAllocatableRegisters() {
61 return NumRegisters() - kNumReservedRegisters; 66 return NumRegisters() - kNumReservedRegisters;
62 } 67 }
63 68
64 69
65 int DwVfpRegister::ToAllocationIndex(DwVfpRegister reg) { 70 int DwVfpRegister::ToAllocationIndex(DwVfpRegister reg) {
66 ASSERT(!reg.is(kDoubleRegZero)); 71 ASSERT(!reg.is(kDoubleRegZero));
67 ASSERT(!reg.is(kScratchDoubleReg)); 72 ASSERT(!reg.is(kScratchDoubleReg));
68 if (reg.code() > kDoubleRegZero.code()) { 73 if (reg.code() > kDoubleRegZero.code()) {
69 return reg.code() - kNumReservedRegisters; 74 return reg.code() - kNumReservedRegisters;
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 // ldr ip, [pc, #...] 496 // ldr ip, [pc, #...]
492 // since the instruction accessing this address in the constant pool remains 497 // since the instruction accessing this address in the constant pool remains
493 // unchanged. 498 // unchanged.
494 } 499 }
495 } 500 }
496 501
497 502
498 } } // namespace v8::internal 503 } } // namespace v8::internal
499 504
500 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ 505 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698