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

Side by Side Diff: test/cctest/compiler/graph-builder-tester.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 "test/cctest/compiler/graph-builder-tester.h" 5 #include "test/cctest/compiler/graph-builder-tester.h"
6 #include "src/compiler/pipeline.h" 6 #include "src/compiler/pipeline.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 namespace compiler { 10 namespace compiler {
(...skipping 24 matching lines...) Expand all
35 Zone* zone = graph_->zone(); 35 Zone* zone = graph_->zone();
36 CompilationInfo info(zone->isolate(), zone); 36 CompilationInfo info(zone->isolate(), zone);
37 Linkage linkage(&info, call_descriptor_builder_->BuildCallDescriptor(zone)); 37 Linkage linkage(&info, call_descriptor_builder_->BuildCallDescriptor(zone));
38 Pipeline pipeline(&info); 38 Pipeline pipeline(&info);
39 code_ = pipeline.GenerateCodeForMachineGraph(&linkage, graph_); 39 code_ = pipeline.GenerateCodeForMachineGraph(&linkage, graph_);
40 } 40 }
41 return code_.ToHandleChecked()->entry(); 41 return code_.ToHandleChecked()->entry();
42 } 42 }
43 43
44 44
45 void MachineCallHelper::VerifyParameters( 45 void MachineCallHelper::VerifyParameters(int parameter_count,
46 int parameter_count, MachineRepresentation* parameter_types) { 46 MachineType* parameter_types) {
47 CHECK_EQ(this->parameter_count(), parameter_count); 47 CHECK_EQ(this->parameter_count(), parameter_count);
48 const MachineRepresentation* expected_types = 48 const MachineType* expected_types =
49 call_descriptor_builder_->parameter_types(); 49 call_descriptor_builder_->parameter_types();
50 for (int i = 0; i < parameter_count; i++) { 50 for (int i = 0; i < parameter_count; i++) {
51 CHECK_EQ(expected_types[i], parameter_types[i]); 51 CHECK_EQ(expected_types[i], parameter_types[i]);
52 } 52 }
53 } 53 }
54 54
55 55
56 Node* MachineCallHelper::Parameter(int offset) { 56 Node* MachineCallHelper::Parameter(int offset) {
57 DCHECK_NE(NULL, parameters_); 57 DCHECK_NE(NULL, parameters_);
58 DCHECK(0 <= offset && offset < parameter_count()); 58 DCHECK(0 <= offset && offset < parameter_count());
59 return parameters_[offset]; 59 return parameters_[offset];
60 } 60 }
61 61
62 } // namespace compiler 62 } // namespace compiler
63 } // namespace internal 63 } // namespace internal
64 } // namespace v8 64 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/graph-builder-tester.h ('k') | test/cctest/compiler/instruction-selector-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698