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

Side by Side Diff: src/ic/mips64/ic-compiler-mips64.cc

Issue 498203002: MIPS: Move PropertyAccessCompiler and CallOptimization to their own files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/ic/mips64/access-compiler-mips64.cc ('k') | tools/gyp/v8.gyp » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/ic/call-optimization.h"
9 #include "src/ic/ic-compiler.h" 10 #include "src/ic/ic-compiler.h"
10 11
11 namespace v8 { 12 namespace v8 {
12 namespace internal { 13 namespace internal {
13 14
14 #define __ ACCESS_MASM(masm) 15 #define __ ACCESS_MASM(masm)
15 16
16 17
17 void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup( 18 void PropertyHandlerCompiler::GenerateDictionaryNegativeLookup(
18 MacroAssembler* masm, Label* miss_label, Register receiver, 19 MacroAssembler* masm, Label* miss_label, Register receiver,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL; 195 ExternalReference::Type type = ExternalReference::DIRECT_API_CALL;
195 ExternalReference ref = ExternalReference(&fun, type, masm->isolate()); 196 ExternalReference ref = ExternalReference(&fun, type, masm->isolate());
196 __ li(api_function_address, Operand(ref)); 197 __ li(api_function_address, Operand(ref));
197 198
198 // Jump to stub. 199 // Jump to stub.
199 CallApiFunctionStub stub(isolate, is_store, call_data_undefined, argc); 200 CallApiFunctionStub stub(isolate, is_store, call_data_undefined, argc);
200 __ TailCallStub(&stub); 201 __ TailCallStub(&stub);
201 } 202 }
202 203
203 204
204 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm,
205 Handle<Code> code) {
206 __ Jump(code, RelocInfo::CODE_TARGET);
207 }
208
209
210 #undef __ 205 #undef __
211 #define __ ACCESS_MASM(masm()) 206 #define __ ACCESS_MASM(masm())
212 207
213 208
214 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, 209 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label,
215 Handle<Name> name) { 210 Handle<Name> name) {
216 if (!label->is_unused()) { 211 if (!label->is_unused()) {
217 __ bind(label); 212 __ bind(label);
218 __ li(this->name(), Operand(name)); 213 __ li(this->name(), Operand(name));
219 } 214 }
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 // Do tail-call to the runtime system. 735 // Do tail-call to the runtime system.
741 ExternalReference store_ic_property = ExternalReference( 736 ExternalReference store_ic_property = ExternalReference(
742 IC_Utility(IC::kStorePropertyWithInterceptor), isolate()); 737 IC_Utility(IC::kStorePropertyWithInterceptor), isolate());
743 __ TailCallExternalReference(store_ic_property, 3, 1); 738 __ TailCallExternalReference(store_ic_property, 3, 1);
744 739
745 // Return the generated code. 740 // Return the generated code.
746 return GetCode(kind(), Code::FAST, name); 741 return GetCode(kind(), Code::FAST, name);
747 } 742 }
748 743
749 744
750 Register* PropertyAccessCompiler::load_calling_convention() {
751 // receiver, name, scratch1, scratch2, scratch3, scratch4.
752 Register receiver = LoadIC::ReceiverRegister();
753 Register name = LoadIC::NameRegister();
754 static Register registers[] = {receiver, name, a3, a0, a4, a5};
755 return registers;
756 }
757
758
759 Register* PropertyAccessCompiler::store_calling_convention() {
760 // receiver, name, scratch1, scratch2, scratch3.
761 Register receiver = StoreIC::ReceiverRegister();
762 Register name = StoreIC::NameRegister();
763 DCHECK(a3.is(KeyedStoreIC::MapRegister()));
764 static Register registers[] = {receiver, name, a3, a4, a5};
765 return registers;
766 }
767
768
769 Register NamedStoreHandlerCompiler::value() { return StoreIC::ValueRegister(); } 745 Register NamedStoreHandlerCompiler::value() { return StoreIC::ValueRegister(); }
770 746
771 747
772 #undef __ 748 #undef __
773 #define __ ACCESS_MASM(masm) 749 #define __ ACCESS_MASM(masm)
774 750
775 751
776 void NamedLoadHandlerCompiler::GenerateLoadViaGetter( 752 void NamedLoadHandlerCompiler::GenerateLoadViaGetter(
777 MacroAssembler* masm, Handle<HeapType> type, Register receiver, 753 MacroAssembler* masm, Handle<HeapType> type, Register receiver,
778 Handle<JSFunction> getter) { 754 Handle<JSFunction> getter) {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 // Do tail-call to runtime routine. 951 // Do tail-call to runtime routine.
976 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); 952 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
977 } 953 }
978 954
979 955
980 #undef __ 956 #undef __
981 } 957 }
982 } // namespace v8::internal 958 } // namespace v8::internal
983 959
984 #endif // V8_TARGET_ARCH_MIPS64 960 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/access-compiler-mips64.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698