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