diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-09-12 15:48:22 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-09-12 15:48:23 +0000 |
commit | 6ee9a333553b7e7268b5bdab14974475ff385106 (patch) | |
tree | ed38b36182bfb48bf8f5aed5c7f3fd78aaea2c48 /compiler/optimizing/code_generator_mips.cc | |
parent | a5d718a9f8ef51e41a1485a0f6ab201aec4c0c82 (diff) | |
parent | 7aa7560683626c7893011271c241b3265ded1dc3 (diff) |
Merge "Use implicit null checks inside try blocks."
Diffstat (limited to 'compiler/optimizing/code_generator_mips.cc')
-rw-r--r-- | compiler/optimizing/code_generator_mips.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/compiler/optimizing/code_generator_mips.cc b/compiler/optimizing/code_generator_mips.cc index f07f8a0d91..fdfc5514f8 100644 --- a/compiler/optimizing/code_generator_mips.cc +++ b/compiler/optimizing/code_generator_mips.cc @@ -5075,14 +5075,7 @@ void InstructionCodeGeneratorMIPS::VisitBooleanNot(HBooleanNot* instruction) { } void LocationsBuilderMIPS::VisitNullCheck(HNullCheck* instruction) { - LocationSummary::CallKind call_kind = instruction->CanThrowIntoCatchBlock() - ? LocationSummary::kCallOnSlowPath - : LocationSummary::kNoCall; - LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction, call_kind); - locations->SetInAt(0, Location::RequiresRegister()); - if (instruction->HasUses()) { - locations->SetOut(Location::SameAsFirstInput()); - } + codegen_->CreateNullCheckLocations(instruction); } void CodeGeneratorMIPS::GenerateImplicitNullCheck(HNullCheck* instruction) { |