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

Side by Side Diff: src/x64/codegen-x64.cc

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed MIPs changes, and found a bug. COPY_ON_WRITE shallow array stub didn't track allocation inf… Created 7 years, 11 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 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #endif 244 #endif
245 245
246 #undef __ 246 #undef __
247 247
248 // ------------------------------------------------------------------------- 248 // -------------------------------------------------------------------------
249 // Code generators 249 // Code generators
250 250
251 #define __ ACCESS_MASM(masm) 251 #define __ ACCESS_MASM(masm)
252 252
253 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( 253 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition(
254 MacroAssembler* masm) { 254 MacroAssembler* masm, Label* allocation_site_info_found) {
255 // ----------- S t a t e ------------- 255 // ----------- S t a t e -------------
256 // -- rax : value 256 // -- rax : value
257 // -- rbx : target map 257 // -- rbx : target map
258 // -- rcx : key 258 // -- rcx : key
259 // -- rdx : receiver 259 // -- rdx : receiver
260 // -- rsp[0] : return address 260 // -- rsp[0] : return address
261 // ----------------------------------- 261 // -----------------------------------
262 if (FLAG_track_allocation_sites &&
263 allocation_site_info_found != NULL) {
264 masm->TestJSArrayForAllocationSiteInfo(rdx, rdi,
265 allocation_site_info_found);
266 }
267
262 // Set transitioned map. 268 // Set transitioned map.
263 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx); 269 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx);
264 __ RecordWriteField(rdx, 270 __ RecordWriteField(rdx,
265 HeapObject::kMapOffset, 271 HeapObject::kMapOffset,
266 rbx, 272 rbx,
267 rdi, 273 rdi,
268 kDontSaveFPRegs, 274 kDontSaveFPRegs,
269 EMIT_REMEMBERED_SET, 275 EMIT_REMEMBERED_SET,
270 OMIT_SMI_CHECK); 276 OMIT_SMI_CHECK);
271 } 277 }
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 CodePatcher patcher(sequence, young_length); 768 CodePatcher patcher(sequence, young_length);
763 patcher.masm()->call(stub->instruction_start()); 769 patcher.masm()->call(stub->instruction_start());
764 patcher.masm()->nop(); 770 patcher.masm()->nop();
765 } 771 }
766 } 772 }
767 773
768 774
769 } } // namespace v8::internal 775 } } // namespace v8::internal
770 776
771 #endif // V8_TARGET_ARCH_X64 777 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/objects.cc ('K') | « src/x64/code-stubs-x64.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698