| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // TODO(jochen): Remove this after the setting is turned on globally. | |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | |
| 7 | |
| 8 #include "src/basic-block-profiler.h" | 5 #include "src/basic-block-profiler.h" |
| 9 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.h" |
| 10 #include "test/cctest/compiler/codegen-tester.h" | 7 #include "test/cctest/compiler/codegen-tester.h" |
| 11 | 8 |
| 12 namespace v8 { | 9 namespace v8 { |
| 13 namespace internal { | 10 namespace internal { |
| 14 namespace compiler { | 11 namespace compiler { |
| 15 | 12 |
| 16 class BasicBlockProfilerTest : public RawMachineAssemblerTester<int32_t> { | 13 class BasicBlockProfilerTest : public RawMachineAssemblerTester<int32_t> { |
| 17 public: | 14 public: |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 m.ResetCounts(); | 102 m.ResetCounts(); |
| 106 CHECK_EQ(1, m.Call(static_cast<int>(runs[i]))); | 103 CHECK_EQ(1, m.Call(static_cast<int>(runs[i]))); |
| 107 uint32_t expected[] = {1, runs[i] + 1, runs[i], 1}; | 104 uint32_t expected[] = {1, runs[i] + 1, runs[i], 1}; |
| 108 m.Expect(arraysize(expected), expected); | 105 m.Expect(arraysize(expected), expected); |
| 109 } | 106 } |
| 110 } | 107 } |
| 111 | 108 |
| 112 } // namespace compiler | 109 } // namespace compiler |
| 113 } // namespace internal | 110 } // namespace internal |
| 114 } // namespace v8 | 111 } // namespace v8 |
| OLD | NEW |