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

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

Issue 8749002: Implement Math.pow using FPU instructions and inline it in crankshaft (ia32). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also do NaN/infinity check on base for TAGGED case. Created 9 years 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 | « no previous file | src/assembler.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after
2931 context()->Plug(r0); 2931 context()->Plug(r0);
2932 } 2932 }
2933 2933
2934 2934
2935 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { 2935 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) {
2936 // Load the arguments on the stack and call the runtime function. 2936 // Load the arguments on the stack and call the runtime function.
2937 ZoneList<Expression*>* args = expr->arguments(); 2937 ZoneList<Expression*>* args = expr->arguments();
2938 ASSERT(args->length() == 2); 2938 ASSERT(args->length() == 2);
2939 VisitForStackValue(args->at(0)); 2939 VisitForStackValue(args->at(0));
2940 VisitForStackValue(args->at(1)); 2940 VisitForStackValue(args->at(1));
2941 MathPowStub stub; 2941 MathPowStub stub(MathPowStub::ON_STACK);
2942 __ CallStub(&stub); 2942 __ CallStub(&stub);
2943 context()->Plug(r0); 2943 context()->Plug(r0);
2944 } 2944 }
2945 2945
2946 2946
2947 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { 2947 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) {
2948 ZoneList<Expression*>* args = expr->arguments(); 2948 ZoneList<Expression*>* args = expr->arguments();
2949 ASSERT(args->length() == 2); 2949 ASSERT(args->length() == 2);
2950 VisitForStackValue(args->at(0)); // Load the object. 2950 VisitForStackValue(args->at(0)); // Load the object.
2951 VisitForAccumulatorValue(args->at(1)); // Load the value. 2951 VisitForAccumulatorValue(args->at(1)); // Load the value.
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
4386 *context_length = 0; 4386 *context_length = 0;
4387 return previous_; 4387 return previous_;
4388 } 4388 }
4389 4389
4390 4390
4391 #undef __ 4391 #undef __
4392 4392
4393 } } // namespace v8::internal 4393 } } // namespace v8::internal
4394 4394
4395 #endif // V8_TARGET_ARCH_ARM 4395 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | src/ia32/code-stubs-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698