Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(817)

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 7113012: Call a stub for the write barrier on ARM. This is a step (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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(&not_in_dictionary); 6447 __ bind(&not_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
OLDNEW
« no previous file with comments | « no previous file | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698