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 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2522 __ bind(&setup_rest); | 2522 __ bind(&setup_rest); |
2523 // Argument 2: Previous index. | 2523 // Argument 2: Previous index. |
2524 __ movq(arg2, rbx); | 2524 __ movq(arg2, rbx); |
2525 | 2525 |
2526 // Argument 1: Subject string. | 2526 // Argument 1: Subject string. |
2527 #ifdef _WIN64 | 2527 #ifdef _WIN64 |
2528 __ movq(arg1, rdi); | 2528 __ movq(arg1, rdi); |
2529 #else | 2529 #else |
2530 // Already there in AMD64 calling convention. | 2530 // Already there in AMD64 calling convention. |
2531 ASSERT(arg1.is(rdi)); | 2531 ASSERT(arg1.is(rdi)); |
| 2532 USE(arg1); |
2532 #endif | 2533 #endif |
2533 | 2534 |
2534 // Locate the code entry and call it. | 2535 // Locate the code entry and call it. |
2535 __ addq(r11, Immediate(Code::kHeaderSize - kHeapObjectTag)); | 2536 __ addq(r11, Immediate(Code::kHeaderSize - kHeapObjectTag)); |
2536 __ call(r11); | 2537 __ call(r11); |
2537 | 2538 |
2538 __ LeaveApiExitFrame(); | 2539 __ LeaveApiExitFrame(); |
2539 | 2540 |
2540 // Check the result. | 2541 // Check the result. |
2541 Label success; | 2542 Label success; |
(...skipping 2739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5281 __ Drop(1); | 5282 __ Drop(1); |
5282 __ ret(2 * kPointerSize); | 5283 __ ret(2 * kPointerSize); |
5283 } | 5284 } |
5284 | 5285 |
5285 | 5286 |
5286 #undef __ | 5287 #undef __ |
5287 | 5288 |
5288 } } // namespace v8::internal | 5289 } } // namespace v8::internal |
5289 | 5290 |
5290 #endif // V8_TARGET_ARCH_X64 | 5291 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |