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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 131243003: Turn Runtime_MigrateInstance into Runtime_TryMigrateInstance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5579 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698