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

Unified Diff: src/compiler/instruction-selector.cc

Issue 2021323003: [wasm] remove faux code objects Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/compiler/instruction-selector.cc
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
index 22ca9c7319e56ffdd281825dd4e24733b2a1d0f8..095045242415343cb87e601bd830f8559031c245 100644
--- a/src/compiler/instruction-selector.cc
+++ b/src/compiler/instruction-selector.cc
@@ -584,7 +584,9 @@ void InstructionSelector::InitializeCallBuffer(Node* call, CallBuffer* buffer,
switch (buffer->descriptor->kind()) {
case CallDescriptor::kCallCodeObject:
buffer->instruction_args.push_back(
- (call_code_immediate && callee->opcode() == IrOpcode::kHeapConstant)
+ (call_code_immediate &&
+ (callee->opcode() == IrOpcode::kHeapConstant ||
+ callee->opcode() == IrOpcode::kRelocatableInt32Constant))
? g.UseImmediate(callee)
: g.UseRegister(callee));
break;

Powered by Google App Engine
This is Rietveld 408576698