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

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

Issue 2175233003: Replace SmartPointer<T> with unique_ptr<T> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@smart-array
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: test/unittests/compiler/instruction-sequence-unittest.cc
diff --git a/test/unittests/compiler/instruction-sequence-unittest.cc b/test/unittests/compiler/instruction-sequence-unittest.cc
index 121163226d6da6f1da579f6db8fbd2a9b7c3fb19..101a9e3a02f2fd0faa874c0dcb5484401f122f87 100644
--- a/test/unittests/compiler/instruction-sequence-unittest.cc
+++ b/test/unittests/compiler/instruction-sequence-unittest.cc
@@ -55,7 +55,7 @@ InstructionSequenceTest::InstructionSequenceTest()
void InstructionSequenceTest::SetNumRegs(int num_general_registers,
int num_double_registers) {
- CHECK(config_.is_empty());
+ CHECK(!config_);
CHECK(instructions_.empty());
CHECK(instruction_blocks_.empty());
num_general_registers_ = num_general_registers;
@@ -64,8 +64,8 @@ void InstructionSequenceTest::SetNumRegs(int num_general_registers,
RegisterConfiguration* InstructionSequenceTest::config() {
- if (config_.is_empty()) {
- config_.Reset(new RegisterConfiguration(
+ if (!config_) {
+ config_.reset(new RegisterConfiguration(
num_general_registers_, num_double_registers_, num_general_registers_,
num_double_registers_, allocatable_codes, allocatable_double_codes,
kSimpleFPAliasing ? RegisterConfiguration::OVERLAP

Powered by Google App Engine
This is Rietveld 408576698