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

Side by Side Diff: src/mips/ic-mips.cc

Issue 195693002: MIPS: Eliminate extended mode, and other modes clean-up (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 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
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.h » ('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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 796
797 StubRuntimeCallHelper call_helper; 797 StubRuntimeCallHelper call_helper;
798 char_at_generator.GenerateSlow(masm, call_helper); 798 char_at_generator.GenerateSlow(masm, call_helper);
799 799
800 __ bind(&miss); 800 __ bind(&miss);
801 GenerateMiss(masm); 801 GenerateMiss(masm);
802 } 802 }
803 803
804 804
805 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, 805 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm,
806 StrictModeFlag strict_mode) { 806 StrictMode strict_mode) {
807 // ---------- S t a t e -------------- 807 // ---------- S t a t e --------------
808 // -- a0 : value 808 // -- a0 : value
809 // -- a1 : key 809 // -- a1 : key
810 // -- a2 : receiver 810 // -- a2 : receiver
811 // -- ra : return address 811 // -- ra : return address
812 // ----------------------------------- 812 // -----------------------------------
813 813
814 // Push receiver, key and value for runtime call. 814 // Push receiver, key and value for runtime call.
815 __ Push(a2, a1, a0); 815 __ Push(a2, a1, a0);
816 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes. 816 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 slow); 988 slow);
989 ASSERT(receiver_map.is(a3)); // Transition code expects map in a3 989 ASSERT(receiver_map.is(a3)); // Transition code expects map in a3
990 mode = AllocationSite::GetMode(FAST_DOUBLE_ELEMENTS, FAST_ELEMENTS); 990 mode = AllocationSite::GetMode(FAST_DOUBLE_ELEMENTS, FAST_ELEMENTS);
991 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, slow); 991 ElementsTransitionGenerator::GenerateDoubleToObject(masm, mode, slow);
992 __ lw(elements, FieldMemOperand(receiver, JSObject::kElementsOffset)); 992 __ lw(elements, FieldMemOperand(receiver, JSObject::kElementsOffset));
993 __ jmp(&finish_object_store); 993 __ jmp(&finish_object_store);
994 } 994 }
995 995
996 996
997 void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm, 997 void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm,
998 StrictModeFlag strict_mode) { 998 StrictMode strict_mode) {
999 // ---------- S t a t e -------------- 999 // ---------- S t a t e --------------
1000 // -- a0 : value 1000 // -- a0 : value
1001 // -- a1 : key 1001 // -- a1 : key
1002 // -- a2 : receiver 1002 // -- a2 : receiver
1003 // -- ra : return address 1003 // -- ra : return address
1004 // ----------------------------------- 1004 // -----------------------------------
1005 Label slow, fast_object, fast_object_grow; 1005 Label slow, fast_object, fast_object_grow;
1006 Label fast_double, fast_double_grow; 1006 Label fast_double, fast_double_grow;
1007 Label array, extra, check_if_double_array; 1007 Label array, extra, check_if_double_array;
1008 1008
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
1231 __ IncrementCounter(counters->store_normal_hit(), 1, t0, t1); 1231 __ IncrementCounter(counters->store_normal_hit(), 1, t0, t1);
1232 __ Ret(); 1232 __ Ret();
1233 1233
1234 __ bind(&miss); 1234 __ bind(&miss);
1235 __ IncrementCounter(counters->store_normal_miss(), 1, t0, t1); 1235 __ IncrementCounter(counters->store_normal_miss(), 1, t0, t1);
1236 GenerateMiss(masm); 1236 GenerateMiss(masm);
1237 } 1237 }
1238 1238
1239 1239
1240 void StoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, 1240 void StoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm,
1241 StrictModeFlag strict_mode) { 1241 StrictMode strict_mode) {
1242 // ----------- S t a t e ------------- 1242 // ----------- S t a t e -------------
1243 // -- a0 : value 1243 // -- a0 : value
1244 // -- a1 : receiver 1244 // -- a1 : receiver
1245 // -- a2 : name 1245 // -- a2 : name
1246 // -- ra : return address 1246 // -- ra : return address
1247 // ----------------------------------- 1247 // -----------------------------------
1248 1248
1249 __ Push(a1, a2, a0); 1249 __ Push(a1, a2, a0);
1250 1250
1251 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes. 1251 __ li(a1, Operand(Smi::FromInt(NONE))); // PropertyAttributes.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 } else { 1350 } else {
1351 ASSERT(Assembler::IsBne(branch_instr)); 1351 ASSERT(Assembler::IsBne(branch_instr));
1352 patcher.ChangeBranchCondition(eq); 1352 patcher.ChangeBranchCondition(eq);
1353 } 1353 }
1354 } 1354 }
1355 1355
1356 1356
1357 } } // namespace v8::internal 1357 } } // namespace v8::internal
1358 1358
1359 #endif // V8_TARGET_ARCH_MIPS 1359 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips/lithium-codegen-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698