Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index a7ef0cbd056c5b99f7ce490ad1b0d4f2df4f5295..d4aa64eb4b7834495fe5277672ff89da704b8307 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -10785,6 +10785,15 @@ void HOptimizedGraphBuilder::GenerateMathSqrt(CallRuntime* call) { |
} |
+void HOptimizedGraphBuilder::GenerateMathExp(CallRuntime* call) { |
+ ASSERT(call->arguments()->length() == 1); |
+ CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
+ HValue* value = Pop(); |
+ HInstruction* result = NewUncasted<HUnaryMathOperation>(value, kMathExp); |
+ return ast_context()->ReturnInstruction(result, call->id()); |
+} |
+ |
+ |
void HOptimizedGraphBuilder::GenerateGetCachedArrayIndex(CallRuntime* call) { |
ASSERT(call->arguments()->length() == 1); |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |