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

Side by Side Diff: test/cctest/compiler/test-instruction.cc

Issue 484643002: Version 3.28.71.3 (merged r23081) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.28
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
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/machine-operator.h" 12 #include "src/compiler/machine-operator.h"
13 #include "src/compiler/node.h" 13 #include "src/compiler/node.h"
14 #include "src/compiler/operator.h" 14 #include "src/compiler/operator.h"
15 #include "src/compiler/schedule.h" 15 #include "src/compiler/schedule.h"
16 #include "src/compiler/scheduler.h" 16 #include "src/compiler/scheduler.h"
17 #include "src/lithium.h" 17 #include "src/lithium.h"
18 18
19 using namespace v8::internal; 19 using namespace v8::internal;
20 using namespace v8::internal::compiler; 20 using namespace v8::internal::compiler;
21 21
22 typedef v8::internal::compiler::Instruction TestInstr; 22 typedef v8::internal::compiler::Instruction TestInstr;
23 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; 23 typedef v8::internal::compiler::InstructionSequence TestInstrSeq;
24 24
25 // A testing helper for the register code abstraction. 25 // A testing helper for the register code abstraction.
26 class InstructionTester : public HandleAndZoneScope { 26 class InstructionTester : public HandleAndZoneScope {
27 public: // We're all friends here. 27 public: // We're all friends here.
28 explicit InstructionTester() 28 InstructionTester()
29 : isolate(main_isolate()), 29 : isolate(main_isolate()),
30 graph(zone()), 30 graph(zone()),
31 schedule(zone()), 31 schedule(zone()),
32 info(static_cast<HydrogenCodeStub*>(NULL), main_isolate()), 32 info(static_cast<HydrogenCodeStub*>(NULL), main_isolate()),
33 linkage(&info), 33 linkage(&info),
34 common(zone()), 34 common(zone()),
35 machine(zone(), kMachineWord32), 35 machine(zone(), kMachineWord32),
36 code(NULL) {} 36 code(NULL) {}
37 37
38 ~InstructionTester() { delete code; } 38 ~InstructionTester() { delete code; }
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 CHECK_EQ(inputs[z], m->InputAt(z)); 341 CHECK_EQ(inputs[z], m->InputAt(z));
342 } 342 }
343 343
344 for (size_t z = 0; z < k; z++) { 344 for (size_t z = 0; z < k; z++) {
345 CHECK_EQ(temps[z], m->TempAt(z)); 345 CHECK_EQ(temps[z], m->TempAt(z));
346 } 346 }
347 } 347 }
348 } 348 }
349 } 349 }
350 } 350 }
OLDNEW
« no previous file with comments | « test/cctest/cctest.h ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698