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}
This commit is contained in:
svenpanne 2015-02-06 04:18:44 -08:00 committed by Commit bot
parent 878963a8a5
commit 30787d4e56
11 changed files with 17 additions and 16 deletions

View File

@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -55,7 +55,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -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).

View File

@ -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 {

View File

@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -62,7 +62,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}

View File

@ -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),

View File

@ -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_;

View File

@ -74,7 +74,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
MachineSignature* sig) {
const MachineSignature* sig) {
return LH::GetSimplifiedCDescriptor(zone, sig);
}