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 5579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5590 } | 5590 } |
5591 DeoptimizeIf(not_equal, instr->environment()); | 5591 DeoptimizeIf(not_equal, instr->environment()); |
5592 } | 5592 } |
5593 | 5593 |
5594 | 5594 |
5595 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { | 5595 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { |
5596 { | 5596 { |
5597 PushSafepointRegistersScope scope(this); | 5597 PushSafepointRegistersScope scope(this); |
5598 __ push(object); | 5598 __ push(object); |
5599 __ xor_(esi, esi); | 5599 __ xor_(esi, esi); |
5600 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); | 5600 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance); |
5601 RecordSafepointWithRegisters( | 5601 RecordSafepointWithRegisters( |
5602 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); | 5602 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); |
5603 | 5603 |
5604 __ test(eax, Immediate(kSmiTagMask)); | 5604 __ test(eax, Immediate(kSmiTagMask)); |
5605 } | 5605 } |
5606 DeoptimizeIf(zero, instr->environment()); | 5606 DeoptimizeIf(zero, instr->environment()); |
5607 } | 5607 } |
5608 | 5608 |
5609 | 5609 |
5610 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 5610 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6358 FixedArray::kHeaderSize - kPointerSize)); | 6358 FixedArray::kHeaderSize - kPointerSize)); |
6359 __ bind(&done); | 6359 __ bind(&done); |
6360 } | 6360 } |
6361 | 6361 |
6362 | 6362 |
6363 #undef __ | 6363 #undef __ |
6364 | 6364 |
6365 } } // namespace v8::internal | 6365 } } // namespace v8::internal |
6366 | 6366 |
6367 #endif // V8_TARGET_ARCH_IA32 | 6367 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |