From 962c25bb49c1000fa0c2095d9aa73d5ccd2ca129 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Wed, 15 Jun 2011 10:07:10 +0000 Subject: [PATCH] MIPS: port First steps towards better code generation for LBranch. Ported r8274 (03e42c0) BUG= TEST= Review URL: http://codereview.chromium.org//7170006 Patch from Paul Lind . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8292 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/full-codegen-mips.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc index 3a7671d..73b3984 100644 --- a/src/mips/full-codegen-mips.cc +++ b/src/mips/full-codegen-mips.cc @@ -386,7 +386,7 @@ void FullCodeGenerator::TestContext::Plug(Slot* slot) const { // For simplicity we always test the accumulator register. codegen()->Move(result_register(), slot); codegen()->PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); - codegen()->DoTest(true_label_, false_label_, fall_through_); + codegen()->DoTest(this); } @@ -420,7 +420,7 @@ void FullCodeGenerator::TestContext::Plug(Heap::RootListIndex index) const { if (true_label_ != fall_through_) __ Branch(true_label_); } else { __ LoadRoot(result_register(), index); - codegen()->DoTest(true_label_, false_label_, fall_through_); + codegen()->DoTest(this); } } @@ -467,7 +467,7 @@ void FullCodeGenerator::TestContext::Plug(Handle lit) const { } else { // For simplicity we always test the accumulator register. __ li(result_register(), Operand(lit)); - codegen()->DoTest(true_label_, false_label_, fall_through_); + codegen()->DoTest(this); } } @@ -503,7 +503,7 @@ void FullCodeGenerator::TestContext::DropAndPlug(int count, __ Drop(count); __ Move(result_register(), reg); codegen()->PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); - codegen()->DoTest(true_label_, false_label_, fall_through_); + codegen()->DoTest(this); } @@ -581,7 +581,8 @@ void FullCodeGenerator::TestContext::Plug(bool flag) const { } -void FullCodeGenerator::DoTest(Label* if_true, +void FullCodeGenerator::DoTest(Expression* condition, + Label* if_true, Label* if_false, Label* fall_through) { if (CpuFeatures::IsSupported(FPU)) { -- 2.7.4