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/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
11 #include "src/compiler/typer.h" | 11 #include "src/compiler/typer.h" |
12 #include "src/types.h" | 12 #include "src/types.h" |
13 #include "test/cctest/cctest.h" | 13 #include "test/cctest/cctest.h" |
14 #include "test/cctest/compiler/value-helper.h" | 14 #include "test/cctest/compiler/value-helper.h" |
15 | 15 |
16 using namespace v8::internal; | 16 namespace v8 { |
17 using namespace v8::internal::compiler; | 17 namespace internal { |
| 18 namespace compiler { |
18 | 19 |
19 class JSCacheTesterHelper { | 20 class JSCacheTesterHelper { |
20 protected: | 21 protected: |
21 JSCacheTesterHelper(Isolate* isolate, Zone* zone) | 22 JSCacheTesterHelper(Isolate* isolate, Zone* zone) |
22 : main_graph_(zone), | 23 : main_graph_(zone), |
23 main_common_(zone), | 24 main_common_(zone), |
24 main_javascript_(zone), | 25 main_javascript_(zone), |
25 main_typer_(isolate, &main_graph_), | 26 main_typer_(isolate, &main_graph_), |
26 main_machine_(zone) {} | 27 main_machine_(zone) {} |
27 Graph main_graph_; | 28 Graph main_graph_; |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 T.Constant(1.11), | 468 T.Constant(1.11), |
468 T.ExternalConstant(ExternalReference::address_of_one_half())}; | 469 T.ExternalConstant(ExternalReference::address_of_one_half())}; |
469 | 470 |
470 NodeVector nodes(T.main_zone()); | 471 NodeVector nodes(T.main_zone()); |
471 T.GetCachedNodes(&nodes); | 472 T.GetCachedNodes(&nodes); |
472 | 473 |
473 for (size_t i = 0; i < arraysize(constants); i++) { | 474 for (size_t i = 0; i < arraysize(constants); i++) { |
474 CHECK(Contains(&nodes, constants[i])); | 475 CHECK(Contains(&nodes, constants[i])); |
475 } | 476 } |
476 } | 477 } |
| 478 |
| 479 } // namespace compiler |
| 480 } // namespace internal |
| 481 } // namespace v8 |
OLD | NEW |