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

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

Issue 1468003002: [Interpreter] Add support for cast operators to bytecode graph builder and (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/bytecode-array-builder.h
diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
index 04980193a993c26bb13589b5b3e031bf639545a0..ef5e96b404ea181ce6fd1aef1ab22b781720fe12 100644
--- a/src/interpreter/bytecode-array-builder.h
+++ b/src/interpreter/bytecode-array-builder.h
@@ -79,6 +79,7 @@ class BytecodeArrayBuilder {
BytecodeArrayBuilder& LoadTheHole();
BytecodeArrayBuilder& LoadTrue();
BytecodeArrayBuilder& LoadFalse();
+ BytecodeArrayBuilder& LoadBooleanConstant(bool value);
// Global loads to the accumulator and stores from the accumulator.
BytecodeArrayBuilder& LoadGlobal(size_t name_index, int feedback_slot,
@@ -254,6 +255,10 @@ class BytecodeArrayBuilder {
bool OperandIsValid(Bytecode bytecode, int operand_index,
uint32_t operand_value) const;
bool LastBytecodeInSameBlock() const;
+ // Get the previous bytecode in the same block
+ Bytecode GetPreviousBytecodeInSameBlock() const;
+ uint32_t GetRawOperand(int operand_index) const;
+ Handle<Object> GetConstantForIndexOperand(int operand_index);
bool NeedToBooleanCast();
bool IsRegisterInAccumulator(Register reg);

Powered by Google App Engine
This is Rietveld 408576698