Reviewers: dstence, michael_dawson, rmcilroy,
Description:
PPC: [interpreter] Add basic framework for bytecode handler code generation.
Port 7877c4e0c77b5c2b97678406eab7e9ad6eba4a4d
Original commit message:
Adds basic support for generation of interpreter bytecode handler code
snippets. The InterpreterAssembler class exposes a set of low level,
interpreter specific operations which can be used to build a Turbofan
graph. The Interpreter class generates a bytecode handler snippet for
each bytecode by assembling operations using an InterpreterAssembler.
Currently only two simple bytecodes are supported: LoadLiteral0 and
Return.
[email protected], [email protected], [email protected]
BUG=
Please review this at https://codereview.chromium.org/1250723003/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+4, -3 lines):
M src/compiler/ppc/linkage-ppc.cc
Index: src/compiler/ppc/linkage-ppc.cc
diff --git a/src/compiler/ppc/linkage-ppc.cc
b/src/compiler/ppc/linkage-ppc.cc
index
ebea4452aea62c7230ad263dff0e3de0dc89f50d..d9404bf89eae79ca3fc1d683d8cd51988ec52a6d
100644
--- a/src/compiler/ppc/linkage-ppc.cc
+++ b/src/compiler/ppc/linkage-ppc.cc
@@ -17,6 +17,8 @@ struct PPCLinkageHelperTraits {
static Register ReturnValue2Reg() { return r4; }
static Register JSCallFunctionReg() { return r4; }
static Register ContextReg() { return cp; }
+ static Register InterpreterBytecodePointerReg() { return r14; }
+ static Register InterpreterDispatchTableReg() { return r15; }
static Register RuntimeCallFunctionReg() { return r4; }
static Register RuntimeCallArgCountReg() { return r3; }
static RegList CCalleeSaveRegisters() {
@@ -68,9 +70,8 @@ CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone*
zone,
}
-CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(
- Zone* zone, const MachineSignature* sig) {
- return LH::GetInterpreterDispatchDescriptor(zone, sig);
+CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) {
+ return LH::GetInterpreterDispatchDescriptor(zone);
}
} // namespace compiler
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.