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

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, 6 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/instruction-scheduler.cc ('k') | src/compiler/linkage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector.cc
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc
index 13e6827a20ebd6c75d7a3350ce767acbb6e8c70f..932b54e6e9c7c34bac57e04ffa3bca432065ad35 100644
--- a/src/compiler/instruction-selector.cc
+++ b/src/compiler/instruction-selector.cc
@@ -588,6 +588,11 @@ void InstructionSelector::InitializeCallBuffer(Node* call, CallBuffer* buffer,
? g.UseImmediate(callee)
: g.UseRegister(callee));
break;
+ case CallDescriptor::kCallWasmFunction: {
+ DCHECK(callee->opcode() == IrOpcode::kRelocatableInt32Constant);
+ buffer->instruction_args.push_back(g.UseImmediate(callee));
+ break;
+ }
case CallDescriptor::kCallAddress:
buffer->instruction_args.push_back(
(call_address_immediate &&
@@ -1601,6 +1606,9 @@ void InstructionSelector::VisitCall(Node* node, BasicBlock* handler) {
case CallDescriptor::kCallCodeObject:
opcode = kArchCallCodeObject | MiscField::encode(flags);
break;
+ case CallDescriptor::kCallWasmFunction:
+ opcode = kArchCallWasmFunction | MiscField::encode(flags);
+ break;
case CallDescriptor::kCallJSFunction:
opcode = kArchCallJSFunction | MiscField::encode(flags);
break;
« no previous file with comments | « src/compiler/instruction-scheduler.cc ('k') | src/compiler/linkage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698