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

Side by Side Diff: test/cctest/compiler/graph-builder-tester.h

Issue 2122853002: Implement UnaligedLoad and UnaligedStore turbofan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Nits. Fixes some errors Created 4 years, 5 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
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/cctest/compiler/test-run-load-store.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 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
7 7
8 #include "src/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/instruction-selector.h" 9 #include "src/compiler/instruction-selector.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
11 #include "src/compiler/machine-operator.h" 11 #include "src/compiler/machine-operator.h"
12 #include "src/compiler/operator-properties.h" 12 #include "src/compiler/operator-properties.h"
13 #include "src/compiler/pipeline.h" 13 #include "src/compiler/pipeline.h"
14 #include "src/compiler/simplified-operator.h" 14 #include "src/compiler/simplified-operator.h"
15 #include "test/cctest/cctest.h" 15 #include "test/cctest/cctest.h"
16 #include "test/cctest/compiler/call-tester.h" 16 #include "test/cctest/compiler/call-tester.h"
17 17
18 namespace v8 { 18 namespace v8 {
19 namespace internal { 19 namespace internal {
20 namespace compiler { 20 namespace compiler {
21 21
22 class GraphAndBuilders { 22 class GraphAndBuilders {
23 public: 23 public:
24 explicit GraphAndBuilders(Zone* zone) 24 explicit GraphAndBuilders(Zone* zone)
25 : main_graph_(new (zone) Graph(zone)), 25 : main_graph_(new (zone) Graph(zone)),
26 main_common_(zone), 26 main_common_(zone),
27 main_machine_(zone, MachineType::PointerRepresentation(), 27 main_machine_(zone, MachineType::PointerRepresentation(),
28 InstructionSelector::SupportedMachineOperatorFlags()), 28 InstructionSelector::SupportedMachineOperatorFlags(),
29 InstructionSelector::AlignmentRequirements()),
29 main_simplified_(zone) {} 30 main_simplified_(zone) {}
30 31
31 Graph* graph() const { return main_graph_; } 32 Graph* graph() const { return main_graph_; }
32 Zone* zone() const { return graph()->zone(); } 33 Zone* zone() const { return graph()->zone(); }
33 CommonOperatorBuilder* common() { return &main_common_; } 34 CommonOperatorBuilder* common() { return &main_common_; }
34 MachineOperatorBuilder* machine() { return &main_machine_; } 35 MachineOperatorBuilder* machine() { return &main_machine_; }
35 SimplifiedOperatorBuilder* simplified() { return &main_simplified_; } 36 SimplifiedOperatorBuilder* simplified() { return &main_simplified_; }
36 37
37 protected: 38 protected:
38 // Prefixed with main_ to avoid naming conflicts. 39 // Prefixed with main_ to avoid naming conflicts.
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Node* return_; 304 Node* return_;
304 Node** parameters_; 305 Node** parameters_;
305 MaybeHandle<Code> code_; 306 MaybeHandle<Code> code_;
306 }; 307 };
307 308
308 } // namespace compiler 309 } // namespace compiler
309 } // namespace internal 310 } // namespace internal
310 } // namespace v8 311 } // namespace v8
311 312
312 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 313 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/codegen-tester.h ('k') | test/cctest/compiler/test-run-load-store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698