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

Side by Side Diff: test/cctest/compiler/test-structured-ifbuilder-fuzzer.cc

Issue 515173002: Add MachineSignature, which is an encapsulation of the machine types for parameters and return valu… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 <string> 5 #include <string>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 #include "test/cctest/cctest.h" 8 #include "test/cctest/cctest.h"
9 9
10 #include "src/base/utils/random-number-generator.h" 10 #include "src/base/utils/random-number-generator.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 Node* root_; 260 Node* root_;
261 Node* current_node_; 261 Node* current_node_;
262 Expression* current_expression_; 262 Expression* current_expression_;
263 DISALLOW_COPY_AND_ASSIGN(IfBuilderModel); 263 DISALLOW_COPY_AND_ASSIGN(IfBuilderModel);
264 }; 264 };
265 265
266 266
267 class IfBuilderGenerator : public StructuredMachineAssemblerTester<int32_t> { 267 class IfBuilderGenerator : public StructuredMachineAssemblerTester<int32_t> {
268 public: 268 public:
269 IfBuilderGenerator() 269 IfBuilderGenerator()
270 : StructuredMachineAssemblerTester<int32_t>( 270 : StructuredMachineAssemblerTester<int32_t>(kMachPtr, kMachPtr),
271 MachineOperatorBuilder::pointer_rep(),
272 MachineOperatorBuilder::pointer_rep()),
273 var_(NewVariable(Int32Constant(kInitalVar))), 271 var_(NewVariable(Int32Constant(kInitalVar))),
274 c_(this), 272 c_(this),
275 m_(this->zone()), 273 m_(this->zone()),
276 one_(Int32Constant(1)), 274 one_(Int32Constant(1)),
277 offset_(0) {} 275 offset_(0) {}
278 276
279 static void GenerateExpression(v8::base::RandomNumberGenerator* rng, 277 static void GenerateExpression(v8::base::RandomNumberGenerator* rng,
280 std::vector<char>* v, int n_vars) { 278 std::vector<char>* v, int n_vars) {
281 int depth = 1; 279 int depth = 1;
282 v->push_back('('); 280 v->push_back('(');
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 for (int i = 0; i < n_ifs * n_vars + 10; i++) { 656 for (int i = 0; i < n_ifs * n_vars + 10; i++) {
659 IfBuilderGenerator m; 657 IfBuilderGenerator m;
660 m.ParseRandomIfThenElse(&rng, n_ifs, n_vars); 658 m.ParseRandomIfThenElse(&rng, n_ifs, n_vars);
661 m.RunRandom(&rng); 659 m.RunRandom(&rng);
662 } 660 }
663 } 661 }
664 } 662 }
665 } 663 }
666 664
667 #endif 665 #endif
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-simplified-lowering.cc ('k') | test/cctest/compiler/test-structured-machine-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698