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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 11428137: ARM: Make use of d16-d31 when available. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 11 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/arm/code-stubs-arm.h ('k') | src/arm/constants-arm.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 3, 2060 3,
2061 1); 2061 1);
2062 } 2062 }
2063 2063
2064 2064
2065 void StoreBufferOverflowStub::Generate(MacroAssembler* masm) { 2065 void StoreBufferOverflowStub::Generate(MacroAssembler* masm) {
2066 // We don't allow a GC during a store buffer overflow so there is no need to 2066 // We don't allow a GC during a store buffer overflow so there is no need to
2067 // store the registers in any particular way, but we do have to store and 2067 // store the registers in any particular way, but we do have to store and
2068 // restore them. 2068 // restore them.
2069 __ stm(db_w, sp, kCallerSaved | lr.bit()); 2069 __ stm(db_w, sp, kCallerSaved | lr.bit());
2070
2071 const Register scratch = r1;
2072
2070 if (save_doubles_ == kSaveFPRegs) { 2073 if (save_doubles_ == kSaveFPRegs) {
2071 CpuFeatures::Scope scope(VFP2); 2074 CpuFeatures::Scope scope(VFP2);
2075 // Check CPU flags for number of registers, setting the Z condition flag.
2076 __ CheckFor32DRegs(scratch);
2077
2072 __ sub(sp, sp, Operand(kDoubleSize * DwVfpRegister::kNumRegisters)); 2078 __ sub(sp, sp, Operand(kDoubleSize * DwVfpRegister::kNumRegisters));
2073 for (int i = 0; i < DwVfpRegister::kNumRegisters; i++) { 2079 for (int i = 0; i < DwVfpRegister::kNumRegisters; i++) {
2074 DwVfpRegister reg = DwVfpRegister::from_code(i); 2080 DwVfpRegister reg = DwVfpRegister::from_code(i);
2075 __ vstr(reg, MemOperand(sp, i * kDoubleSize)); 2081 __ vstr(reg, MemOperand(sp, i * kDoubleSize), i < 16 ? al : ne);
2076 } 2082 }
2077 } 2083 }
2078 const int argument_count = 1; 2084 const int argument_count = 1;
2079 const int fp_argument_count = 0; 2085 const int fp_argument_count = 0;
2080 const Register scratch = r1;
2081 2086
2082 AllowExternalCallThatCantCauseGC scope(masm); 2087 AllowExternalCallThatCantCauseGC scope(masm);
2083 __ PrepareCallCFunction(argument_count, fp_argument_count, scratch); 2088 __ PrepareCallCFunction(argument_count, fp_argument_count, scratch);
2084 __ mov(r0, Operand(ExternalReference::isolate_address())); 2089 __ mov(r0, Operand(ExternalReference::isolate_address()));
2085 __ CallCFunction( 2090 __ CallCFunction(
2086 ExternalReference::store_buffer_overflow_function(masm->isolate()), 2091 ExternalReference::store_buffer_overflow_function(masm->isolate()),
2087 argument_count); 2092 argument_count);
2088 if (save_doubles_ == kSaveFPRegs) { 2093 if (save_doubles_ == kSaveFPRegs) {
2089 CpuFeatures::Scope scope(VFP2); 2094 CpuFeatures::Scope scope(VFP2);
2095
2096 // Check CPU flags for number of registers, setting the Z condition flag.
2097 __ CheckFor32DRegs(scratch);
2098
2090 for (int i = 0; i < DwVfpRegister::kNumRegisters; i++) { 2099 for (int i = 0; i < DwVfpRegister::kNumRegisters; i++) {
2091 DwVfpRegister reg = DwVfpRegister::from_code(i); 2100 DwVfpRegister reg = DwVfpRegister::from_code(i);
2092 __ vldr(reg, MemOperand(sp, i * kDoubleSize)); 2101 __ vldr(reg, MemOperand(sp, i * kDoubleSize), i < 16 ? al : ne);
2093 } 2102 }
2094 __ add(sp, sp, Operand(kDoubleSize * DwVfpRegister::kNumRegisters)); 2103 __ add(sp, sp, Operand(kDoubleSize * DwVfpRegister::kNumRegisters));
2095 } 2104 }
2096 __ ldm(ia_w, sp, kCallerSaved | pc.bit()); // Also pop pc to get Ret(0). 2105 __ ldm(ia_w, sp, kCallerSaved | pc.bit()); // Also pop pc to get Ret(0).
2097 } 2106 }
2098 2107
2099 2108
2100 void UnaryOpStub::PrintName(StringStream* stream) { 2109 void UnaryOpStub::PrintName(StringStream* stream) {
2101 const char* op_name = Token::Name(op_); 2110 const char* op_name = Token::Name(op_);
2102 const char* overwrite_name = NULL; // Make g++ happy. 2111 const char* overwrite_name = NULL; // Make g++ happy.
(...skipping 5737 matching lines...) Expand 10 before | Expand all | Expand 10 after
7840 7849
7841 __ Pop(lr, r5, r1); 7850 __ Pop(lr, r5, r1);
7842 __ Ret(); 7851 __ Ret();
7843 } 7852 }
7844 7853
7845 #undef __ 7854 #undef __
7846 7855
7847 } } // namespace v8::internal 7856 } } // namespace v8::internal
7848 7857
7849 #endif // V8_TARGET_ARCH_ARM 7858 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.h ('k') | src/arm/constants-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698