Index: src/compiler/ast-graph-builder.cc |
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc |
index 03fee5847d11a9ba0326e74cc45abe865077803e..4b204c460dcaa559953decdb8e5b0559c5a1aed2 100644 |
--- a/src/compiler/ast-graph-builder.cc |
+++ b/src/compiler/ast-graph-builder.cc |
@@ -1293,8 +1293,9 @@ void AstGraphBuilder::VisitForInBody(ForInStatement* stmt) { |
JSBuiltinsObject::OffsetOfFunctionWithId(Builtins::FILTER_KEY)); |
// result is either the string key or Smi(0) indicating the property |
// is gone. |
- Node* res = NewNode(javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS), |
- function, obj, value); |
+ Node* res = NewNode( |
+ javascript()->CallFunction(3, NO_CALL_FUNCTION_FLAGS, language_mode()), |
+ function, obj, value); |
PrepareFrameState(res, stmt->FilterId(), OutputFrameStateCombine::Push()); |
Node* property_missing = |
NewNode(javascript()->StrictEqual(), res, jsgraph()->ZeroConstant()); |
@@ -2198,7 +2199,8 @@ void AstGraphBuilder::VisitCall(Call* expr) { |
} |
// Create node to perform the function call. |
- const Operator* call = javascript()->CallFunction(args->length() + 2, flags); |
+ const Operator* call = |
+ javascript()->CallFunction(args->length() + 2, flags, language_mode()); |
Node* value = ProcessArguments(call, args->length() + 2); |
PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
ast_context()->ProduceValue(value); |
@@ -2242,7 +2244,8 @@ void AstGraphBuilder::VisitCallJSRuntime(CallRuntime* expr) { |
VisitForValues(args); |
// Create node to perform the JS runtime call. |
- const Operator* call = javascript()->CallFunction(args->length() + 2, flags); |
+ const Operator* call = |
+ javascript()->CallFunction(args->length() + 2, flags, language_mode()); |
Node* value = ProcessArguments(call, args->length() + 2); |
PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
ast_context()->ProduceValue(value); |