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

Side by Side Diff: src/ia32/full-codegen-ia32.cc

Issue 7104107: Incremental mode now works for x64. The only difference (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
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 3185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3196 __ mov(Operand(index_2, 0), object); 3196 __ mov(Operand(index_2, 0), object);
3197 __ mov(Operand(index_1, 0), temp); 3197 __ mov(Operand(index_1, 0), temp);
3198 3198
3199 Label no_remembered_set; 3199 Label no_remembered_set;
3200 __ CheckPageFlag(elements, 3200 __ CheckPageFlag(elements,
3201 temp, 3201 temp,
3202 MemoryChunk::SCAN_ON_SCAVENGE, 3202 MemoryChunk::SCAN_ON_SCAVENGE,
3203 not_zero, 3203 not_zero,
3204 &no_remembered_set, 3204 &no_remembered_set,
3205 Label::kNear); 3205 Label::kNear);
3206 // Possible optimization: do a check that both values are Smis
3207 // (or them and test against Smi mask.)
3206 3208
3207 __ mov(object, elements);
3208 // Since we are swapping two objects, the incremental marker is not disturbed, 3209 // Since we are swapping two objects, the incremental marker is not disturbed,
3209 // so we don't call the stub that handles this. 3210 // so we don't call the stub that handles this.
3210 __ RememberedSetHelper( 3211 __ RememberedSetHelper(
3211 index_1, temp, kDontSaveFPRegs, MacroAssembler::kFallThroughAtEnd); 3212 index_1, temp, kDontSaveFPRegs, MacroAssembler::kFallThroughAtEnd);
3212 __ RememberedSetHelper( 3213 __ RememberedSetHelper(
3213 index_2, temp, kDontSaveFPRegs, MacroAssembler::kFallThroughAtEnd); 3214 index_2, temp, kDontSaveFPRegs, MacroAssembler::kFallThroughAtEnd);
3214 3215
3215 __ bind(&no_remembered_set); 3216 __ bind(&no_remembered_set);
3216 3217
3217 // We are done. Drop elements from the stack, and return undefined. 3218 // We are done. Drop elements from the stack, and return undefined.
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
4349 // And return. 4350 // And return.
4350 __ ret(0); 4351 __ ret(0);
4351 } 4352 }
4352 4353
4353 4354
4354 #undef __ 4355 #undef __
4355 4356
4356 } } // namespace v8::internal 4357 } } // namespace v8::internal
4357 4358
4358 #endif // V8_TARGET_ARCH_IA32 4359 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698