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

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

Issue 1399773002: [Interpreter] Adds logical and, logical or and comma operators to interpreter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added a new bytecode to jump by casting the value to boolean. This reduces code size for logical op… 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.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 26a8c99cb939814cd2ae274e8e87b09e2bf922e6..f98a3b75b65ae5eed9262c52ce043c585c13a4e6 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -123,6 +123,8 @@ class BytecodeArrayBuilder {
BytecodeArrayBuilder& Jump(BytecodeLabel* label);
BytecodeArrayBuilder& JumpIfTrue(BytecodeLabel* label);
BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
+ BytecodeArrayBuilder& JumpIfToBooleanTrue(BytecodeLabel* label);
+ BytecodeArrayBuilder& JumpIfToBooleanFalse(BytecodeLabel* label);
rmcilroy 2015/10/13 15:43:24 We probably want to merge these into JumpIfTrue/Fa
mythria 2015/10/14 13:33:42 Done.
BytecodeArrayBuilder& Return();
BytecodeArrayBuilder& EnterBlock();

Powered by Google App Engine
This is Rietveld 408576698