| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1964 | 1964 |
| 1965 // rbx: last_match_info backing store (FixedArray) | 1965 // rbx: last_match_info backing store (FixedArray) |
| 1966 // rdx: number of capture registers | 1966 // rdx: number of capture registers |
| 1967 // Store the capture count. | 1967 // Store the capture count. |
| 1968 __ Integer32ToSmi(kScratchRegister, rdx); | 1968 __ Integer32ToSmi(kScratchRegister, rdx); |
| 1969 __ movq(FieldOperand(rbx, RegExpImpl::kLastCaptureCountOffset), | 1969 __ movq(FieldOperand(rbx, RegExpImpl::kLastCaptureCountOffset), |
| 1970 kScratchRegister); | 1970 kScratchRegister); |
| 1971 // Store last subject and last input. | 1971 // Store last subject and last input. |
| 1972 __ movq(rax, Operand(rsp, kSubjectOffset)); | 1972 __ movq(rax, Operand(rsp, kSubjectOffset)); |
| 1973 __ movq(FieldOperand(rbx, RegExpImpl::kLastSubjectOffset), rax); | 1973 __ movq(FieldOperand(rbx, RegExpImpl::kLastSubjectOffset), rax); |
| 1974 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER |
| 1974 __ movq(rcx, rbx); | 1975 __ movq(rcx, rbx); |
| 1975 __ RecordWrite(rcx, RegExpImpl::kLastSubjectOffset, rax, rdi); | 1976 __ RecordWrite(rcx, RegExpImpl::kLastSubjectOffset, rax, rdi); |
| 1977 #endif |
| 1976 __ movq(rax, Operand(rsp, kSubjectOffset)); | 1978 __ movq(rax, Operand(rsp, kSubjectOffset)); |
| 1977 __ movq(FieldOperand(rbx, RegExpImpl::kLastInputOffset), rax); | 1979 __ movq(FieldOperand(rbx, RegExpImpl::kLastInputOffset), rax); |
| 1980 #ifdef ENABLE_CARDMARKING_WRITE_BARRIER |
| 1978 __ movq(rcx, rbx); | 1981 __ movq(rcx, rbx); |
| 1979 __ RecordWrite(rcx, RegExpImpl::kLastInputOffset, rax, rdi); | 1982 __ RecordWrite(rcx, RegExpImpl::kLastInputOffset, rax, rdi); |
| 1983 #endif |
| 1980 | 1984 |
| 1981 // Get the static offsets vector filled by the native regexp code. | 1985 // Get the static offsets vector filled by the native regexp code. |
| 1982 __ movq(rcx, ExternalReference::address_of_static_offsets_vector()); | 1986 __ movq(rcx, ExternalReference::address_of_static_offsets_vector()); |
| 1983 | 1987 |
| 1984 // rbx: last_match_info backing store (FixedArray) | 1988 // rbx: last_match_info backing store (FixedArray) |
| 1985 // rcx: offsets vector | 1989 // rcx: offsets vector |
| 1986 // rdx: number of capture registers | 1990 // rdx: number of capture registers |
| 1987 NearLabel next_capture, done; | 1991 NearLabel next_capture, done; |
| 1988 // Capture register counter starts from number of capture registers and | 1992 // Capture register counter starts from number of capture registers and |
| 1989 // counts down until wraping after zero. | 1993 // counts down until wraping after zero. |
| (...skipping 2111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4101 | 4105 |
| 4102 void ICCompareStub::GenerateMiss(MacroAssembler* masm) { | 4106 void ICCompareStub::GenerateMiss(MacroAssembler* masm) { |
| 4103 UNIMPLEMENTED(); | 4107 UNIMPLEMENTED(); |
| 4104 } | 4108 } |
| 4105 | 4109 |
| 4106 #undef __ | 4110 #undef __ |
| 4107 | 4111 |
| 4108 } } // namespace v8::internal | 4112 } } // namespace v8::internal |
| 4109 | 4113 |
| 4110 #endif // V8_TARGET_ARCH_X64 | 4114 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |