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

Side by Side Diff: test/cctest/compiler/test-instruction.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/compiler/code-generator.h" 8 #include "src/compiler/code-generator.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
11 #include "src/compiler/instruction.h" 11 #include "src/compiler/instruction.h"
12 #include "src/compiler/linkage.h" 12 #include "src/compiler/linkage.h"
13 #include "src/compiler/machine-operator.h" 13 #include "src/compiler/machine-operator.h"
14 #include "src/compiler/node.h" 14 #include "src/compiler/node.h"
15 #include "src/compiler/operator.h" 15 #include "src/compiler/operator.h"
16 #include "src/compiler/schedule.h" 16 #include "src/compiler/schedule.h"
17 #include "src/compiler/scheduler.h" 17 #include "src/compiler/scheduler.h"
18 #include "test/cctest/cctest.h" 18 #include "test/cctest/cctest.h"
19 19
20 using namespace v8::internal; 20 namespace v8 {
21 using namespace v8::internal::compiler; 21 namespace internal {
22 namespace compiler {
22 23
23 typedef v8::internal::compiler::Instruction TestInstr; 24 typedef v8::internal::compiler::Instruction TestInstr;
24 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; 25 typedef v8::internal::compiler::InstructionSequence TestInstrSeq;
25 26
26 // A testing helper for the register code abstraction. 27 // A testing helper for the register code abstraction.
27 class InstructionTester : public HandleAndZoneScope { 28 class InstructionTester : public HandleAndZoneScope {
28 public: // We're all friends here. 29 public: // We're all friends here.
29 InstructionTester() 30 InstructionTester()
30 : graph(zone()), 31 : graph(zone()),
31 schedule(zone()), 32 schedule(zone()),
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 CHECK(inputs[z].Equals(*m->InputAt(z))); 316 CHECK(inputs[z].Equals(*m->InputAt(z)));
316 } 317 }
317 318
318 for (size_t z = 0; z < k; z++) { 319 for (size_t z = 0; z < k; z++) {
319 CHECK(temps[z].Equals(*m->TempAt(z))); 320 CHECK(temps[z].Equals(*m->TempAt(z)));
320 } 321 }
321 } 322 }
322 } 323 }
323 } 324 }
324 } 325 }
326
327 } // namespace compiler
328 } // namespace internal
329 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-graph-visualizer.cc ('k') | test/cctest/compiler/test-js-constant-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698