Commit e3a269b7 authored by verwaest@chromium.org's avatar verwaest@chromium.org

Remove ASSERT since there are tons of different ASSIGN variants

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
parent 1d55a634
......@@ -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()));
......
......@@ -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()));
......
......@@ -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.
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment