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

Side by Side Diff: src/mips/lithium-codegen-mips.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/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.h » ('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 5109 matching lines...) Expand 10 before | Expand all | Expand 10 after
5120 Operand(object)); 5120 Operand(object));
5121 } 5121 }
5122 } 5122 }
5123 5123
5124 5124
5125 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) { 5125 void LCodeGen::DoDeferredInstanceMigration(LCheckMaps* instr, Register object) {
5126 { 5126 {
5127 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 5127 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
5128 __ push(object); 5128 __ push(object);
5129 __ mov(cp, zero_reg); 5129 __ mov(cp, zero_reg);
5130 __ CallRuntimeSaveDoubles(Runtime::kMigrateInstance); 5130 __ CallRuntimeSaveDoubles(Runtime::kTryMigrateInstance);
5131 RecordSafepointWithRegisters( 5131 RecordSafepointWithRegisters(
5132 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt); 5132 instr->pointer_map(), 1, Safepoint::kNoLazyDeopt);
5133 __ StoreToSafepointRegisterSlot(v0, scratch0()); 5133 __ StoreToSafepointRegisterSlot(v0, scratch0());
5134 } 5134 }
5135 __ SmiTst(scratch0(), at); 5135 __ SmiTst(scratch0(), at);
5136 DeoptimizeIf(eq, instr->environment(), at, Operand(zero_reg)); 5136 DeoptimizeIf(eq, instr->environment(), at, Operand(zero_reg));
5137 } 5137 }
5138 5138
5139 5139
5140 void LCodeGen::DoCheckMaps(LCheckMaps* instr) { 5140 void LCodeGen::DoCheckMaps(LCheckMaps* instr) {
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
5806 __ Subu(scratch, result, scratch); 5806 __ Subu(scratch, result, scratch);
5807 __ lw(result, FieldMemOperand(scratch, 5807 __ lw(result, FieldMemOperand(scratch,
5808 FixedArray::kHeaderSize - kPointerSize)); 5808 FixedArray::kHeaderSize - kPointerSize));
5809 __ bind(&done); 5809 __ bind(&done);
5810 } 5810 }
5811 5811
5812 5812
5813 #undef __ 5813 #undef __
5814 5814
5815 } } // namespace v8::internal 5815 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698