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 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2638 __ bind(&setup_two_byte); | 2638 __ bind(&setup_two_byte); |
2639 __ SmiToInteger32(rcx, FieldOperand(rdi, String::kLengthOffset)); | 2639 __ SmiToInteger32(rcx, FieldOperand(rdi, String::kLengthOffset)); |
2640 __ lea(arg4, FieldOperand(rdi, rcx, times_2, SeqTwoByteString::kHeaderSize)); | 2640 __ lea(arg4, FieldOperand(rdi, rcx, times_2, SeqTwoByteString::kHeaderSize)); |
2641 __ lea(arg3, FieldOperand(rdi, rbx, times_2, SeqTwoByteString::kHeaderSize)); | 2641 __ lea(arg3, FieldOperand(rdi, rbx, times_2, SeqTwoByteString::kHeaderSize)); |
2642 | 2642 |
2643 __ bind(&setup_rest); | 2643 __ bind(&setup_rest); |
2644 // Argument 2: Previous index. | 2644 // Argument 2: Previous index. |
2645 __ movq(arg2, rbx); | 2645 __ movq(arg2, rbx); |
2646 | 2646 |
2647 // Argument 1: Subject string. | 2647 // Argument 1: Subject string. |
2648 #ifdef WIN64_ | 2648 #ifdef _WIN64 |
2649 __ movq(arg1, rdi); | 2649 __ movq(arg1, rdi); |
2650 #else | 2650 #else |
2651 // Already there in AMD64 calling convention. | 2651 // Already there in AMD64 calling convention. |
2652 ASSERT(arg1.is(rdi)); | 2652 ASSERT(arg1.is(rdi)); |
2653 #endif | 2653 #endif |
2654 | 2654 |
2655 // Locate the code entry and call it. | 2655 // Locate the code entry and call it. |
2656 __ addq(r11, Immediate(Code::kHeaderSize - kHeapObjectTag)); | 2656 __ addq(r11, Immediate(Code::kHeaderSize - kHeapObjectTag)); |
2657 __ call(r11); | 2657 __ call(r11); |
2658 | 2658 |
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5141 FieldOperand(elements, PixelArray::kExternalPointerOffset)); | 5141 FieldOperand(elements, PixelArray::kExternalPointerOffset)); |
5142 __ movb(Operand(external_pointer, untagged_key, times_1, 0), untagged_value); | 5142 __ movb(Operand(external_pointer, untagged_key, times_1, 0), untagged_value); |
5143 __ ret(0); // Return value in eax. | 5143 __ ret(0); // Return value in eax. |
5144 } | 5144 } |
5145 | 5145 |
5146 #undef __ | 5146 #undef __ |
5147 | 5147 |
5148 } } // namespace v8::internal | 5148 } } // namespace v8::internal |
5149 | 5149 |
5150 #endif // V8_TARGET_ARCH_X64 | 5150 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |