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

Side by Side Diff: src/x64/code-stubs-x64.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 | « src/stub-cache.cc ('k') | src/x64/ic-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 2369 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 // ----------------------------------- 2380 // -----------------------------------
2381 receiver = rax; 2381 receiver = rax;
2382 } 2382 }
2383 2383
2384 StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss); 2384 StubCompiler::GenerateLoadArrayLength(masm, receiver, r8, &miss);
2385 __ bind(&miss); 2385 __ bind(&miss);
2386 StubCompiler::GenerateLoadMiss(masm, kind()); 2386 StubCompiler::GenerateLoadMiss(masm, kind());
2387 } 2387 }
2388 2388
2389 2389
2390 void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
2391 Label miss;
2392 Register receiver;
2393 if (kind() == Code::KEYED_LOAD_IC) {
2394 // ----------- S t a t e -------------
2395 // -- rax : key
2396 // -- rdx : receiver
2397 // -- rsp[0] : return address
2398 // -----------------------------------
2399 __ Cmp(rax, masm->isolate()->factory()->prototype_symbol());
2400 receiver = rdx;
2401 } else {
2402 ASSERT(kind() == Code::LOAD_IC);
2403 // ----------- S t a t e -------------
2404 // -- rax : receiver
2405 // -- rcx : name
2406 // -- rsp[0] : return address
2407 // -----------------------------------
2408 receiver = rax;
2409 }
2410
2411 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r8, r9, &miss);
2412 __ bind(&miss);
2413 StubCompiler::GenerateLoadMiss(masm, kind());
2414 }
2415
2416
2390 void StringLengthStub::Generate(MacroAssembler* masm) { 2417 void StringLengthStub::Generate(MacroAssembler* masm) {
2391 Label miss; 2418 Label miss;
2392 Register receiver; 2419 Register receiver;
2393 if (kind() == Code::KEYED_LOAD_IC) { 2420 if (kind() == Code::KEYED_LOAD_IC) {
2394 // ----------- S t a t e ------------- 2421 // ----------- S t a t e -------------
2395 // -- rax : key 2422 // -- rax : key
2396 // -- rdx : receiver 2423 // -- rdx : receiver
2397 // -- rsp[0] : return address 2424 // -- rsp[0] : return address
2398 // ----------------------------------- 2425 // -----------------------------------
2399 __ Cmp(rax, masm->isolate()->factory()->length_symbol()); 2426 __ Cmp(rax, masm->isolate()->factory()->length_symbol());
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after
6595 #endif 6622 #endif
6596 6623
6597 __ Ret(); 6624 __ Ret();
6598 } 6625 }
6599 6626
6600 #undef __ 6627 #undef __
6601 6628
6602 } } // namespace v8::internal 6629 } } // namespace v8::internal
6603 6630
6604 #endif // V8_TARGET_ARCH_X64 6631 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698