| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 int32_t right_operand = ToInteger32(LConstantOperand::cast(right)); | 1400 int32_t right_operand = ToInteger32(LConstantOperand::cast(right)); |
| 1401 switch (instr->op()) { | 1401 switch (instr->op()) { |
| 1402 case Token::BIT_AND: | 1402 case Token::BIT_AND: |
| 1403 __ andl(ToRegister(left), Immediate(right_operand)); | 1403 __ andl(ToRegister(left), Immediate(right_operand)); |
| 1404 break; | 1404 break; |
| 1405 case Token::BIT_OR: | 1405 case Token::BIT_OR: |
| 1406 __ orl(ToRegister(left), Immediate(right_operand)); | 1406 __ orl(ToRegister(left), Immediate(right_operand)); |
| 1407 break; | 1407 break; |
| 1408 case Token::BIT_XOR: | 1408 case Token::BIT_XOR: |
| 1409 if (right_operand == int32_t(~0)) { | 1409 if (right_operand == int32_t(~0)) { |
| 1410 __ not_(ToRegister(left)); | 1410 __ notl(ToRegister(left)); |
| 1411 } else { | 1411 } else { |
| 1412 __ xorl(ToRegister(left), Immediate(right_operand)); | 1412 __ xorl(ToRegister(left), Immediate(right_operand)); |
| 1413 } | 1413 } |
| 1414 break; | 1414 break; |
| 1415 default: | 1415 default: |
| 1416 UNREACHABLE(); | 1416 UNREACHABLE(); |
| 1417 break; | 1417 break; |
| 1418 } | 1418 } |
| 1419 } else if (right->IsStackSlot()) { | 1419 } else if (right->IsStackSlot()) { |
| 1420 switch (instr->op()) { | 1420 switch (instr->op()) { |
| (...skipping 4090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5511 FixedArray::kHeaderSize - kPointerSize)); | 5511 FixedArray::kHeaderSize - kPointerSize)); |
| 5512 __ bind(&done); | 5512 __ bind(&done); |
| 5513 } | 5513 } |
| 5514 | 5514 |
| 5515 | 5515 |
| 5516 #undef __ | 5516 #undef __ |
| 5517 | 5517 |
| 5518 } } // namespace v8::internal | 5518 } } // namespace v8::internal |
| 5519 | 5519 |
| 5520 #endif // V8_TARGET_ARCH_X64 | 5520 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |