summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/code-generator-impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/code-generator-impl.h')
-rw-r--r--deps/v8/src/compiler/code-generator-impl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/code-generator-impl.h b/deps/v8/src/compiler/code-generator-impl.h
index 1cab854ce8..f0762e9bbe 100644
--- a/deps/v8/src/compiler/code-generator-impl.h
+++ b/deps/v8/src/compiler/code-generator-impl.h
@@ -57,6 +57,10 @@ class InstructionOperandConverter {
return static_cast<uint8_t>(InputInt32(index) & 0x3F);
}
+ ExternalReference InputExternalReference(size_t index) {
+ return ToExternalReference(instr_->InputAt(index));
+ }
+
Handle<HeapObject> InputHeapObject(size_t index) {
return ToHeapObject(instr_->InputAt(index));
}
@@ -108,6 +112,10 @@ class InstructionOperandConverter {
double ToDouble(InstructionOperand* op) { return ToConstant(op).ToFloat64(); }
+ ExternalReference ToExternalReference(InstructionOperand* op) {
+ return ToConstant(op).ToExternalReference();
+ }
+
Handle<HeapObject> ToHeapObject(InstructionOperand* op) {
return ToConstant(op).ToHeapObject();
}