Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index cbd53eeaee778c281e6ae565971a4987d41e13ff..58393cf66382ec7e4bbb5627b5866886f75e454d 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -8425,7 +8425,7 @@ void HGraphBuilder::BuildArrayBufferViewInitialization( |
} |
-void HOptimizedGraphBuilder::VisitDataViewInitialize( |
+void HOptimizedGraphBuilder::GenerateDataViewInitialize( |
CallRuntime* expr) { |
ZoneList<Expression*>* arguments = expr->arguments(); |
@@ -8448,7 +8448,7 @@ void HOptimizedGraphBuilder::VisitDataViewInitialize( |
} |
-void HOptimizedGraphBuilder::VisitTypedArrayInitialize( |
+void HOptimizedGraphBuilder::GenerateTypedArrayInitialize( |
CallRuntime* expr) { |
ZoneList<Expression*>* arguments = expr->arguments(); |
@@ -8567,6 +8567,13 @@ void HOptimizedGraphBuilder::VisitTypedArrayInitialize( |
} |
+void HOptimizedGraphBuilder::GenerateMaxSmi(CallRuntime* expr) { |
+ ASSERT(expr->arguments()->length() == 0); |
+ HConstant* max_smi = New<HConstant>(static_cast<int32_t>(Smi::kMaxValue)); |
+ return ast_context()->ReturnInstruction(max_smi, expr->id()); |
+} |
+ |
+ |
void HOptimizedGraphBuilder::VisitCallRuntime(CallRuntime* expr) { |
ASSERT(!HasStackOverflow()); |
ASSERT(current_block() != NULL); |
@@ -8578,20 +8585,6 @@ void HOptimizedGraphBuilder::VisitCallRuntime(CallRuntime* expr) { |
const Runtime::Function* function = expr->function(); |
ASSERT(function != NULL); |
- if (function->function_id == Runtime::kDataViewInitialize) { |
- return VisitDataViewInitialize(expr); |
- } |
- |
- if (function->function_id == Runtime::kTypedArrayInitialize) { |
- return VisitTypedArrayInitialize(expr); |
- } |
- |
- if (function->function_id == Runtime::kMaxSmi) { |
- ASSERT(expr->arguments()->length() == 0); |
- HConstant* max_smi = New<HConstant>(static_cast<int32_t>(Smi::kMaxValue)); |
- return ast_context()->ReturnInstruction(max_smi, expr->id()); |
- } |
- |
if (function->intrinsic_type == Runtime::INLINE) { |
ASSERT(expr->name()->length() > 0); |
ASSERT(expr->name()->Get(0) == '_'); |