| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 631319167bdcb02e5690a6636812f8425690af05..0abc9918df6595454e83f095732f71049ddc4088 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -3500,7 +3500,7 @@ static inline Node* Record(JSTypeFeedbackTable* js_type_feedback, Node* node,
|
|
|
| Node* AstGraphBuilder::BuildKeyedLoad(Node* object, Node* key,
|
| const VectorSlotPair& feedback) {
|
| - const Operator* op = javascript()->LoadProperty(feedback);
|
| + const Operator* op = javascript()->LoadProperty(feedback, language_mode());
|
| Node* node = NewNode(op, object, key, BuildLoadFeedbackVector());
|
| return Record(js_type_feedback_, node, feedback.slot());
|
| }
|
| @@ -3508,7 +3508,8 @@ Node* AstGraphBuilder::BuildKeyedLoad(Node* object, Node* key,
|
|
|
| Node* AstGraphBuilder::BuildNamedLoad(Node* object, Handle<Name> name,
|
| const VectorSlotPair& feedback) {
|
| - const Operator* op = javascript()->LoadNamed(MakeUnique(name), feedback);
|
| + const Operator* op =
|
| + javascript()->LoadNamed(MakeUnique(name), feedback, language_mode());
|
| Node* node = NewNode(op, object, BuildLoadFeedbackVector());
|
| return Record(js_type_feedback_, node, feedback.slot());
|
| }
|
| @@ -3544,8 +3545,9 @@ Node* AstGraphBuilder::BuildNamedSuperLoad(Node* receiver, Node* home_object,
|
| Handle<Name> name,
|
| const VectorSlotPair& feedback) {
|
| Node* name_node = jsgraph()->Constant(name);
|
| - const Operator* op = javascript()->CallRuntime(Runtime::kLoadFromSuper, 3);
|
| - Node* node = NewNode(op, receiver, home_object, name_node);
|
| + Node* language = jsgraph()->Constant(language_mode());
|
| + const Operator* op = javascript()->CallRuntime(Runtime::kLoadFromSuper, 4);
|
| + Node* node = NewNode(op, receiver, home_object, name_node, language);
|
| return Record(js_type_feedback_, node, feedback.slot());
|
| }
|
|
|
| @@ -3553,9 +3555,10 @@ Node* AstGraphBuilder::BuildNamedSuperLoad(Node* receiver, Node* home_object,
|
| Node* AstGraphBuilder::BuildKeyedSuperLoad(Node* receiver, Node* home_object,
|
| Node* key,
|
| const VectorSlotPair& feedback) {
|
| + Node* language = jsgraph()->Constant(language_mode());
|
| const Operator* op =
|
| - javascript()->CallRuntime(Runtime::kLoadKeyedFromSuper, 3);
|
| - Node* node = NewNode(op, receiver, home_object, key);
|
| + javascript()->CallRuntime(Runtime::kLoadKeyedFromSuper, 4);
|
| + Node* node = NewNode(op, receiver, home_object, key, language);
|
| return Record(js_type_feedback_, node, feedback.slot());
|
| }
|
|
|
|
|