Fixed use of 'overwrite' flag for unary minus expressions.
Review URL: http://codereview.chromium.org/276018 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3063 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a9880bde4d
commit
8d47ca4ed2
@ -5341,8 +5341,8 @@ void CodeGenerator::VisitUnaryOperation(UnaryOperation* node) {
|
||||
switch (op) {
|
||||
case Token::SUB: {
|
||||
bool overwrite =
|
||||
(node->AsBinaryOperation() != NULL &&
|
||||
node->AsBinaryOperation()->ResultOverwriteAllowed());
|
||||
(node->expression()->AsBinaryOperation() != NULL &&
|
||||
node->expression()->AsBinaryOperation()->ResultOverwriteAllowed());
|
||||
UnarySubStub stub(overwrite);
|
||||
// TODO(1222589): remove dependency of TOS being cached inside stub
|
||||
Result operand = frame_->Pop();
|
||||
|
@ -3092,8 +3092,8 @@ void CodeGenerator::VisitUnaryOperation(UnaryOperation* node) {
|
||||
|
||||
case Token::SUB: {
|
||||
bool overwrite =
|
||||
(node->AsBinaryOperation() != NULL &&
|
||||
node->AsBinaryOperation()->ResultOverwriteAllowed());
|
||||
(node->expression()->AsBinaryOperation() != NULL &&
|
||||
node->expression()->AsBinaryOperation()->ResultOverwriteAllowed());
|
||||
UnarySubStub stub(overwrite);
|
||||
// TODO(1222589): remove dependency of TOS being cached inside stub
|
||||
Result operand = frame_->Pop();
|
||||
|
Loading…
Reference in New Issue
Block a user