| OLD | NEW | 
|---|
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1505       __ j(zero, &smi); | 1505       __ j(zero, &smi); | 
| 1506       // Non-smi: call stub leaving result in accumulator register. | 1506       // Non-smi: call stub leaving result in accumulator register. | 
| 1507       __ CallStub(&stub); | 1507       __ CallStub(&stub); | 
| 1508       __ jmp(&done); | 1508       __ jmp(&done); | 
| 1509       // Perform operation directly on Smis. | 1509       // Perform operation directly on Smis. | 
| 1510       __ bind(&smi); | 1510       __ bind(&smi); | 
| 1511       __ not_(result_register()); | 1511       __ not_(result_register()); | 
| 1512       __ and_(result_register(), ~kSmiTagMask);  // Remove inverted smi-tag. | 1512       __ and_(result_register(), ~kSmiTagMask);  // Remove inverted smi-tag. | 
| 1513       __ bind(&done); | 1513       __ bind(&done); | 
| 1514       Apply(context_, result_register()); | 1514       Apply(context_, result_register()); | 
|  | 1515       break; | 
| 1515     } | 1516     } | 
| 1516 | 1517 | 
| 1517     default: | 1518     default: | 
| 1518       UNREACHABLE(); | 1519       UNREACHABLE(); | 
| 1519   } | 1520   } | 
| 1520 } | 1521 } | 
| 1521 | 1522 | 
| 1522 | 1523 | 
| 1523 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { | 1524 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { | 
| 1524   Comment cmnt(masm_, "[ CountOperation"); | 1525   Comment cmnt(masm_, "[ CountOperation"); | 
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1876   __ add(Operand(edx), Immediate(masm_->CodeObject())); | 1877   __ add(Operand(edx), Immediate(masm_->CodeObject())); | 
| 1877   __ mov(Operand(esp, 0), edx); | 1878   __ mov(Operand(esp, 0), edx); | 
| 1878   // And return. | 1879   // And return. | 
| 1879   __ ret(0); | 1880   __ ret(0); | 
| 1880 } | 1881 } | 
| 1881 | 1882 | 
| 1882 | 1883 | 
| 1883 #undef __ | 1884 #undef __ | 
| 1884 | 1885 | 
| 1885 } }  // namespace v8::internal | 1886 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|