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

Side by Side Diff: src/mips/full-codegen-mips.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
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 2969 matching lines...) Expand 10 before | Expand all | Expand 10 after
2980 context()->Plug(v0); 2980 context()->Plug(v0);
2981 } 2981 }
2982 2982
2983 2983
2984 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) { 2984 void FullCodeGenerator::EmitMathPow(CallRuntime* expr) {
2985 // Load the arguments on the stack and call the runtime function. 2985 // Load the arguments on the stack and call the runtime function.
2986 ZoneList<Expression*>* args = expr->arguments(); 2986 ZoneList<Expression*>* args = expr->arguments();
2987 ASSERT(args->length() == 2); 2987 ASSERT(args->length() == 2);
2988 VisitForStackValue(args->at(0)); 2988 VisitForStackValue(args->at(0));
2989 VisitForStackValue(args->at(1)); 2989 VisitForStackValue(args->at(1));
2990 MathPowStub stub; 2990 MathPowStub stub(MathPowStub::ON_STACK);
2991 __ CallStub(&stub); 2991 __ CallStub(&stub);
2992 context()->Plug(v0); 2992 context()->Plug(v0);
2993 } 2993 }
2994 2994
2995 2995
2996 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) { 2996 void FullCodeGenerator::EmitSetValueOf(CallRuntime* expr) {
2997 ZoneList<Expression*>* args = expr->arguments(); 2997 ZoneList<Expression*>* args = expr->arguments();
2998 ASSERT(args->length() == 2); 2998 ASSERT(args->length() == 2);
2999 2999
3000 VisitForStackValue(args->at(0)); // Load the object. 3000 VisitForStackValue(args->at(0)); // Load the object.
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after
4451 *context_length = 0; 4451 *context_length = 0;
4452 return previous_; 4452 return previous_;
4453 } 4453 }
4454 4454
4455 4455
4456 #undef __ 4456 #undef __
4457 4457
4458 } } // namespace v8::internal 4458 } } // namespace v8::internal
4459 4459
4460 #endif // V8_TARGET_ARCH_MIPS 4460 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698