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

Unified Diff: src/mips/full-codegen-mips.cc

Issue 7042031: MIPS: Minor fixes to simulator and builtins-mips. (Closed)
Patch Set: Rebased on r7964, updated for recent commits. Created 9 years, 7 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index 8c26fb3301efb98d59b84e75e2c85a257cb0ce0c..6f0cd2a6be64eba63284980c49b8b6bef6dc6de5 100644
--- a/src/mips/full-codegen-mips.cc
+++ b/src/mips/full-codegen-mips.cc
@@ -566,19 +566,6 @@ void FullCodeGenerator::DoTest(Label* if_true,
Label* if_false,
Label* fall_through) {
if (CpuFeatures::IsSupported(FPU)) {
- CpuFeatures::Scope scope(FPU);
- // Emit the inlined tests assumed by the stub.
- __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
- __ Branch(if_false, eq, result_register(), Operand(at));
- __ LoadRoot(at, Heap::kTrueValueRootIndex);
- __ Branch(if_true, eq, result_register(), Operand(at));
- __ LoadRoot(at, Heap::kFalseValueRootIndex);
- __ Branch(if_false, eq, result_register(), Operand(at));
- STATIC_ASSERT(kSmiTag == 0);
- __ Branch(if_false, eq, result_register(), Operand(zero_reg));
- __ JumpIfSmi(result_register(), if_true);
-
- // Call the ToBoolean stub for all other cases.
ToBooleanStub stub(result_register());
__ CallStub(&stub);
__ mov(at, zero_reg);
@@ -589,8 +576,6 @@ void FullCodeGenerator::DoTest(Label* if_true,
__ CallRuntime(Runtime::kToBool, 1);
__ LoadRoot(at, Heap::kFalseValueRootIndex);
}
-
- // The stub returns nonzero for true.
Split(ne, v0, Operand(at), if_true, if_false, fall_through);
}
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698