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

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

Issue 11941016: 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/arm/ic-arm.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 4514 matching lines...) Expand 10 before | Expand all | Expand 10 after
4525 // ----------------------------------- 4525 // -----------------------------------
4526 receiver = r0; 4526 receiver = r0;
4527 } 4527 }
4528 4528
4529 StubCompiler::GenerateLoadArrayLength(masm, receiver, r3, &miss); 4529 StubCompiler::GenerateLoadArrayLength(masm, receiver, r3, &miss);
4530 __ bind(&miss); 4530 __ bind(&miss);
4531 StubCompiler::GenerateLoadMiss(masm, kind()); 4531 StubCompiler::GenerateLoadMiss(masm, kind());
4532 } 4532 }
4533 4533
4534 4534
4535 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
4536 Label miss;
4537 Register receiver;
4538 if (kind() == Code::KEYED_LOAD_IC) {
4539 // ----------- S t a t e -------------
4540 // -- lr : return address
4541 // -- r0 : key
4542 // -- r1 : receiver
4543 // -----------------------------------
4544 __ cmp(r0, Operand(masm->isolate()->factory()->prototype_symbol()));
4545 __ b(ne, &miss);
4546 receiver = r1;
4547 } else {
4548 ASSERT(kind() == Code::LOAD_IC);
4549 // ----------- S t a t e -------------
4550 // -- r2 : name
4551 // -- lr : return address
4552 // -- r0 : receiver
4553 // -- sp[0] : receiver
4554 // -----------------------------------
4555 receiver = r0;
4556 }
4557
4558 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss);
4559 __ bind(&miss);
4560 StubCompiler::GenerateLoadMiss(masm, kind());
4561 }
4562
4563
4535 void StringLengthStub::Generate(MacroAssembler* masm) { 4564 void StringLengthStub::Generate(MacroAssembler* masm) {
4536 Label miss; 4565 Label miss;
4537 Register receiver; 4566 Register receiver;
4538 if (kind() == Code::KEYED_LOAD_IC) { 4567 if (kind() == Code::KEYED_LOAD_IC) {
4539 // ----------- S t a t e ------------- 4568 // ----------- S t a t e -------------
4540 // -- lr : return address 4569 // -- lr : return address
4541 // -- r0 : key 4570 // -- r0 : key
4542 // -- r1 : receiver 4571 // -- r1 : receiver
4543 // ----------------------------------- 4572 // -----------------------------------
4544 __ cmp(r0, Operand(masm->isolate()->factory()->length_symbol())); 4573 __ cmp(r0, Operand(masm->isolate()->factory()->length_symbol()));
(...skipping 3266 matching lines...) Expand 10 before | Expand all | Expand 10 after
7811 7840
7812 __ Pop(lr, r5, r1); 7841 __ Pop(lr, r5, r1);
7813 __ Ret(); 7842 __ Ret();
7814 } 7843 }
7815 7844
7816 #undef __ 7845 #undef __
7817 7846
7818 } } // namespace v8::internal 7847 } } // namespace v8::internal
7819 7848
7820 #endif // V8_TARGET_ARCH_ARM 7849 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698