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

Side by Side Diff: test/unittests/compiler/instruction-sequence-unittest.cc

Issue 805263003: [turbofan] move assembly order to InstructionBlock (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/test-scheduler.cc ('k') | no next file » | 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 #include "src/base/utils/random-number-generator.h" 5 #include "src/base/utils/random-number-generator.h"
6 #include "src/compiler/pipeline.h" 6 #include "src/compiler/pipeline.h"
7 #include "test/unittests/compiler/instruction-sequence-unittest.h" 7 #include "test/unittests/compiler/instruction-sequence-unittest.h"
8 #include "test/unittests/test-utils.h" 8 #include "test/unittests/test-utils.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 loop_data.loop_header_ = rpo; 399 loop_data.loop_header_ = rpo;
400 } else { 400 } else {
401 // This is a loop body. 401 // This is a loop body.
402 CHECK_NE(0, loop_data.expected_blocks_); 402 CHECK_NE(0, loop_data.expected_blocks_);
403 // TODO(dcarney): handle nested loops. 403 // TODO(dcarney): handle nested loops.
404 loop_data.expected_blocks_--; 404 loop_data.expected_blocks_--;
405 loop_header = loop_data.loop_header_; 405 loop_header = loop_data.loop_header_;
406 } 406 }
407 } 407 }
408 // Construct instruction block. 408 // Construct instruction block.
409 auto instruction_block = new (zone()) InstructionBlock( 409 auto instruction_block = new (zone())
410 zone(), block_id, rpo, rpo, loop_header, loop_end, false); 410 InstructionBlock(zone(), block_id, rpo, loop_header, loop_end, false);
411 instruction_blocks_.push_back(instruction_block); 411 instruction_blocks_.push_back(instruction_block);
412 current_block_ = instruction_block; 412 current_block_ = instruction_block;
413 sequence()->StartBlock(rpo); 413 sequence()->StartBlock(rpo);
414 return instruction_block; 414 return instruction_block;
415 } 415 }
416 416
417 417
418 void InstructionSequenceTest::WireBlocks() { 418 void InstructionSequenceTest::WireBlocks() {
419 CHECK_EQ(nullptr, current_block()); 419 CHECK_EQ(nullptr, current_block());
420 CHECK(instruction_blocks_.size() == completions_.size()); 420 CHECK(instruction_blocks_.size() == completions_.size());
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 464
465 int InstructionSequenceTest::AddInstruction(int instruction_index, 465 int InstructionSequenceTest::AddInstruction(int instruction_index,
466 Instruction* instruction) { 466 Instruction* instruction) {
467 sequence()->AddInstruction(instruction); 467 sequence()->AddInstruction(instruction);
468 return instruction_index; 468 return instruction_index;
469 } 469 }
470 470
471 } // namespace compiler 471 } // namespace compiler
472 } // namespace internal 472 } // namespace internal
473 } // namespace v8 473 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-scheduler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698