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

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

Issue 12340112: Polymorphism support for load IC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added ARM port, introduced GenerateTailCall Created 7 years, 9 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/code-stubs.cc ('k') | src/ia32/ic-ia32.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 3390 matching lines...) Expand 10 before | Expand all | Expand 10 after
3401 ExternalReference ref = 3401 ExternalReference ref =
3402 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); 3402 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate());
3403 __ TailCallExternalReference(ref, 2, 1); 3403 __ TailCallExternalReference(ref, 2, 1);
3404 3404
3405 __ bind(&miss); 3405 __ bind(&miss);
3406 3406
3407 StubCompiler::GenerateStoreMiss(masm, kind()); 3407 StubCompiler::GenerateStoreMiss(masm, kind());
3408 } 3408 }
3409 3409
3410 3410
3411 void LoadFieldStub::Generate(MacroAssembler* masm) {
3412 StubCompiler::DoGenerateFastPropertyLoad(masm, eax, reg_, inobject_, index_);
3413 __ ret(0);
3414 }
3415
3416
3411 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 3417 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
3412 // The key is in edx and the parameter count is in eax. 3418 // The key is in edx and the parameter count is in eax.
3413 3419
3414 // The displacement is used for skipping the frame pointer on the 3420 // The displacement is used for skipping the frame pointer on the
3415 // stack. It is the offset of the last parameter (if any) relative 3421 // stack. It is the offset of the last parameter (if any) relative
3416 // to the frame pointer. 3422 // to the frame pointer.
3417 static const int kDisplacement = 1 * kPointerSize; 3423 static const int kDisplacement = 1 * kPointerSize;
3418 3424
3419 // Check that the key is a smi. 3425 // Check that the key is a smi.
3420 Label slow; 3426 Label slow;
(...skipping 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after
7865 // Restore ecx. 7871 // Restore ecx.
7866 __ pop(ecx); 7872 __ pop(ecx);
7867 __ ret(0); 7873 __ ret(0);
7868 } 7874 }
7869 7875
7870 #undef __ 7876 #undef __
7871 7877
7872 } } // namespace v8::internal 7878 } } // namespace v8::internal
7873 7879
7874 #endif // V8_TARGET_ARCH_IA32 7880 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698