| 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 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1511 Condition is_smi = masm_->CheckSmi(result_register()); | 1511 Condition is_smi = masm_->CheckSmi(result_register()); |
| 1512 __ j(is_smi, &smi); | 1512 __ j(is_smi, &smi); |
| 1513 // Non-smi: call stub leaving result in accumulator register. | 1513 // Non-smi: call stub leaving result in accumulator register. |
| 1514 __ CallStub(&stub); | 1514 __ CallStub(&stub); |
| 1515 __ jmp(&done); | 1515 __ jmp(&done); |
| 1516 // Perform operation directly on Smis. | 1516 // Perform operation directly on Smis. |
| 1517 __ bind(&smi); | 1517 __ bind(&smi); |
| 1518 __ SmiNot(result_register(), result_register()); | 1518 __ SmiNot(result_register(), result_register()); |
| 1519 __ bind(&done); | 1519 __ bind(&done); |
| 1520 Apply(context_, result_register()); | 1520 Apply(context_, result_register()); |
| 1521 break; |
| 1521 } | 1522 } |
| 1522 | 1523 |
| 1523 default: | 1524 default: |
| 1524 UNREACHABLE(); | 1525 UNREACHABLE(); |
| 1525 } | 1526 } |
| 1526 } | 1527 } |
| 1527 | 1528 |
| 1528 | 1529 |
| 1529 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { | 1530 void FullCodeGenerator::VisitCountOperation(CountOperation* expr) { |
| 1530 Comment cmnt(masm_, "[ CountOperation"); | 1531 Comment cmnt(masm_, "[ CountOperation"); |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 __ movq(Operand(rsp, 0), rdx); | 1886 __ movq(Operand(rsp, 0), rdx); |
| 1886 // And return. | 1887 // And return. |
| 1887 __ ret(0); | 1888 __ ret(0); |
| 1888 } | 1889 } |
| 1889 | 1890 |
| 1890 | 1891 |
| 1891 #undef __ | 1892 #undef __ |
| 1892 | 1893 |
| 1893 | 1894 |
| 1894 } } // namespace v8::internal | 1895 } } // namespace v8::internal |
| OLD | NEW |