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

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

Issue 1423923003: Removed the dependency of the test RunComputedCodeObject from RawMachineAssemblerTester. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: GraphBuilderTester is used now instead of copying the code from RawMachineAssemblerTester 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
« no previous file with comments | « no previous file | test/cctest/compiler/test-run-machops.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/v8.h" 8 #include "src/v8.h"
9 #include "test/cctest/cctest.h" 9 #include "test/cctest/cctest.h"
10 10
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Node* n5, Node* n6) { 222 Node* n5, Node* n6) {
223 Node* nodes[] = {n1, n2, n3, n4, n5, n6}; 223 Node* nodes[] = {n1, n2, n3, n4, n5, n6};
224 return MakeNode(op, arraysize(nodes), nodes); 224 return MakeNode(op, arraysize(nodes), nodes);
225 } 225 }
226 226
227 Node* NewNode(const Operator* op, int value_input_count, 227 Node* NewNode(const Operator* op, int value_input_count,
228 Node** value_inputs) { 228 Node** value_inputs) {
229 return MakeNode(op, value_input_count, value_inputs); 229 return MakeNode(op, value_input_count, value_inputs);
230 } 230 }
231 231
232 Handle<Code> GetCode() {
233 Generate();
234 return code_.ToHandleChecked();
235 }
236
232 protected: 237 protected:
233 Node* MakeNode(const Operator* op, int value_input_count, 238 Node* MakeNode(const Operator* op, int value_input_count,
234 Node** value_inputs) { 239 Node** value_inputs) {
235 DCHECK(op->ValueInputCount() == value_input_count); 240 DCHECK(op->ValueInputCount() == value_input_count);
236 241
237 DCHECK(!OperatorProperties::HasContextInput(op)); 242 DCHECK(!OperatorProperties::HasContextInput(op));
238 DCHECK_EQ(0, OperatorProperties::GetFrameStateInputCount(op)); 243 DCHECK_EQ(0, OperatorProperties::GetFrameStateInputCount(op));
239 bool has_control = op->ControlInputCount() == 1; 244 bool has_control = op->ControlInputCount() == 1;
240 bool has_effect = op->EffectInputCount() == 1; 245 bool has_effect = op->EffectInputCount() == 1;
241 246
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 Node* return_; 305 Node* return_;
301 Node** parameters_; 306 Node** parameters_;
302 MaybeHandle<Code> code_; 307 MaybeHandle<Code> code_;
303 }; 308 };
304 309
305 } // namespace compiler 310 } // namespace compiler
306 } // namespace internal 311 } // namespace internal
307 } // namespace v8 312 } // namespace v8
308 313
309 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 314 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698