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

Unified Diff: src/compiler/interpreter-assembler.h

Issue 1370893002: [Interpreter] Add support for short (16 bit) operands. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase 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/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/interpreter-assembler.h
diff --git a/src/compiler/interpreter-assembler.h b/src/compiler/interpreter-assembler.h
index f77ed22154f57618cb12f10ceccb4c45bca41062..43831d2c16c5e4b6ab8b54d790b20c85500b1707 100644
--- a/src/compiler/interpreter-assembler.h
+++ b/src/compiler/interpreter-assembler.h
@@ -41,16 +41,20 @@ class InterpreterAssembler {
// Returns the count immediate for bytecode operand |operand_index| in the
// current bytecode.
- Node* BytecodeOperandCount(int operand_index);
+ Node* BytecodeOperandCount8(int operand_index);
// Returns the index immediate for bytecode operand |operand_index| in the
// current bytecode.
- Node* BytecodeOperandIdx(int operand_index);
+ Node* BytecodeOperandIdx8(int operand_index);
// Returns the Imm8 immediate for bytecode operand |operand_index| in the
// current bytecode.
Node* BytecodeOperandImm8(int operand_index);
// Returns the register index for bytecode operand |operand_index| in the
// current bytecode.
- Node* BytecodeOperandReg(int operand_index);
+ Node* BytecodeOperandReg8(int operand_index);
+
+ // Returns the index immediate for the short (16 bit) bytecode operand
+ // |operand_index| in the current bytecode.
+ Node* BytecodeOperandIdx16(int operand_index);
// Accumulator.
Node* GetAccumulator();
@@ -126,6 +130,8 @@ class InterpreterAssembler {
// Close the graph.
void End();
+ static bool TargetSupportsUnalignedAccess();
+
// Protected helpers (for testing) which delegate to RawMachineAssembler.
CallDescriptor* call_descriptor() const;
Graph* graph();
@@ -148,6 +154,7 @@ class InterpreterAssembler {
Node* SmiShiftBitsConstant();
Node* BytecodeOperand(int operand_index);
Node* BytecodeOperandSignExtended(int operand_index);
+ Node* BytecodeOperandShort(int operand_index);
Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node** args);
Node* CallJSBuiltin(int context_index, Node* receiver, Node** js_args,
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698