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

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

Issue 12049015: MIPS: Migrate FunctionPrototype (Keyed|Named)LoadIC to CodeStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/mips/ic-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 4555 matching lines...) Expand 10 before | Expand all | Expand 10 after
4566 // ----------------------------------- 4566 // -----------------------------------
4567 receiver = a0; 4567 receiver = a0;
4568 } 4568 }
4569 4569
4570 StubCompiler::GenerateLoadArrayLength(masm, receiver, a3, &miss); 4570 StubCompiler::GenerateLoadArrayLength(masm, receiver, a3, &miss);
4571 __ bind(&miss); 4571 __ bind(&miss);
4572 StubCompiler::GenerateLoadMiss(masm, kind()); 4572 StubCompiler::GenerateLoadMiss(masm, kind());
4573 } 4573 }
4574 4574
4575 4575
4576 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
4577 Label miss;
4578 Register receiver;
4579 if (kind() == Code::KEYED_LOAD_IC) {
4580 // ----------- S t a t e -------------
4581 // -- ra : return address
4582 // -- a0 : key
4583 // -- a1 : receiver
4584 // -----------------------------------
4585 __ Branch(&miss, ne, a0,
4586 Operand(masm->isolate()->factory()->prototype_symbol()));
4587 receiver = a1;
4588 } else {
4589 ASSERT(kind() == Code::LOAD_IC);
4590 // ----------- S t a t e -------------
4591 // -- a2 : name
4592 // -- ra : return address
4593 // -- a0 : receiver
4594 // -- sp[0] : receiver
4595 // -----------------------------------
4596 receiver = a0;
4597 }
4598
4599 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, a3, t0, &miss);
4600 __ bind(&miss);
4601 StubCompiler::GenerateLoadMiss(masm, kind());
4602 }
4603
4604
4576 void StringLengthStub::Generate(MacroAssembler* masm) { 4605 void StringLengthStub::Generate(MacroAssembler* masm) {
4577 Label miss; 4606 Label miss;
4578 Register receiver; 4607 Register receiver;
4579 if (kind() == Code::KEYED_LOAD_IC) { 4608 if (kind() == Code::KEYED_LOAD_IC) {
4580 // ----------- S t a t e ------------- 4609 // ----------- S t a t e -------------
4581 // -- ra : return address 4610 // -- ra : return address
4582 // -- a0 : key 4611 // -- a0 : key
4583 // -- a1 : receiver 4612 // -- a1 : receiver
4584 // ----------------------------------- 4613 // -----------------------------------
4585 __ Branch(&miss, ne, a0, 4614 __ Branch(&miss, ne, a0,
(...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after
7936 __ Pop(ra, t1, a1); 7965 __ Pop(ra, t1, a1);
7937 __ Ret(); 7966 __ Ret();
7938 } 7967 }
7939 7968
7940 7969
7941 #undef __ 7970 #undef __
7942 7971
7943 } } // namespace v8::internal 7972 } } // namespace v8::internal
7944 7973
7945 #endif // V8_TARGET_ARCH_MIPS 7974 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698