| 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 4385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4396 RegExpImpl::kLastCaptureCountOffset)); | 4396 RegExpImpl::kLastCaptureCountOffset)); |
| 4397 // Store last subject and last input. | 4397 // Store last subject and last input. |
| 4398 __ str(subject, | 4398 __ str(subject, |
| 4399 FieldMemOperand(last_match_info_elements, | 4399 FieldMemOperand(last_match_info_elements, |
| 4400 RegExpImpl::kLastSubjectOffset)); | 4400 RegExpImpl::kLastSubjectOffset)); |
| 4401 __ mov(r2, subject); | 4401 __ mov(r2, subject); |
| 4402 __ RecordWriteField(last_match_info_elements, | 4402 __ RecordWriteField(last_match_info_elements, |
| 4403 RegExpImpl::kLastSubjectOffset, | 4403 RegExpImpl::kLastSubjectOffset, |
| 4404 r2, | 4404 r2, |
| 4405 r7, | 4405 r7, |
| 4406 kLRHasNotBeenSaved, |
| 4406 kDontSaveFPRegs); | 4407 kDontSaveFPRegs); |
| 4407 __ str(subject, | 4408 __ str(subject, |
| 4408 FieldMemOperand(last_match_info_elements, | 4409 FieldMemOperand(last_match_info_elements, |
| 4409 RegExpImpl::kLastInputOffset)); | 4410 RegExpImpl::kLastInputOffset)); |
| 4410 __ RecordWriteField(last_match_info_elements, | 4411 __ RecordWriteField(last_match_info_elements, |
| 4411 RegExpImpl::kLastInputOffset, | 4412 RegExpImpl::kLastInputOffset, |
| 4412 subject, | 4413 subject, |
| 4413 r7, | 4414 r7, |
| 4415 kLRHasNotBeenSaved, |
| 4414 kDontSaveFPRegs); | 4416 kDontSaveFPRegs); |
| 4415 | 4417 |
| 4416 // Get the static offsets vector filled by the native regexp code. | 4418 // Get the static offsets vector filled by the native regexp code. |
| 4417 ExternalReference address_of_static_offsets_vector = | 4419 ExternalReference address_of_static_offsets_vector = |
| 4418 ExternalReference::address_of_static_offsets_vector(isolate); | 4420 ExternalReference::address_of_static_offsets_vector(isolate); |
| 4419 __ mov(r2, Operand(address_of_static_offsets_vector)); | 4421 __ mov(r2, Operand(address_of_static_offsets_vector)); |
| 4420 | 4422 |
| 4421 // r1: number of capture registers | 4423 // r1: number of capture registers |
| 4422 // r2: offsets vector | 4424 // r2: offsets vector |
| 4423 Label next_capture, done; | 4425 Label next_capture, done; |
| (...skipping 2017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6441 __ bind(&in_dictionary); | 6443 __ bind(&in_dictionary); |
| 6442 __ mov(result, Operand(1)); | 6444 __ mov(result, Operand(1)); |
| 6443 __ Ret(); | 6445 __ Ret(); |
| 6444 | 6446 |
| 6445 __ bind(¬_in_dictionary); | 6447 __ bind(¬_in_dictionary); |
| 6446 __ mov(result, Operand(0)); | 6448 __ mov(result, Operand(0)); |
| 6447 __ Ret(); | 6449 __ Ret(); |
| 6448 } | 6450 } |
| 6449 | 6451 |
| 6450 | 6452 |
| 6453 // Takes the input in 3 registers: address_ value_ and object_. A pointer to |
| 6454 // the value has just been written into the object, now this stub makes sure |
| 6455 // we keep the GC informed. The word in the object where the value has been |
| 6456 // written is in the address register. |
| 6457 void RecordWriteStub::Generate(MacroAssembler* masm) { |
| 6458 if (remembered_set_action_ == EMIT_REMEMBERED_SET) { |
| 6459 __ RememberedSetHelper( |
| 6460 address_, value_, save_fp_regs_mode_, MacroAssembler::kReturnAtEnd); |
| 6461 } |
| 6462 __ Ret(); |
| 6463 } |
| 6464 |
| 6465 |
| 6451 #undef __ | 6466 #undef __ |
| 6452 | 6467 |
| 6453 } } // namespace v8::internal | 6468 } } // namespace v8::internal |
| 6454 | 6469 |
| 6455 #endif // V8_TARGET_ARCH_ARM | 6470 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |