Remove ASSERT since there are tons of different ASSIGN variants
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Jul 2014 14:42:33 +0000 (14:42 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 14 Jul 2014 14:42:33 +0000 (14:42 +0000)
BUG=
R=rossberg@chromium.org

Review URL: https://codereview.chromium.org/385173009

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22382 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/full-codegen-arm.cc
src/arm64/full-codegen-arm64.cc
src/ia32/full-codegen-ia32.cc
src/x64/full-codegen-x64.cc

index e64b40f..ede1230 100644 (file)
@@ -2502,8 +2502,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, Token::Value op) {
 
   } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
     if (var->IsLookupSlot()) {
-      ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR ||
-             op == Token::ASSIGN_ADD);
       // Assignment to var.
       __ push(r0);  // Value.
       __ mov(r1, Operand(var->name()));
index b3539e6..7675916 100644 (file)
@@ -2185,8 +2185,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var,
 
   } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
     if (var->IsLookupSlot()) {
-      ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR ||
-             op == Token::ASSIGN_ADD);
       // Assignment to var.
       __ Mov(x11, Operand(var->name()));
       __ Mov(x10, Smi::FromInt(strict_mode()));
index 8ab2d30..0dc3254 100644 (file)
@@ -2428,8 +2428,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var,
 
   } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
     if (var->IsLookupSlot()) {
-      ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR ||
-             op == Token::ASSIGN_ADD);
       // Assignment to var.
       __ push(eax);  // Value.
       __ push(esi);  // Context.
index 625ce1a..1b33848 100644 (file)
@@ -2426,8 +2426,6 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var,
 
   } else if (!var->is_const_mode() || op == Token::INIT_CONST) {
     if (var->IsLookupSlot()) {
-      ASSERT(op == Token::ASSIGN || op == Token::INIT_VAR ||
-             op == Token::ASSIGN_ADD);
       // Assignment to var.
       __ Push(rax);  // Value.
       __ Push(rsi);  // Context.