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

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

Issue 11412096: Use slot instead of value in the write barrier to record write from code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/ia32/code-stubs-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 7363 matching lines...) Expand 10 before | Expand all | Expand 10 after
7374 void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { 7374 void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) {
7375 regs_.SaveCallerSaveRegisters(masm, save_fp_regs_mode_); 7375 regs_.SaveCallerSaveRegisters(masm, save_fp_regs_mode_);
7376 int argument_count = 3; 7376 int argument_count = 3;
7377 __ PrepareCallCFunction(argument_count, regs_.scratch0()); 7377 __ PrepareCallCFunction(argument_count, regs_.scratch0());
7378 Register address = 7378 Register address =
7379 r0.is(regs_.address()) ? regs_.scratch0() : regs_.address(); 7379 r0.is(regs_.address()) ? regs_.scratch0() : regs_.address();
7380 ASSERT(!address.is(regs_.object())); 7380 ASSERT(!address.is(regs_.object()));
7381 ASSERT(!address.is(r0)); 7381 ASSERT(!address.is(r0));
7382 __ Move(address, regs_.address()); 7382 __ Move(address, regs_.address());
7383 __ Move(r0, regs_.object()); 7383 __ Move(r0, regs_.object());
7384 if (mode == INCREMENTAL_COMPACTION) { 7384 __ Move(r1, address);
7385 __ Move(r1, address);
7386 } else {
7387 ASSERT(mode == INCREMENTAL);
7388 __ ldr(r1, MemOperand(address, 0));
7389 }
7390 __ mov(r2, Operand(ExternalReference::isolate_address())); 7385 __ mov(r2, Operand(ExternalReference::isolate_address()));
7391 7386
7392 AllowExternalCallThatCantCauseGC scope(masm); 7387 AllowExternalCallThatCantCauseGC scope(masm);
7393 if (mode == INCREMENTAL_COMPACTION) { 7388 if (mode == INCREMENTAL_COMPACTION) {
7394 __ CallCFunction( 7389 __ CallCFunction(
7395 ExternalReference::incremental_evacuation_record_write_function( 7390 ExternalReference::incremental_evacuation_record_write_function(
7396 masm->isolate()), 7391 masm->isolate()),
7397 argument_count); 7392 argument_count);
7398 } else { 7393 } else {
7399 ASSERT(mode == INCREMENTAL); 7394 ASSERT(mode == INCREMENTAL);
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
7609 7604
7610 __ Pop(lr, r5, r1); 7605 __ Pop(lr, r5, r1);
7611 __ Ret(); 7606 __ Ret();
7612 } 7607 }
7613 7608
7614 #undef __ 7609 #undef __
7615 7610
7616 } } // namespace v8::internal 7611 } } // namespace v8::internal
7617 7612
7618 #endif // V8_TARGET_ARCH_ARM 7613 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698