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

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

Issue 164283008: MIPS: Remove HandlerKindField and just encode the handlerkind as the only extra-ic-state. (Closed) Base URL: git@github.com:paul99/v8m-rb.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // map: key map 332 // map: key map
333 __ lbu(hash, FieldMemOperand(map, Map::kInstanceTypeOffset)); 333 __ lbu(hash, FieldMemOperand(map, Map::kInstanceTypeOffset));
334 STATIC_ASSERT(kInternalizedTag == 0); 334 STATIC_ASSERT(kInternalizedTag == 0);
335 __ And(at, hash, Operand(kIsNotInternalizedMask)); 335 __ And(at, hash, Operand(kIsNotInternalizedMask));
336 __ Branch(not_unique, ne, at, Operand(zero_reg)); 336 __ Branch(not_unique, ne, at, Operand(zero_reg));
337 337
338 __ bind(&unique); 338 __ bind(&unique);
339 } 339 }
340 340
341 341
342 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, 342 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
343 ExtraICState extra_state) {
344 // ----------- S t a t e ------------- 343 // ----------- S t a t e -------------
345 // -- a2 : name 344 // -- a2 : name
346 // -- ra : return address 345 // -- ra : return address
347 // -- a0 : receiver 346 // -- a0 : receiver
348 // ----------------------------------- 347 // -----------------------------------
349 348
350 // Probe the stub cache. 349 // Probe the stub cache.
351 Code::Flags flags = Code::ComputeHandlerFlags(Code::LOAD_IC, extra_state); 350 Code::Flags flags = Code::ComputeHandlerFlags(Code::LOAD_IC);
352 masm->isolate()->stub_cache()->GenerateProbe( 351 masm->isolate()->stub_cache()->GenerateProbe(
353 masm, flags, a0, a2, a3, t0, t1, t2); 352 masm, flags, a0, a2, a3, t0, t1, t2);
354 353
355 // Cache miss: Jump to runtime. 354 // Cache miss: Jump to runtime.
356 GenerateMiss(masm); 355 GenerateMiss(masm);
357 } 356 }
358 357
359 358
360 void LoadIC::GenerateNormal(MacroAssembler* masm) { 359 void LoadIC::GenerateNormal(MacroAssembler* masm) {
361 // ----------- S t a t e ------------- 360 // ----------- S t a t e -------------
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 1171
1173 // The slow case calls into the runtime to complete the store without causing 1172 // The slow case calls into the runtime to complete the store without causing
1174 // an IC miss that would otherwise cause a transition to the generic stub. 1173 // an IC miss that would otherwise cause a transition to the generic stub.
1175 ExternalReference ref = 1174 ExternalReference ref =
1176 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); 1175 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1177 1176
1178 __ TailCallExternalReference(ref, 3, 1); 1177 __ TailCallExternalReference(ref, 3, 1);
1179 } 1178 }
1180 1179
1181 1180
1182 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1181 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
1183 ExtraICState extra_state) {
1184 // ----------- S t a t e ------------- 1182 // ----------- S t a t e -------------
1185 // -- a0 : value 1183 // -- a0 : value
1186 // -- a1 : receiver 1184 // -- a1 : receiver
1187 // -- a2 : name 1185 // -- a2 : name
1188 // -- ra : return address 1186 // -- ra : return address
1189 // ----------------------------------- 1187 // -----------------------------------
1190 1188
1191 // Get the receiver from the stack and probe the stub cache. 1189 // Get the receiver from the stack and probe the stub cache.
1192 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC, extra_state); 1190 Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC);
1193 masm->isolate()->stub_cache()->GenerateProbe( 1191 masm->isolate()->stub_cache()->GenerateProbe(
1194 masm, flags, a1, a2, a3, t0, t1, t2); 1192 masm, flags, a1, a2, a3, t0, t1, t2);
1195 1193
1196 // Cache miss: Jump to runtime. 1194 // Cache miss: Jump to runtime.
1197 GenerateMiss(masm); 1195 GenerateMiss(masm);
1198 } 1196 }
1199 1197
1200 1198
1201 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1199 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1202 // ----------- S t a t e ------------- 1200 // ----------- S t a t e -------------
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 } else { 1347 } else {
1350 ASSERT(Assembler::IsBne(branch_instr)); 1348 ASSERT(Assembler::IsBne(branch_instr));
1351 patcher.ChangeBranchCondition(eq); 1349 patcher.ChangeBranchCondition(eq);
1352 } 1350 }
1353 } 1351 }
1354 1352
1355 1353
1356 } } // namespace v8::internal 1354 } } // namespace v8::internal
1357 1355
1358 #endif // V8_TARGET_ARCH_MIPS 1356 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698