Reviewers: danno, Sven Panne, Paul Lind, kisg, palfia, dusmil,

Description:
MIPS: Replaced unreachable code in DoStoreNamedField by an assertion.

Port r20194 (2dfda0f)

Original commit message:
This is part of the effort to assign an environment if and only if we can deopt.

Removed some related dead code on the way.

BUG=

Please review this at https://codereview.chromium.org/210023004/

SVN Base: git://github.com/paul99/v8m-rb.git@gbl

Affected files (+3, -0 lines):
  M src/mips/lithium-codegen-mips.cc


Index: src/mips/lithium-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index b1919ba54e431b07abed8bfdb3986422cc343816..ee70f67f1d364e57435a082ec9a261df5ba8fb58 100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -4036,6 +4036,9 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
       instr->hydrogen()->value()->IsHeapObject()
           ? OMIT_SMI_CHECK : INLINE_SMI_CHECK;

+  ASSERT(!(representation.IsSmi() &&
+           instr->value()->IsConstantOperand() &&
+           !IsSmi(LConstantOperand::cast(instr->value()))));
   if (representation.IsHeapObject()) {
     Register value = ToRegister(instr->value());
     if (!instr->hydrogen()->value()->type().IsHeapObject()) {


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to