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. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
11 #include "src/compiler/node-properties.h" | 11 #include "src/compiler/node-properties.h" |
12 #include "src/compiler/opcodes.h" | 12 #include "src/compiler/opcodes.h" |
13 #include "src/compiler/operator-properties.h" | 13 #include "src/compiler/operator-properties.h" |
14 #include "src/compiler/simplified-operator.h" | 14 #include "src/compiler/simplified-operator.h" |
15 #include "src/compiler/typer.h" | 15 #include "src/compiler/typer.h" |
16 #include "test/cctest/cctest.h" | 16 #include "test/cctest/cctest.h" |
17 | 17 |
18 using namespace v8::internal; | 18 namespace v8 { |
19 using namespace v8::internal::compiler; | 19 namespace internal { |
| 20 namespace compiler { |
20 | 21 |
21 #ifndef TEST_WITH_STRONG | 22 #ifndef TEST_WITH_STRONG |
22 #define TEST_WITH_STRONG(Name) \ | 23 #define TEST_WITH_STRONG(Name) \ |
23 static void Test##Name(); \ | 24 static void Test##Name(); \ |
24 static void TestWithStrong##Name(LanguageMode language_mode); \ | 25 static void TestWithStrong##Name(LanguageMode language_mode); \ |
25 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \ | 26 CcTest register_test_##Name(Test##Name, __FILE__, #Name, NULL, true, true); \ |
26 static void Test##Name() { \ | 27 static void Test##Name() { \ |
27 TestWithStrong##Name(LanguageMode::SLOPPY); \ | 28 TestWithStrong##Name(LanguageMode::SLOPPY); \ |
28 TestWithStrong##Name(LanguageMode::STRONG); \ | 29 TestWithStrong##Name(LanguageMode::STRONG); \ |
29 } \ | 30 } \ |
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 CHECK_EQ(p1, r->InputAt(0)); | 1256 CHECK_EQ(p1, r->InputAt(0)); |
1256 CHECK_EQ(p0, r->InputAt(1)); | 1257 CHECK_EQ(p0, r->InputAt(1)); |
1257 } else { | 1258 } else { |
1258 CHECK_EQ(p0, r->InputAt(0)); | 1259 CHECK_EQ(p0, r->InputAt(0)); |
1259 CHECK_EQ(p1, r->InputAt(1)); | 1260 CHECK_EQ(p1, r->InputAt(1)); |
1260 } | 1261 } |
1261 } | 1262 } |
1262 } | 1263 } |
1263 } | 1264 } |
1264 } | 1265 } |
| 1266 |
| 1267 } // namespace compiler |
| 1268 } // namespace internal |
| 1269 } // namespace v8 |
OLD | NEW |