OLD | NEW |
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 372 matching lines...) Loading... |
383 | 383 |
384 #undef __ | 384 #undef __ |
385 | 385 |
386 // ------------------------------------------------------------------------- | 386 // ------------------------------------------------------------------------- |
387 // Code generators | 387 // Code generators |
388 | 388 |
389 #define __ ACCESS_MASM(masm) | 389 #define __ ACCESS_MASM(masm) |
390 | 390 |
391 | 391 |
392 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( | 392 void ElementsTransitionGenerator::GenerateMapChangeElementsTransition( |
393 MacroAssembler* masm) { | 393 MacroAssembler* masm, Label* fail) { |
394 // ----------- S t a t e ------------- | 394 // ----------- S t a t e ------------- |
395 // -- eax : value | 395 // -- eax : value |
396 // -- ebx : target map | 396 // -- ebx : target map |
397 // -- ecx : key | 397 // -- ecx : key |
398 // -- edx : receiver | 398 // -- edx : receiver |
399 // -- esp[0] : return address | 399 // -- esp[0] : return address |
400 // ----------------------------------- | 400 // ----------------------------------- |
| 401 if (FLAG_track_allocation_sites && fail != NULL) { |
| 402 masm->TestJSArrayForAllocationSiteInfo(edx, edi, fail); |
| 403 } |
| 404 |
401 // Set transitioned map. | 405 // Set transitioned map. |
402 __ mov(FieldOperand(edx, HeapObject::kMapOffset), ebx); | 406 __ mov(FieldOperand(edx, HeapObject::kMapOffset), ebx); |
403 __ RecordWriteField(edx, | 407 __ RecordWriteField(edx, |
404 HeapObject::kMapOffset, | 408 HeapObject::kMapOffset, |
405 ebx, | 409 ebx, |
406 edi, | 410 edi, |
407 kDontSaveFPRegs, | 411 kDontSaveFPRegs, |
408 EMIT_REMEMBERED_SET, | 412 EMIT_REMEMBERED_SET, |
409 OMIT_SMI_CHECK); | 413 OMIT_SMI_CHECK); |
410 } | 414 } |
(...skipping 533 matching lines...) Loading... |
944 Code* stub = GetCodeAgeStub(age, parity); | 948 Code* stub = GetCodeAgeStub(age, parity); |
945 CodePatcher patcher(sequence, young_length); | 949 CodePatcher patcher(sequence, young_length); |
946 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); | 950 patcher.masm()->call(stub->instruction_start(), RelocInfo::NONE32); |
947 } | 951 } |
948 } | 952 } |
949 | 953 |
950 | 954 |
951 } } // namespace v8::internal | 955 } } // namespace v8::internal |
952 | 956 |
953 #endif // V8_TARGET_ARCH_IA32 | 957 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |