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

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

Issue 7886028: MIPS: port Remove in-loop tracking for call ICs. (Closed)
Patch Set: Created 9 years, 3 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') | 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 Code::Kind kind, 388 Code::Kind kind,
389 Code::ExtraICState extra_ic_state) { 389 Code::ExtraICState extra_ic_state) {
390 // ----------- S t a t e ------------- 390 // ----------- S t a t e -------------
391 // -- a1 : receiver 391 // -- a1 : receiver
392 // -- a2 : name 392 // -- a2 : name
393 // ----------------------------------- 393 // -----------------------------------
394 Label number, non_number, non_string, boolean, probe, miss; 394 Label number, non_number, non_string, boolean, probe, miss;
395 395
396 // Probe the stub cache. 396 // Probe the stub cache.
397 Code::Flags flags = Code::ComputeFlags(kind, 397 Code::Flags flags = Code::ComputeFlags(kind,
398 NOT_IN_LOOP,
399 MONOMORPHIC, 398 MONOMORPHIC,
400 extra_ic_state, 399 extra_ic_state,
401 NORMAL, 400 NORMAL,
402 argc); 401 argc);
403 Isolate::Current()->stub_cache()->GenerateProbe( 402 Isolate::Current()->stub_cache()->GenerateProbe(
404 masm, flags, a1, a2, a3, t0, t1); 403 masm, flags, a1, a2, a3, t0, t1);
405 404
406 // If the stub cache probing failed, the receiver might be a value. 405 // If the stub cache probing failed, the receiver might be a value.
407 // For value objects, we use the map of the prototype objects for 406 // For value objects, we use the map of the prototype objects for
408 // the corresponding JSValue for the cache and that is what we need 407 // the corresponding JSValue for the cache and that is what we need
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 724
726 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { 725 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) {
727 // ----------- S t a t e ------------- 726 // ----------- S t a t e -------------
728 // -- a2 : name 727 // -- a2 : name
729 // -- ra : return address 728 // -- ra : return address
730 // -- a0 : receiver 729 // -- a0 : receiver
731 // -- sp[0] : receiver 730 // -- sp[0] : receiver
732 // ----------------------------------- 731 // -----------------------------------
733 732
734 // Probe the stub cache. 733 // Probe the stub cache.
735 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, 734 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC);
736 NOT_IN_LOOP,
737 MONOMORPHIC);
738 Isolate::Current()->stub_cache()->GenerateProbe( 735 Isolate::Current()->stub_cache()->GenerateProbe(
739 masm, flags, a0, a2, a3, t0, t1); 736 masm, flags, a0, a2, a3, t0, t1);
740 737
741 // Cache miss: Jump to runtime. 738 // Cache miss: Jump to runtime.
742 GenerateMiss(masm); 739 GenerateMiss(masm);
743 } 740 }
744 741
745 742
746 void LoadIC::GenerateNormal(MacroAssembler* masm) { 743 void LoadIC::GenerateNormal(MacroAssembler* masm) {
747 // ----------- S t a t e ------------- 744 // ----------- S t a t e -------------
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1388 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1385 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1389 StrictModeFlag strict_mode) { 1386 StrictModeFlag strict_mode) {
1390 // ----------- S t a t e ------------- 1387 // ----------- S t a t e -------------
1391 // -- a0 : value 1388 // -- a0 : value
1392 // -- a1 : receiver 1389 // -- a1 : receiver
1393 // -- a2 : name 1390 // -- a2 : name
1394 // -- ra : return address 1391 // -- ra : return address
1395 // ----------------------------------- 1392 // -----------------------------------
1396 1393
1397 // Get the receiver from the stack and probe the stub cache. 1394 // Get the receiver from the stack and probe the stub cache.
1398 Code::Flags flags = Code::ComputeFlags(Code::STORE_IC, 1395 Code::Flags flags =
1399 NOT_IN_LOOP, 1396 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode);
1400 MONOMORPHIC,
1401 strict_mode);
1402 Isolate::Current()->stub_cache()->GenerateProbe( 1397 Isolate::Current()->stub_cache()->GenerateProbe(
1403 masm, flags, a1, a2, a3, t0, t1); 1398 masm, flags, a1, a2, a3, t0, t1);
1404 1399
1405 // Cache miss: Jump to runtime. 1400 // Cache miss: Jump to runtime.
1406 GenerateMiss(masm); 1401 GenerateMiss(masm);
1407 } 1402 }
1408 1403
1409 1404
1410 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1405 void StoreIC::GenerateMiss(MacroAssembler* masm) {
1411 // ----------- S t a t e ------------- 1406 // ----------- S t a t e -------------
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch)); 1626 Register reg = Register::from_code(Assembler::GetRs(instr_at_patch));
1632 patcher.masm()->andi(at, reg, kSmiTagMask); 1627 patcher.masm()->andi(at, reg, kSmiTagMask);
1633 patcher.ChangeBranchCondition(eq); 1628 patcher.ChangeBranchCondition(eq);
1634 } 1629 }
1635 } 1630 }
1636 1631
1637 1632
1638 } } // namespace v8::internal 1633 } } // namespace v8::internal
1639 1634
1640 #endif // V8_TARGET_ARCH_MIPS 1635 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698