Index: src/compiler/bytecode-graph-builder.cc |
diff --git a/src/compiler/bytecode-graph-builder.cc b/src/compiler/bytecode-graph-builder.cc |
index 4c14267479064612b40b79e7e8d14dfca238d352..97398cb5cb0fee69524e18392496a7d0cc362374 100644 |
--- a/src/compiler/bytecode-graph-builder.cc |
+++ b/src/compiler/bytecode-graph-builder.cc |
@@ -786,6 +786,23 @@ void BytecodeGraphBuilder::VisitStaGlobalStrict() { |
BuildStoreGlobal(LanguageMode::STRICT); |
} |
+void BytecodeGraphBuilder::VisitStaDataPropertyInLiteral() { |
+ Node* object = |
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(0)); |
+ Node* name = |
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(1)); |
+ Node* value = |
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(2)); |
+ Node* attrs = |
+ environment()->LookupRegister(bytecode_iterator().GetRegisterOperand(3)); |
+ |
+ Node* set_function_name = environment()->LookupAccumulator(); |
+ const Operator* op = |
+ javascript()->CallRuntime(Runtime::kDefineDataPropertyInLiteral); |
+ Node* store = NewNode(op, object, name, value, attrs, set_function_name); |
+ environment()->RecordAfterState(store, Environment::kAttachFrameState); |
+} |
+ |
void BytecodeGraphBuilder::VisitLdaContextSlot() { |
// TODO(mythria): immutable flag is also set to false. This information is not |
// available in bytecode array. update this code when the implementation |