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

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

Issue 1410953003: [Interpreter] Adds delete operator to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
Index: src/interpreter/bytecode-array-builder.cc
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc
index b732f8b96fae8197abf145ffc3abe0af50df6e09..1e7520b2ef2a25e964caadded4e3f9bc8d6e33de 100644
--- a/src/interpreter/bytecode-array-builder.cc
+++ b/src/interpreter/bytecode-array-builder.cc
@@ -633,6 +633,16 @@ BytecodeArrayBuilder& BytecodeArrayBuilder::CallRuntime(
}
+BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object,
+ LanguageMode language_mode) {
+ Bytecode bytecode = (language_mode == STRICT)
rmcilroy 2015/10/21 14:52:54 Could you move this code into a BytecodeForDelete
mythria 2015/10/23 14:48:00 Done.
+ ? Bytecode::kDeletePropertyStrict
+ : Bytecode::kDeletePropertySloppy;
+ Output(bytecode, object.ToOperand());
+ return *this;
+}
+
+
size_t BytecodeArrayBuilder::GetConstantPoolEntry(Handle<Object> object) {
// These constants shouldn't be added to the constant pool, the should use
// specialzed bytecodes instead.

Powered by Google App Engine
This is Rietveld 408576698