Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index ecf05f4bc53555367cf1c19c649c6be9d2d0b0d3..12decb0a231487f226794b0598cb34f087baf229 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -11758,6 +11758,16 @@ void HOptimizedGraphBuilder::GenerateIsArray(CallRuntime* call) { |
} |
+void HOptimizedGraphBuilder::GenerateIsTypedArray(CallRuntime* call) { |
+ DCHECK(call->arguments()->length() == 1); |
+ CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
+ HValue* value = Pop(); |
+ HHasInstanceTypeAndBranch* result = |
+ New<HHasInstanceTypeAndBranch>(value, JS_TYPED_ARRAY_TYPE); |
+ return ast_context()->ReturnControl(result, call->id()); |
+} |
+ |
+ |
void HOptimizedGraphBuilder::GenerateIsRegExp(CallRuntime* call) { |
DCHECK(call->arguments()->length() == 1); |
CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |