diff options
Diffstat (limited to 'deps/v8/test/cctest/compiler/test-basic-block-profiler.cc')
-rw-r--r-- | deps/v8/test/cctest/compiler/test-basic-block-profiler.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/deps/v8/test/cctest/compiler/test-basic-block-profiler.cc b/deps/v8/test/cctest/compiler/test-basic-block-profiler.cc index 1f4d87f18d..17400abe53 100644 --- a/deps/v8/test/cctest/compiler/test-basic-block-profiler.cc +++ b/deps/v8/test/cctest/compiler/test-basic-block-profiler.cc @@ -2,9 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// TODO(jochen): Remove this after the setting is turned on globally. -#define V8_IMMINENT_DEPRECATION_WARNINGS - #include "src/basic-block-profiler.h" #include "test/cctest/cctest.h" #include "test/cctest/compiler/codegen-tester.h" @@ -13,11 +10,10 @@ namespace v8 { namespace internal { namespace compiler { -typedef RawMachineAssembler::Label MLabel; - class BasicBlockProfilerTest : public RawMachineAssemblerTester<int32_t> { public: - BasicBlockProfilerTest() : RawMachineAssemblerTester<int32_t>(kMachInt32) { + BasicBlockProfilerTest() + : RawMachineAssemblerTester<int32_t>(MachineType::Int32()) { FLAG_turbo_profiling = true; } @@ -41,7 +37,7 @@ class BasicBlockProfilerTest : public RawMachineAssemblerTester<int32_t> { TEST(ProfileDiamond) { BasicBlockProfilerTest m; - MLabel blocka, blockb, end; + RawMachineLabel blocka, blockb, end; m.Branch(m.Parameter(0), &blocka, &blockb); m.Bind(&blocka); m.Goto(&end); @@ -81,12 +77,12 @@ TEST(ProfileDiamond) { TEST(ProfileLoop) { BasicBlockProfilerTest m; - MLabel header, body, end; + RawMachineLabel header, body, end; Node* one = m.Int32Constant(1); m.Goto(&header); m.Bind(&header); - Node* count = m.Phi(kMachInt32, m.Parameter(0), one); + Node* count = m.Phi(MachineRepresentation::kWord32, m.Parameter(0), one); m.Branch(count, &body, &end); m.Bind(&body); |