Commit 30787d4e authored by svenpanne's avatar svenpanne Committed by Commit bot

Const-corrected some MachineSignature* parameters.

Recipe: Add "const" to RawMachineAssembler constructor, fix breakage.

Review URL: https://codereview.chromium.org/874693006

Cr-Commit-Position: refs/heads/master@{#26485}
parent 878963a8
......@@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -55,7 +55,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -192,8 +192,8 @@ class LinkageHelper {
descriptor.DebugName(isolate));
}
static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* msig) {
static CallDescriptor* GetSimplifiedCDescriptor(
Zone* zone, const MachineSignature* msig) {
LocationSignature::Builder locations(zone, msig->return_count(),
msig->parameter_count());
// Add return location(s).
......
......@@ -64,8 +64,9 @@ class CallDescriptor FINAL : public ZoneObject {
typedef base::Flags<Flag> Flags;
CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc,
MachineSignature* machine_sig, LocationSignature* location_sig,
size_t js_param_count, Operator::Properties properties,
const MachineSignature* machine_sig,
LocationSignature* location_sig, size_t js_param_count,
Operator::Properties properties,
RegList callee_saved_registers, Flags flags,
const char* debug_name = "")
: kind_(kind),
......@@ -209,7 +210,7 @@ class Linkage : public ZoneObject {
// integers and pointers of one word size each, i.e. no floating point,
// structs, pointers to members, etc.
static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig);
const MachineSignature* sig);
// Get the location of an (incoming) parameter to this function.
LinkageLocation GetParameterLocation(int index) const {
......
......@@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -62,7 +62,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
......@@ -12,7 +12,7 @@ namespace internal {
namespace compiler {
RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph,
MachineSignature* machine_sig,
const MachineSignature* machine_sig,
MachineType word,
MachineOperatorBuilder::Flags flags)
: GraphBuilder(isolate, graph),
......
......@@ -45,7 +45,7 @@ class RawMachineAssembler : public GraphBuilder {
};
RawMachineAssembler(Isolate* isolate, Graph* graph,
MachineSignature* machine_sig,
const MachineSignature* machine_sig,
MachineType word = kMachPtr,
MachineOperatorBuilder::Flags flags =
MachineOperatorBuilder::Flag::kNoFlags);
......@@ -56,7 +56,7 @@ class RawMachineAssembler : public GraphBuilder {
CommonOperatorBuilder* common() { return &common_; }
CallDescriptor* call_descriptor() const { return call_descriptor_; }
size_t parameter_count() const { return machine_sig_->parameter_count(); }
MachineSignature* machine_sig() const { return machine_sig_; }
const MachineSignature* machine_sig() const { return machine_sig_; }
Node* UndefinedConstant() {
Unique<HeapObject> unique = Unique<HeapObject>::CreateImmovable(
......@@ -448,7 +448,7 @@ class RawMachineAssembler : public GraphBuilder {
Schedule* schedule_;
MachineOperatorBuilder machine_;
CommonOperatorBuilder common_;
MachineSignature* machine_sig_;
const MachineSignature* machine_sig_;
CallDescriptor* call_descriptor_;
Node** parameters_;
Label exit_label_;
......
......@@ -74,7 +74,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment