Commit e53d2ace authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[compiler] Remove default argument for code flags.

R=bmeurer@chromium.org

Review-Url: https://codereview.chromium.org/2281863002
Cr-Commit-Position: refs/heads/master@{#38935}
parent 8ce44751
...@@ -173,7 +173,7 @@ class CompilationInfo final { ...@@ -173,7 +173,7 @@ class CompilationInfo final {
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone,
Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); Code::Flags code_flags);
~CompilationInfo(); ~CompilationInfo();
ParseInfo* parse_info() const { return parse_info_; } ParseInfo* parse_info() const { return parse_info_; }
......
...@@ -1726,7 +1726,7 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config, ...@@ -1726,7 +1726,7 @@ bool Pipeline::AllocateRegistersForTesting(const RegisterConfiguration* config,
InstructionSequence* sequence, InstructionSequence* sequence,
bool run_verifier) { bool run_verifier) {
CompilationInfo info(ArrayVector("testing"), sequence->isolate(), CompilationInfo info(ArrayVector("testing"), sequence->isolate(),
sequence->zone()); sequence->zone(), Code::ComputeFlags(Code::STUB));
ZonePool zone_pool(sequence->isolate()->allocator()); ZonePool zone_pool(sequence->isolate()->allocator());
PipelineData data(&zone_pool, &info, sequence); PipelineData data(&zone_pool, &info, sequence);
PipelineImpl pipeline(&data); PipelineImpl pipeline(&data);
......
...@@ -67,7 +67,8 @@ class RawMachineAssemblerTester : public HandleAndZoneScope, ...@@ -67,7 +67,8 @@ class RawMachineAssemblerTester : public HandleAndZoneScope,
Schedule* schedule = this->Export(); Schedule* schedule = this->Export();
CallDescriptor* call_descriptor = this->call_descriptor(); CallDescriptor* call_descriptor = this->call_descriptor();
Graph* graph = this->graph(); Graph* graph = this->graph();
CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone()); CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone(),
Code::ComputeFlags(Code::STUB));
code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph, code_ = Pipeline::GenerateCodeForTesting(&info, call_descriptor, graph,
schedule); schedule);
} }
......
...@@ -279,7 +279,8 @@ class GraphBuilderTester : public HandleAndZoneScope, ...@@ -279,7 +279,8 @@ class GraphBuilderTester : public HandleAndZoneScope,
Zone* zone = graph()->zone(); Zone* zone = graph()->zone();
CallDescriptor* desc = CallDescriptor* desc =
Linkage::GetSimplifiedCDescriptor(zone, this->csig_); Linkage::GetSimplifiedCDescriptor(zone, this->csig_);
CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone()); CompilationInfo info(ArrayVector("testing"), main_isolate(), main_zone(),
Code::ComputeFlags(Code::STUB));
code_ = Pipeline::GenerateCodeForTesting(&info, desc, graph()); code_ = Pipeline::GenerateCodeForTesting(&info, desc, graph());
#ifdef ENABLE_DISASSEMBLER #ifdef ENABLE_DISASSEMBLER
if (!code_.is_null() && FLAG_print_opt_code) { if (!code_.is_null() && FLAG_print_opt_code) {
......
...@@ -81,7 +81,7 @@ TEST(ReturnThreeValues) { ...@@ -81,7 +81,7 @@ TEST(ReturnThreeValues) {
m.Return(add, sub, mul); m.Return(add, sub, mul);
CompilationInfo info(ArrayVector("testing"), handles.main_isolate(), CompilationInfo info(ArrayVector("testing"), handles.main_isolate(),
handles.main_zone()); handles.main_zone(), Code::ComputeFlags(Code::STUB));
Handle<Code> code = Handle<Code> code =
Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export()); Pipeline::GenerateCodeForTesting(&info, desc, m.graph(), m.Export());
#ifdef ENABLE_DISASSEMBLER #ifdef ENABLE_DISASSEMBLER
......
...@@ -242,7 +242,8 @@ class Int32Signature : public MachineSignature { ...@@ -242,7 +242,8 @@ class Int32Signature : public MachineSignature {
Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph,
Schedule* schedule = nullptr) { Schedule* schedule = nullptr) {
Isolate* isolate = CcTest::InitIsolateOnce(); Isolate* isolate = CcTest::InitIsolateOnce();
CompilationInfo info(ArrayVector("testing"), isolate, graph->zone()); CompilationInfo info(ArrayVector("testing"), isolate, graph->zone(),
Code::ComputeFlags(Code::STUB));
Handle<Code> code = Handle<Code> code =
Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule); Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule);
CHECK(!code.is_null()); CHECK(!code.is_null());
......
...@@ -603,7 +603,8 @@ static void TestGeneralizeRepresentation( ...@@ -603,7 +603,8 @@ static void TestGeneralizeRepresentation(
// Create new maps by generalizing representation of propX field. // Create new maps by generalizing representation of propX field.
Handle<Map> field_owner(map->FindFieldOwner(property_index), isolate); Handle<Map> field_owner(map->FindFieldOwner(property_index), isolate);
CompilationInfo info(ArrayVector("testing"), isolate, &zone); CompilationInfo info(ArrayVector("testing"), isolate, &zone,
Code::ComputeFlags(Code::STUB));
CHECK(!info.dependencies()->HasAborted()); CHECK(!info.dependencies()->HasAborted());
info.dependencies()->AssumeFieldType(field_owner); info.dependencies()->AssumeFieldType(field_owner);
...@@ -982,7 +983,8 @@ static void TestReconfigureDataFieldAttribute_GeneralizeRepresentation( ...@@ -982,7 +983,8 @@ static void TestReconfigureDataFieldAttribute_GeneralizeRepresentation(
Zone zone(isolate->allocator()); Zone zone(isolate->allocator());
Handle<Map> field_owner(map->FindFieldOwner(kSplitProp), isolate); Handle<Map> field_owner(map->FindFieldOwner(kSplitProp), isolate);
CompilationInfo info(ArrayVector("testing"), isolate, &zone); CompilationInfo info(ArrayVector("testing"), isolate, &zone,
Code::ComputeFlags(Code::STUB));
CHECK(!info.dependencies()->HasAborted()); CHECK(!info.dependencies()->HasAborted());
info.dependencies()->AssumeFieldType(field_owner); info.dependencies()->AssumeFieldType(field_owner);
...@@ -1067,7 +1069,8 @@ static void TestReconfigureDataFieldAttribute_GeneralizeRepresentationTrivial( ...@@ -1067,7 +1069,8 @@ static void TestReconfigureDataFieldAttribute_GeneralizeRepresentationTrivial(
Zone zone(isolate->allocator()); Zone zone(isolate->allocator());
Handle<Map> field_owner(map->FindFieldOwner(kSplitProp), isolate); Handle<Map> field_owner(map->FindFieldOwner(kSplitProp), isolate);
CompilationInfo info(ArrayVector("testing"), isolate, &zone); CompilationInfo info(ArrayVector("testing"), isolate, &zone,
Code::ComputeFlags(Code::STUB));
CHECK(!info.dependencies()->HasAborted()); CHECK(!info.dependencies()->HasAborted());
info.dependencies()->AssumeFieldType(field_owner); info.dependencies()->AssumeFieldType(field_owner);
...@@ -1598,7 +1601,8 @@ static void TestReconfigureElementsKind_GeneralizeRepresentation( ...@@ -1598,7 +1601,8 @@ static void TestReconfigureElementsKind_GeneralizeRepresentation(
Zone zone(isolate->allocator()); Zone zone(isolate->allocator());
Handle<Map> field_owner(map->FindFieldOwner(kDiffProp), isolate); Handle<Map> field_owner(map->FindFieldOwner(kDiffProp), isolate);
CompilationInfo info(ArrayVector("testing"), isolate, &zone); CompilationInfo info(ArrayVector("testing"), isolate, &zone,
Code::ComputeFlags(Code::STUB));
CHECK(!info.dependencies()->HasAborted()); CHECK(!info.dependencies()->HasAborted());
info.dependencies()->AssumeFieldType(field_owner); info.dependencies()->AssumeFieldType(field_owner);
...@@ -1691,7 +1695,8 @@ static void TestReconfigureElementsKind_GeneralizeRepresentationTrivial( ...@@ -1691,7 +1695,8 @@ static void TestReconfigureElementsKind_GeneralizeRepresentationTrivial(
Zone zone(isolate->allocator()); Zone zone(isolate->allocator());
Handle<Map> field_owner(map->FindFieldOwner(kDiffProp), isolate); Handle<Map> field_owner(map->FindFieldOwner(kDiffProp), isolate);
CompilationInfo info(ArrayVector("testing"), isolate, &zone); CompilationInfo info(ArrayVector("testing"), isolate, &zone,
Code::ComputeFlags(Code::STUB));
CHECK(!info.dependencies()->HasAborted()); CHECK(!info.dependencies()->HasAborted());
info.dependencies()->AssumeFieldType(field_owner); info.dependencies()->AssumeFieldType(field_owner);
......
...@@ -415,7 +415,8 @@ class WasmFunctionWrapper : public HandleAndZoneScope, ...@@ -415,7 +415,8 @@ class WasmFunctionWrapper : public HandleAndZoneScope,
r.LowerGraph(); r.LowerGraph();
} }
CompilationInfo info(ArrayVector("testing"), isolate, graph()->zone()); CompilationInfo info(ArrayVector("testing"), isolate, graph()->zone(),
Code::ComputeFlags(Code::STUB));
code_ = code_ =
Pipeline::GenerateCodeForTesting(&info, descriptor, graph(), nullptr); Pipeline::GenerateCodeForTesting(&info, descriptor, graph(), nullptr);
CHECK(!code_.is_null()); CHECK(!code_.is_null());
......
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