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

Side by Side Diff: src/x64/lithium-codegen-x64.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/runtime.cc ('k') | test/mjsunit/regress/regress-crbug-315252.js » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/mjsunit/regress/regress-crbug-315252.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698