| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 // rbx: JSArray | 1298 // rbx: JSArray |
| 1299 // rdx: location of the first array element | 1299 // rdx: location of the first array element |
| 1300 // r9: location of the last argument | 1300 // r9: location of the last argument |
| 1301 // esp[0]: return address | 1301 // esp[0]: return address |
| 1302 // esp[8]: last argument | 1302 // esp[8]: last argument |
| 1303 Label loop, entry; | 1303 Label loop, entry; |
| 1304 __ movq(rcx, rax); | 1304 __ movq(rcx, rax); |
| 1305 __ jmp(&entry); | 1305 __ jmp(&entry); |
| 1306 __ bind(&loop); | 1306 __ bind(&loop); |
| 1307 __ movq(kScratchRegister, Operand(r9, rcx, times_pointer_size, 0)); | 1307 __ movq(kScratchRegister, Operand(r9, rcx, times_pointer_size, 0)); |
| 1308 if (FLAG_smi_only_arrays) { |
| 1309 __ JumpIfNotSmi(kScratchRegister, call_generic_code); |
| 1310 } |
| 1308 __ movq(Operand(rdx, 0), kScratchRegister); | 1311 __ movq(Operand(rdx, 0), kScratchRegister); |
| 1309 __ addq(rdx, Immediate(kPointerSize)); | 1312 __ addq(rdx, Immediate(kPointerSize)); |
| 1310 __ bind(&entry); | 1313 __ bind(&entry); |
| 1311 __ decq(rcx); | 1314 __ decq(rcx); |
| 1312 __ j(greater_equal, &loop); | 1315 __ j(greater_equal, &loop); |
| 1313 | 1316 |
| 1314 // Remove caller arguments from the stack and return. | 1317 // Remove caller arguments from the stack and return. |
| 1315 // rax: argc | 1318 // rax: argc |
| 1316 // rbx: JSArray | 1319 // rbx: JSArray |
| 1317 // esp[0]: return address | 1320 // esp[0]: return address |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1573 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); | 1576 Deoptimizer::EntryGenerator generator(masm, Deoptimizer::OSR); |
| 1574 generator.Generate(); | 1577 generator.Generate(); |
| 1575 } | 1578 } |
| 1576 | 1579 |
| 1577 | 1580 |
| 1578 #undef __ | 1581 #undef __ |
| 1579 | 1582 |
| 1580 } } // namespace v8::internal | 1583 } } // namespace v8::internal |
| 1581 | 1584 |
| 1582 #endif // V8_TARGET_ARCH_X64 | 1585 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |