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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 10984065: Add the VFP-ness to the minor number of the keyed store elements (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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/ic.h ('k') | src/x64/code-stubs-x64.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 7494 matching lines...) Expand 10 before | Expand all | Expand 10 after
7505 RecordWriteStub stub(entry->object, 7505 RecordWriteStub stub(entry->object,
7506 entry->value, 7506 entry->value,
7507 entry->address, 7507 entry->address,
7508 entry->action, 7508 entry->action,
7509 kDontSaveFPRegs); 7509 kDontSaveFPRegs);
7510 stub.GetCode()->set_is_pregenerated(true); 7510 stub.GetCode()->set_is_pregenerated(true);
7511 } 7511 }
7512 } 7512 }
7513 7513
7514 7514
7515 bool CodeStub::CanUseFPRegisters() {
7516 return CpuFeatures::IsSupported(FPU);
7517 }
7518
7519
7515 // Takes the input in 3 registers: address_ value_ and object_. A pointer to 7520 // Takes the input in 3 registers: address_ value_ and object_. A pointer to
7516 // the value has just been written into the object, now this stub makes sure 7521 // the value has just been written into the object, now this stub makes sure
7517 // we keep the GC informed. The word in the object where the value has been 7522 // we keep the GC informed. The word in the object where the value has been
7518 // written is in the address register. 7523 // written is in the address register.
7519 void RecordWriteStub::Generate(MacroAssembler* masm) { 7524 void RecordWriteStub::Generate(MacroAssembler* masm) {
7520 Label skip_to_incremental_noncompacting; 7525 Label skip_to_incremental_noncompacting;
7521 Label skip_to_incremental_compacting; 7526 Label skip_to_incremental_compacting;
7522 7527
7523 // The first two branch+nop instructions are generated with labels so as to 7528 // The first two branch+nop instructions are generated with labels so as to
7524 // get the offset fixed up correctly by the bind(Label*) call. We patch it 7529 // get the offset fixed up correctly by the bind(Label*) call. We patch it
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
7826 __ Pop(ra, t1, a1); 7831 __ Pop(ra, t1, a1);
7827 __ Ret(); 7832 __ Ret();
7828 } 7833 }
7829 7834
7830 7835
7831 #undef __ 7836 #undef __
7832 7837
7833 } } // namespace v8::internal 7838 } } // namespace v8::internal
7834 7839
7835 #endif // V8_TARGET_ARCH_MIPS 7840 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698