Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: src/interpreter/interpreter.cc

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Delete double line. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/interpreter/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index 9128ee984039c764d20e4c34ae3a762f0c143829..632268e764d7f7ce3fa9d26304860bd1cc875ad4 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -804,6 +804,25 @@ void Interpreter::DoStaNamedPropertyStrict(InterpreterAssembler* assembler) {
DoStoreIC(ic, assembler);
}
+void Interpreter::DoStaDataPropertyInLiteral(InterpreterAssembler* assembler) {
+ Node* object_reg_index = __ BytecodeOperandReg(0);
+ Node* object = __ LoadRegister(object_reg_index);
+ Node* name_reg_index = __ BytecodeOperandReg(1);
+ Node* name = __ LoadRegister(name_reg_index);
+ Node* attrs_reg_index = __ BytecodeOperandReg(2);
+ Node* attrs = __ LoadRegister(attrs_reg_index);
+ Node* set_function_name_reg_index = __ BytecodeOperandReg(3);
+ Node* set_function_name = __ LoadRegister(set_function_name_reg_index);
+
+ Node* value = __ GetAccumulator();
+
+ Node* context = __ GetContext();
+
+ __ CallRuntime(Runtime::kDefineDataPropertyInLiteral, context, object, name,
+ value, attrs, set_function_name);
+ __ Dispatch();
+}
+
void Interpreter::DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler) {
typedef StoreWithVectorDescriptor Descriptor;
Node* code_target = __ HeapConstant(ic.code());

Powered by Google App Engine
This is Rietveld 408576698