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

Unified Diff: src/interface-descriptors.cc

Issue 1673333004: [Interpreter] Make InterpreterAssembler a subclass of CodeStubAssembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address review comments. Created 4 years, 10 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/interface-descriptors.h ('k') | src/interpreter/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface-descriptors.cc
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc
index 8fbdcc13e86d74624b27c75f1f9062ae9c24ac4c..073a0a38e750db8374c5d68013fb15fd50ee2af1 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -545,6 +545,19 @@ FunctionType* ApiAccessorDescriptor::BuildCallInterfaceDescriptorFunctionType(
return function;
}
+FunctionType*
+InterpreterDispatchDescriptor::BuildCallInterfaceDescriptorFunctionType(
+ Isolate* isolate, int parameter_count) {
+ Zone* zone = isolate->interface_descriptor_zone();
+ FunctionType* function =
+ Type::Function(AnyTagged(zone), Type::Undefined(), 5, zone)->AsFunction();
+ function->InitParameter(kAccumulatorParameter, AnyTagged(zone));
+ function->InitParameter(kRegisterFileParameter, ExternalPointer(zone));
+ function->InitParameter(kBytecodeOffsetParameter, UntaggedIntegral32(zone));
+ function->InitParameter(kBytecodeArrayParameter, AnyTagged(zone));
+ function->InitParameter(kDispatchTableParameter, AnyTagged(zone));
+ return function;
+}
} // namespace internal
} // namespace v8
« no previous file with comments | « src/interface-descriptors.h ('k') | src/interpreter/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698