Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: test/cctest/compiler/test-js-constant-cache.cc

Issue 1424943004: Move compiler cctests into v8::internal::compiler namespace. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-instruction.cc ('k') | test/cctest/compiler/test-js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698