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

Side by Side Diff: src/x64/code-stubs-x64.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, 1 month 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 | « src/mips/code-stubs-mips.cc ('k') | no next file » | 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 6196 matching lines...) Expand 10 before | Expand all | Expand 10 after
6207 Register arg3 = rdx; 6207 Register arg3 = rdx;
6208 Register arg2 = rsi; 6208 Register arg2 = rsi;
6209 Register arg1 = rdi; 6209 Register arg1 = rdi;
6210 #endif 6210 #endif
6211 Register address = 6211 Register address =
6212 arg1.is(regs_.address()) ? kScratchRegister : regs_.address(); 6212 arg1.is(regs_.address()) ? kScratchRegister : regs_.address();
6213 ASSERT(!address.is(regs_.object())); 6213 ASSERT(!address.is(regs_.object()));
6214 ASSERT(!address.is(arg1)); 6214 ASSERT(!address.is(arg1));
6215 __ Move(address, regs_.address()); 6215 __ Move(address, regs_.address());
6216 __ Move(arg1, regs_.object()); 6216 __ Move(arg1, regs_.object());
6217 if (mode == INCREMENTAL_COMPACTION) { 6217 // TODO(gc) Can we just set address arg2 in the beginning?
6218 // TODO(gc) Can we just set address arg2 in the beginning? 6218 __ Move(arg2, address);
6219 __ Move(arg2, address);
6220 } else {
6221 ASSERT(mode == INCREMENTAL);
6222 __ movq(arg2, Operand(address, 0));
6223 }
6224 __ LoadAddress(arg3, ExternalReference::isolate_address()); 6219 __ LoadAddress(arg3, ExternalReference::isolate_address());
6225 int argument_count = 3; 6220 int argument_count = 3;
6226 6221
6227 AllowExternalCallThatCantCauseGC scope(masm); 6222 AllowExternalCallThatCantCauseGC scope(masm);
6228 __ PrepareCallCFunction(argument_count); 6223 __ PrepareCallCFunction(argument_count);
6229 if (mode == INCREMENTAL_COMPACTION) { 6224 if (mode == INCREMENTAL_COMPACTION) {
6230 __ CallCFunction( 6225 __ CallCFunction(
6231 ExternalReference::incremental_evacuation_record_write_function( 6226 ExternalReference::incremental_evacuation_record_write_function(
6232 masm->isolate()), 6227 masm->isolate()),
6233 argument_count); 6228 argument_count);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
6474 #endif 6469 #endif
6475 6470
6476 __ Ret(); 6471 __ Ret();
6477 } 6472 }
6478 6473
6479 #undef __ 6474 #undef __
6480 6475
6481 } } // namespace v8::internal 6476 } } // namespace v8::internal
6482 6477
6483 #endif // V8_TARGET_ARCH_X64 6478 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698