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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 6591073: ARM: Implement untagged input for TranscendentalCacheStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix lint. Created 9 years, 9 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 3020 matching lines...) Expand 10 before | Expand all | Expand 10 after
3031 VisitForStackValue(args->at(1)); 3031 VisitForStackValue(args->at(1));
3032 3032
3033 StringCompareStub stub; 3033 StringCompareStub stub;
3034 __ CallStub(&stub); 3034 __ CallStub(&stub);
3035 context()->Plug(r0); 3035 context()->Plug(r0);
3036 } 3036 }
3037 3037
3038 3038
3039 void FullCodeGenerator::EmitMathSin(ZoneList<Expression*>* args) { 3039 void FullCodeGenerator::EmitMathSin(ZoneList<Expression*>* args) {
3040 // Load the argument on the stack and call the stub. 3040 // Load the argument on the stack and call the stub.
3041 TranscendentalCacheStub stub(TranscendentalCache::SIN); 3041 TranscendentalCacheStub stub(TranscendentalCache::SIN,
3042 TranscendentalCacheStub::TAGGED);
3042 ASSERT(args->length() == 1); 3043 ASSERT(args->length() == 1);
3043 VisitForStackValue(args->at(0)); 3044 VisitForStackValue(args->at(0));
3044 __ CallStub(&stub); 3045 __ CallStub(&stub);
3045 context()->Plug(r0); 3046 context()->Plug(r0);
3046 } 3047 }
3047 3048
3048 3049
3049 void FullCodeGenerator::EmitMathCos(ZoneList<Expression*>* args) { 3050 void FullCodeGenerator::EmitMathCos(ZoneList<Expression*>* args) {
3050 // Load the argument on the stack and call the stub. 3051 // Load the argument on the stack and call the stub.
3051 TranscendentalCacheStub stub(TranscendentalCache::COS); 3052 TranscendentalCacheStub stub(TranscendentalCache::COS,
3053 TranscendentalCacheStub::TAGGED);
3052 ASSERT(args->length() == 1); 3054 ASSERT(args->length() == 1);
3053 VisitForStackValue(args->at(0)); 3055 VisitForStackValue(args->at(0));
3054 __ CallStub(&stub); 3056 __ CallStub(&stub);
3055 context()->Plug(r0); 3057 context()->Plug(r0);
3056 } 3058 }
3057 3059
3058 3060
3059 void FullCodeGenerator::EmitMathLog(ZoneList<Expression*>* args) { 3061 void FullCodeGenerator::EmitMathLog(ZoneList<Expression*>* args) {
3060 // Load the argument on the stack and call the stub. 3062 // Load the argument on the stack and call the stub.
3061 TranscendentalCacheStub stub(TranscendentalCache::LOG); 3063 TranscendentalCacheStub stub(TranscendentalCache::LOG,
3064 TranscendentalCacheStub::TAGGED);
3062 ASSERT(args->length() == 1); 3065 ASSERT(args->length() == 1);
3063 VisitForStackValue(args->at(0)); 3066 VisitForStackValue(args->at(0));
3064 __ CallStub(&stub); 3067 __ CallStub(&stub);
3065 context()->Plug(r0); 3068 context()->Plug(r0);
3066 } 3069 }
3067 3070
3068 3071
3069 void FullCodeGenerator::EmitMathSqrt(ZoneList<Expression*>* args) { 3072 void FullCodeGenerator::EmitMathSqrt(ZoneList<Expression*>* args) {
3070 // Load the argument on the stack and call the runtime function. 3073 // Load the argument on the stack and call the runtime function.
3071 ASSERT(args->length() == 1); 3074 ASSERT(args->length() == 1);
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
4221 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4224 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4222 __ add(pc, r1, Operand(masm_->CodeObject())); 4225 __ add(pc, r1, Operand(masm_->CodeObject()));
4223 } 4226 }
4224 4227
4225 4228
4226 #undef __ 4229 #undef __
4227 4230
4228 } } // namespace v8::internal 4231 } } // namespace v8::internal
4229 4232
4230 #endif // V8_TARGET_ARCH_ARM 4233 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« src/arm/code-stubs-arm.cc ('K') | « src/arm/codegen-arm.cc ('k') | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698