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

Unified Diff: src/interpreter/bytecode-array-builder.h

Issue 1319833004: [Interpreter] Add support for property store operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_implicit_ret
Patch Set: Add DCHECK Created 5 years, 3 months 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index d4e1c34e540a2d67a22c19d61c7372c78dbf6cfb..ebcb18017e8bf4d1f6da09498ed584a94a48b37f 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -35,6 +35,9 @@ class BytecodeArrayBuilder {
void set_locals_count(int number_of_locals);
int locals_count() const;
+ // Returns true if the bytecode has an explicit return at the end.
+ bool HasExplicitReturn();
+
Register Parameter(int parameter_index);
// Constant loads to accumulator.
@@ -56,6 +59,14 @@ class BytecodeArrayBuilder {
BytecodeArrayBuilder& LoadKeyedProperty(Register object, int feedback_slot,
LanguageMode language_mode);
+ // Store properties. The value to be stored should be in the accumulator.
+ BytecodeArrayBuilder& StoreNamedProperty(Register object, Register name,
+ int feedback_slot,
+ LanguageMode language_mode);
+ BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key,
+ int feedback_slot,
+ LanguageMode language_mode);
+
// Operators.
BytecodeArrayBuilder& BinaryOperation(Token::Value binop, Register reg);
« no previous file with comments | « src/flag-definitions.h ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698