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

Unified Diff: src/interpreter/interpreter.cc

Issue 2510743002: [interpreter] Bytecode for StaDataPropertyInLiteral. (Closed)
Patch Set: Fix typo. 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..2154b53a571092ae792e93e180c2e0df60c369bd 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) {
rmcilroy 2016/11/18 09:33:50 Nit - please add a comment describing what the byt
+ 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* value_reg_index = __ BytecodeOperandReg(2);
+ Node* value = __ LoadRegister(value_reg_index);
+ Node* attrs_reg_index = __ BytecodeOperandReg(3);
+ Node* attrs = __ LoadRegister(attrs_reg_index);
+
+ Node* set_function_name = __ 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