OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 4970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4981 __ Cmp(reg, instr->hydrogen()->object().handle()); | 4981 __ Cmp(reg, instr->hydrogen()->object().handle()); |
4982 DeoptimizeIf(not_equal, instr->environment()); | 4982 DeoptimizeIf(not_equal, instr->environment()); |
4983 } | 4983 } |
4984 | 4984 |
4985 | 4985 |
4986 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { | 4986 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { |
4987 { | 4987 { |
4988 PushSafepointRegistersScope scope(this); | 4988 PushSafepointRegistersScope scope(this); |
4989 __ push(object); | 4989 __ push(object); |
4990 __ Set(rsi, 0); | 4990 __ Set(rsi, 0); |
4991 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); | 4991 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance); |
4992 RecordSafepointWithRegisters( | 4992 RecordSafepointWithRegisters( |
4993 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); | 4993 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); |
4994 | 4994 |
4995 __ testq(rax, Immediate(kSmiTagMask)); | 4995 __ testq(rax, Immediate(kSmiTagMask)); |
4996 } | 4996 } |
4997 DeoptimizeIf(zero, instr->environment()); | 4997 DeoptimizeIf(zero, instr->environment()); |
4998 } | 4998 } |
4999 | 4999 |
5000 | 5000 |
5001 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { | 5001 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { |
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5629 FixedArray::kHeaderSize - kPointerSize)); | 5629 FixedArray::kHeaderSize - kPointerSize)); |
5630 __ bind(&done); | 5630 __ bind(&done); |
5631 } | 5631 } |
5632 | 5632 |
5633 | 5633 |
5634 #undef __ | 5634 #undef __ |
5635 | 5635 |
5636 } } // namespace v8::internal | 5636 } } // namespace v8::internal |
5637 | 5637 |
5638 #endif // V8_TARGET_ARCH_X64 | 5638 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |