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

Unified Diff: src/compiler/linkage.cc

Issue 1887493004: [Interpreter] No longer require context machine register in bytecode handlers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_dispatch
Patch Set: Fix x87 Created 4 years, 8 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/linkage.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/linkage.cc
diff --git a/src/compiler/linkage.cc b/src/compiler/linkage.cc
index ba5d902d5217b948766c0e7dc955cc21ec14e39c..dd9676d74e408cb1508f66da68958929b0721c43 100644
--- a/src/compiler/linkage.cc
+++ b/src/compiler/linkage.cc
@@ -409,12 +409,9 @@ CallDescriptor* Linkage::GetBytecodeDispatchCallDescriptor(
int stack_parameter_count) {
const int register_parameter_count = descriptor.GetRegisterParameterCount();
const int parameter_count = register_parameter_count + stack_parameter_count;
- const int context_count = 1;
- const size_t parameter_and_context_count =
- static_cast<size_t>(parameter_count + context_count);
- LocationSignature::Builder locations(zone, 0, parameter_and_context_count);
- MachineSignature::Builder types(zone, 0, parameter_and_context_count);
+ LocationSignature::Builder locations(zone, 0, parameter_count);
+ MachineSignature::Builder types(zone, 0, parameter_count);
// Add parameters in registers and on the stack.
for (int i = 0; i < parameter_count; i++) {
@@ -432,9 +429,6 @@ CallDescriptor* Linkage::GetBytecodeDispatchCallDescriptor(
types.AddParam(MachineType::AnyTagged());
}
}
- // Add context.
- locations.AddParam(regloc(kContextRegister));
- types.AddParam(MachineType::AnyTagged());
// The target for interpreter dispatches is a code entry address.
MachineType target_type = MachineType::Pointer();
« no previous file with comments | « src/compiler/linkage.h ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698