Index: src/x64/codegen-x64.cc |
=================================================================== |
--- src/x64/codegen-x64.cc (revision 3937) |
+++ src/x64/codegen-x64.cc (working copy) |
@@ -3891,6 +3891,16 @@ |
} |
+// Generates the Math.pow method - currently just calls runtime. |
+void CodeGenerator::GeneratePow(ZoneList<Expression*>* args) { |
+ ASSERT(args->length() == 2); |
+ Load(args->at(0)); |
+ Load(args->at(1)); |
+ Result res = frame_->CallRuntime(Runtime::kMath_pow, 2); |
+ frame_->Push(&res); |
+} |
+ |
+ |
void CodeGenerator::GenerateIsSmi(ZoneList<Expression*>* args) { |
ASSERT(args->length() == 1); |
Load(args->at(0)); |