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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/ia32/lithium-codegen-ia32.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 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5163 } 5163 }
5164 DeoptimizeIf(ne, instr->environment()); 5164 DeoptimizeIf(ne, instr->environment());
5165 } 5165 }
5166 5166
5167 5167
5168 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { 5168 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) {
5169 { 5169 {
5170 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 5170 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
5171 __ push(object); 5171 __ push(object);
5172 __ mov(cp, Operand::Zero()); 5172 __ mov(cp, Operand::Zero());
5173 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); 5173 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance);
5174 RecordSafepointWithRegisters( 5174 RecordSafepointWithRegisters(
5175 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); 5175 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt);
5176 __ StoreToSafepointRegisterSlot(r0, scratch0()); 5176 __ StoreToSafepointRegisterSlot(r0, scratch0());
5177 } 5177 }
5178 __ tst(scratch0(), Operand(kSmiTagMask)); 5178 __ tst(scratch0(), Operand(kSmiTagMask));
5179 DeoptimizeIf(eq, instr->environment()); 5179 DeoptimizeIf(eq, instr->environment());
5180 } 5180 }
5181 5181
5182 5182
5183 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { 5183 void LCodeGen::DoCheckMaps(LCheckMaps* instr) {
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5810 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5810 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5811 __ ldr(result, FieldMemOperand(scratch, 5811 __ ldr(result, FieldMemOperand(scratch,
5812 FixedArray::kHeaderSize - kPointerSize)); 5812 FixedArray::kHeaderSize - kPointerSize));
5813 __ bind(&done); 5813 __ bind(&done);
5814 } 5814 }
5815 5815
5816 5816
5817 #undef __ 5817 #undef __
5818 5818
5819 } } // namespace v8::internal 5819 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698