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

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

Issue 1259203002: [turbofan] Implement tail calls with differing stack parameter counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bugs in frameless tail calls Created 5 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 num_general_registers_, num_double_registers_, num_double_registers_, 62 num_general_registers_, num_double_registers_, num_double_registers_,
63 general_register_names_, double_register_names_)); 63 general_register_names_, double_register_names_));
64 } 64 }
65 return config_.get(); 65 return config_.get();
66 } 66 }
67 67
68 68
69 InstructionSequence* InstructionSequenceTest::sequence() { 69 InstructionSequence* InstructionSequenceTest::sequence() {
70 if (sequence_ == nullptr) { 70 if (sequence_ == nullptr) {
71 sequence_ = new (zone()) 71 sequence_ = new (zone())
72 InstructionSequence(isolate(), zone(), &instruction_blocks_); 72 InstructionSequence(isolate(), zone(), &instruction_blocks_, nullptr);
73 } 73 }
74 return sequence_; 74 return sequence_;
75 } 75 }
76 76
77 77
78 void InstructionSequenceTest::StartLoop(int loop_blocks) { 78 void InstructionSequenceTest::StartLoop(int loop_blocks) {
79 CHECK(current_block_ == nullptr); 79 CHECK(current_block_ == nullptr);
80 if (!loop_blocks_.empty()) { 80 if (!loop_blocks_.empty()) {
81 CHECK(!loop_blocks_.back().loop_header_.IsValid()); 81 CHECK(!loop_blocks_.back().loop_header_.IsValid());
82 } 82 }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 492
493 493
494 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) { 494 Instruction* InstructionSequenceTest::AddInstruction(Instruction* instruction) {
495 sequence()->AddInstruction(instruction); 495 sequence()->AddInstruction(instruction);
496 return instruction; 496 return instruction;
497 } 497 }
498 498
499 } // namespace compiler 499 } // namespace compiler
500 } // namespace internal 500 } // namespace internal
501 } // namespace v8 501 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698