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:
parent
878963a8a5
commit
30787d4e56
@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -192,8 +192,8 @@ class LinkageHelper {
|
|||||||
descriptor.DebugName(isolate));
|
descriptor.DebugName(isolate));
|
||||||
}
|
}
|
||||||
|
|
||||||
static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
|
static CallDescriptor* GetSimplifiedCDescriptor(
|
||||||
MachineSignature* msig) {
|
Zone* zone, const MachineSignature* msig) {
|
||||||
LocationSignature::Builder locations(zone, msig->return_count(),
|
LocationSignature::Builder locations(zone, msig->return_count(),
|
||||||
msig->parameter_count());
|
msig->parameter_count());
|
||||||
// Add return location(s).
|
// Add return location(s).
|
||||||
|
@ -64,8 +64,9 @@ class CallDescriptor FINAL : public ZoneObject {
|
|||||||
typedef base::Flags<Flag> Flags;
|
typedef base::Flags<Flag> Flags;
|
||||||
|
|
||||||
CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc,
|
CallDescriptor(Kind kind, MachineType target_type, LinkageLocation target_loc,
|
||||||
MachineSignature* machine_sig, LocationSignature* location_sig,
|
const MachineSignature* machine_sig,
|
||||||
size_t js_param_count, Operator::Properties properties,
|
LocationSignature* location_sig, size_t js_param_count,
|
||||||
|
Operator::Properties properties,
|
||||||
RegList callee_saved_registers, Flags flags,
|
RegList callee_saved_registers, Flags flags,
|
||||||
const char* debug_name = "")
|
const char* debug_name = "")
|
||||||
: kind_(kind),
|
: kind_(kind),
|
||||||
@ -209,7 +210,7 @@ class Linkage : public ZoneObject {
|
|||||||
// integers and pointers of one word size each, i.e. no floating point,
|
// integers and pointers of one word size each, i.e. no floating point,
|
||||||
// structs, pointers to members, etc.
|
// structs, pointers to members, etc.
|
||||||
static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
|
static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig);
|
const MachineSignature* sig);
|
||||||
|
|
||||||
// Get the location of an (incoming) parameter to this function.
|
// Get the location of an (incoming) parameter to this function.
|
||||||
LinkageLocation GetParameterLocation(int index) const {
|
LinkageLocation GetParameterLocation(int index) const {
|
||||||
|
@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ namespace internal {
|
|||||||
namespace compiler {
|
namespace compiler {
|
||||||
|
|
||||||
RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph,
|
RawMachineAssembler::RawMachineAssembler(Isolate* isolate, Graph* graph,
|
||||||
MachineSignature* machine_sig,
|
const MachineSignature* machine_sig,
|
||||||
MachineType word,
|
MachineType word,
|
||||||
MachineOperatorBuilder::Flags flags)
|
MachineOperatorBuilder::Flags flags)
|
||||||
: GraphBuilder(isolate, graph),
|
: GraphBuilder(isolate, graph),
|
||||||
|
@ -45,7 +45,7 @@ class RawMachineAssembler : public GraphBuilder {
|
|||||||
};
|
};
|
||||||
|
|
||||||
RawMachineAssembler(Isolate* isolate, Graph* graph,
|
RawMachineAssembler(Isolate* isolate, Graph* graph,
|
||||||
MachineSignature* machine_sig,
|
const MachineSignature* machine_sig,
|
||||||
MachineType word = kMachPtr,
|
MachineType word = kMachPtr,
|
||||||
MachineOperatorBuilder::Flags flags =
|
MachineOperatorBuilder::Flags flags =
|
||||||
MachineOperatorBuilder::Flag::kNoFlags);
|
MachineOperatorBuilder::Flag::kNoFlags);
|
||||||
@ -56,7 +56,7 @@ class RawMachineAssembler : public GraphBuilder {
|
|||||||
CommonOperatorBuilder* common() { return &common_; }
|
CommonOperatorBuilder* common() { return &common_; }
|
||||||
CallDescriptor* call_descriptor() const { return call_descriptor_; }
|
CallDescriptor* call_descriptor() const { return call_descriptor_; }
|
||||||
size_t parameter_count() const { return machine_sig_->parameter_count(); }
|
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() {
|
Node* UndefinedConstant() {
|
||||||
Unique<HeapObject> unique = Unique<HeapObject>::CreateImmovable(
|
Unique<HeapObject> unique = Unique<HeapObject>::CreateImmovable(
|
||||||
@ -448,7 +448,7 @@ class RawMachineAssembler : public GraphBuilder {
|
|||||||
Schedule* schedule_;
|
Schedule* schedule_;
|
||||||
MachineOperatorBuilder machine_;
|
MachineOperatorBuilder machine_;
|
||||||
CommonOperatorBuilder common_;
|
CommonOperatorBuilder common_;
|
||||||
MachineSignature* machine_sig_;
|
const MachineSignature* machine_sig_;
|
||||||
CallDescriptor* call_descriptor_;
|
CallDescriptor* call_descriptor_;
|
||||||
Node** parameters_;
|
Node** parameters_;
|
||||||
Label exit_label_;
|
Label exit_label_;
|
||||||
|
@ -74,7 +74,7 @@ CallDescriptor* Linkage::GetStubCallDescriptor(
|
|||||||
|
|
||||||
|
|
||||||
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone,
|
||||||
MachineSignature* sig) {
|
const MachineSignature* sig) {
|
||||||
return LH::GetSimplifiedCDescriptor(zone, sig);
|
return LH::GetSimplifiedCDescriptor(zone, sig);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user