Fix machine types in GetRuntimeCallDescriptor
The machine types were incorrect for the runtime function and argument
count parameters. The latter was introduced in 3e2085eb
, while the
former seems to always have been wrong.
This was not an issue so far because GetRuntimeCallDescriptor was only
called after the representation selection phase and thus the machine
type was ignored.
R=jarin@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2250863004
Cr-Commit-Position: refs/heads/master@{#38720}
This commit is contained in:
parent
116667f73e
commit
280fdf6411
@ -252,11 +252,11 @@ CallDescriptor* Linkage::GetRuntimeCallDescriptor(
|
|||||||
}
|
}
|
||||||
// Add runtime function itself.
|
// Add runtime function itself.
|
||||||
locations.AddParam(
|
locations.AddParam(
|
||||||
regloc(kRuntimeCallFunctionRegister, MachineType::AnyTagged()));
|
regloc(kRuntimeCallFunctionRegister, MachineType::Pointer()));
|
||||||
|
|
||||||
// Add runtime call argument count.
|
// Add runtime call argument count.
|
||||||
locations.AddParam(
|
locations.AddParam(
|
||||||
regloc(kRuntimeCallArgCountRegister, MachineType::AnyTagged()));
|
regloc(kRuntimeCallArgCountRegister, MachineType::Int32()));
|
||||||
|
|
||||||
// Add context.
|
// Add context.
|
||||||
locations.AddParam(regloc(kContextRegister, MachineType::AnyTagged()));
|
locations.AddParam(regloc(kContextRegister, MachineType::AnyTagged()));
|
||||||
|
Loading…
Reference in New Issue
Block a user