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

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

Issue 12560004: MIPS: Polymorphism support for load IC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « 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 4707 matching lines...) Expand 10 before | Expand all | Expand 10 after
4718 StubCompiler::GenerateStoreMiss(masm, kind()); 4718 StubCompiler::GenerateStoreMiss(masm, kind());
4719 } 4719 }
4720 4720
4721 4721
4722 Register InstanceofStub::left() { return a0; } 4722 Register InstanceofStub::left() { return a0; }
4723 4723
4724 4724
4725 Register InstanceofStub::right() { return a1; } 4725 Register InstanceofStub::right() { return a1; }
4726 4726
4727 4727
4728 void LoadFieldStub::Generate(MacroAssembler* masm) {
4729 StubCompiler::DoGenerateFastPropertyLoad(masm, v0, reg_, inobject_, index_);
4730 __ Ret();
4731 }
4732
4733
4728 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { 4734 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
4729 // The displacement is the offset of the last parameter (if any) 4735 // The displacement is the offset of the last parameter (if any)
4730 // relative to the frame pointer. 4736 // relative to the frame pointer.
4731 const int kDisplacement = 4737 const int kDisplacement =
4732 StandardFrameConstants::kCallerSPOffset - kPointerSize; 4738 StandardFrameConstants::kCallerSPOffset - kPointerSize;
4733 4739
4734 // Check that the key is a smiGenerateReadElement. 4740 // Check that the key is a smiGenerateReadElement.
4735 Label slow; 4741 Label slow;
4736 __ JumpIfNotSmi(a1, &slow); 4742 __ JumpIfNotSmi(a1, &slow);
4737 4743
(...skipping 3405 matching lines...) Expand 10 before | Expand all | Expand 10 after
8143 __ Pop(ra, t1, a1); 8149 __ Pop(ra, t1, a1);
8144 __ Ret(); 8150 __ Ret();
8145 } 8151 }
8146 8152
8147 8153
8148 #undef __ 8154 #undef __
8149 8155
8150 } } // namespace v8::internal 8156 } } // namespace v8::internal
8151 8157
8152 #endif // V8_TARGET_ARCH_MIPS 8158 #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