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

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: Code cleanup 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* fail) {
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 && fail != NULL) {
263 masm->TestJSArrayForAllocationSiteInfo(rdx, rdi, fail);
264 }
265
262 // Set transitioned map. 266 // Set transitioned map.
263 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx); 267 __ movq(FieldOperand(rdx, HeapObject::kMapOffset), rbx);
264 __ RecordWriteField(rdx, 268 __ RecordWriteField(rdx,
265 HeapObject::kMapOffset, 269 HeapObject::kMapOffset,
266 rbx, 270 rbx,
267 rdi, 271 rdi,
268 kDontSaveFPRegs, 272 kDontSaveFPRegs,
269 EMIT_REMEMBERED_SET, 273 EMIT_REMEMBERED_SET,
270 OMIT_SMI_CHECK); 274 OMIT_SMI_CHECK);
271 } 275 }
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 CodePatcher patcher(sequence, young_length); 766 CodePatcher patcher(sequence, young_length);
763 patcher.masm()->call(stub->instruction_start()); 767 patcher.masm()->call(stub->instruction_start());
764 patcher.masm()->nop(); 768 patcher.masm()->nop();
765 } 769 }
766 } 770 }
767 771
768 772
769 } } // namespace v8::internal 773 } } // namespace v8::internal
770 774
771 #endif // V8_TARGET_ARCH_X64 775 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/runtime.cc ('K') | « src/runtime.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698