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

Side by Side Diff: test/cctest/compiler/test-changes-lowering.cc

Issue 456333002: Move MachineRepresentation to machine-type.h and rename to MachineType in preparation for merging i… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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
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 <limits> 5 #include <limits>
6 6
7 #include "src/compiler/control-builders.h" 7 #include "src/compiler/control-builders.h"
8 #include "src/compiler/generic-node-inl.h" 8 #include "src/compiler/generic-node-inl.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
11 #include "src/compiler/simplified-lowering.h" 11 #include "src/compiler/simplified-lowering.h"
12 #include "src/compiler/simplified-node-factory.h" 12 #include "src/compiler/simplified-node-factory.h"
13 #include "src/compiler/typer.h" 13 #include "src/compiler/typer.h"
14 #include "src/compiler/verifier.h" 14 #include "src/compiler/verifier.h"
15 #include "src/execution.h" 15 #include "src/execution.h"
16 #include "src/parser.h" 16 #include "src/parser.h"
17 #include "src/rewriter.h" 17 #include "src/rewriter.h"
18 #include "src/scopes.h" 18 #include "src/scopes.h"
19 #include "test/cctest/cctest.h" 19 #include "test/cctest/cctest.h"
20 #include "test/cctest/compiler/codegen-tester.h" 20 #include "test/cctest/compiler/codegen-tester.h"
21 #include "test/cctest/compiler/graph-builder-tester.h" 21 #include "test/cctest/compiler/graph-builder-tester.h"
22 #include "test/cctest/compiler/value-helper.h" 22 #include "test/cctest/compiler/value-helper.h"
23 23
24 using namespace v8::internal; 24 using namespace v8::internal;
25 using namespace v8::internal::compiler; 25 using namespace v8::internal::compiler;
26 26
27 template <typename ReturnType> 27 template <typename ReturnType>
28 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { 28 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> {
29 public: 29 public:
30 explicit ChangesLoweringTester(MachineRepresentation p0 = kMachineLast) 30 explicit ChangesLoweringTester(MachineType p0 = kMachineLast)
31 : GraphBuilderTester<ReturnType>(p0), 31 : GraphBuilderTester<ReturnType>(p0),
32 typer(this->zone()), 32 typer(this->zone()),
33 source_positions(this->graph()), 33 source_positions(this->graph()),
34 jsgraph(this->graph(), this->common(), &typer), 34 jsgraph(this->graph(), this->common(), &typer),
35 lowering(&jsgraph, &source_positions), 35 lowering(&jsgraph, &source_positions),
36 function(Handle<JSFunction>::null()) {} 36 function(Handle<JSFunction>::null()) {}
37 37
38 Typer typer; 38 Typer typer;
39 SourcePositionTable source_positions; 39 SourcePositionTable source_positions;
40 JSGraph jsgraph; 40 JSGraph jsgraph;
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 388
389 if (TODO_FLOAT64_TO_TAGGED && Pipeline::SupportedTarget()) { 389 if (TODO_FLOAT64_TO_TAGGED && Pipeline::SupportedTarget()) {
390 FOR_FLOAT64_INPUTS(i) { 390 FOR_FLOAT64_INPUTS(i) {
391 input = *i; 391 input = *i;
392 SimulateFullSpace(CcTest::heap()->new_space()); 392 SimulateFullSpace(CcTest::heap()->new_space());
393 Object* result = t.CallWithPotentialGC<Object>(); 393 Object* result = t.CallWithPotentialGC<Object>();
394 t.CheckNumber(input, result); 394 t.CheckNumber(input, result);
395 } 395 }
396 } 396 }
397 } 397 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/instruction-selector-tester.h ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698