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

Side by Side Diff: src/ppc/macro-assembler-ppc.h

Issue 2424433002: [ic] Delete old KeyedLoadIC code (Closed)
Patch Set: fix failing test Created 4 years, 2 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/ppc/code-stubs-ppc.cc ('k') | src/ppc/macro-assembler-ppc.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 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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 // Inline caching support 663 // Inline caching support
664 664
665 // Generate code for checking access rights - used for security checks 665 // Generate code for checking access rights - used for security checks
666 // on access to global objects across environments. The holder register 666 // on access to global objects across environments. The holder register
667 // is left untouched, whereas both scratch registers are clobbered. 667 // is left untouched, whereas both scratch registers are clobbered.
668 void CheckAccessGlobalProxy(Register holder_reg, Register scratch, 668 void CheckAccessGlobalProxy(Register holder_reg, Register scratch,
669 Label* miss); 669 Label* miss);
670 670
671 void GetNumberHash(Register t0, Register scratch); 671 void GetNumberHash(Register t0, Register scratch);
672 672
673 void LoadFromNumberDictionary(Label* miss, Register elements, Register key,
674 Register result, Register t0, Register t1,
675 Register t2);
676
677
678 inline void MarkCode(NopMarkerTypes type) { nop(type); } 673 inline void MarkCode(NopMarkerTypes type) { nop(type); }
679 674
680 // Check if the given instruction is a 'type' marker. 675 // Check if the given instruction is a 'type' marker.
681 // i.e. check if is is a mov r<type>, r<type> (referenced as nop(type)) 676 // i.e. check if is is a mov r<type>, r<type> (referenced as nop(type))
682 // These instructions are generated to mark special location in the code, 677 // These instructions are generated to mark special location in the code,
683 // like some special IC code. 678 // like some special IC code.
684 static inline bool IsMarkedCode(Instr instr, int type) { 679 static inline bool IsMarkedCode(Instr instr, int type) {
685 DCHECK((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)); 680 DCHECK((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER));
686 return IsNop(instr, type); 681 return IsNop(instr, type);
687 } 682 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 // other registers. 807 // other registers.
813 // Type_reg can be no_reg. In that case ip is used. 808 // Type_reg can be no_reg. In that case ip is used.
814 void CompareObjectType(Register heap_object, Register map, Register type_reg, 809 void CompareObjectType(Register heap_object, Register map, Register type_reg,
815 InstanceType type); 810 InstanceType type);
816 811
817 // Compare instance type in a map. map contains a valid map object whose 812 // Compare instance type in a map. map contains a valid map object whose
818 // object type should be compared with the given type. This both 813 // object type should be compared with the given type. This both
819 // sets the flags and leaves the object type in the type_reg register. 814 // sets the flags and leaves the object type in the type_reg register.
820 void CompareInstanceType(Register map, Register type_reg, InstanceType type); 815 void CompareInstanceType(Register map, Register type_reg, InstanceType type);
821 816
822
823 // Check if a map for a JSObject indicates that the object has fast elements.
824 // Jump to the specified label if it does not.
825 void CheckFastElements(Register map, Register scratch, Label* fail);
826
827 // Check if a map for a JSObject indicates that the object can have both smi 817 // Check if a map for a JSObject indicates that the object can have both smi
828 // and HeapObject elements. Jump to the specified label if it does not. 818 // and HeapObject elements. Jump to the specified label if it does not.
829 void CheckFastObjectElements(Register map, Register scratch, Label* fail); 819 void CheckFastObjectElements(Register map, Register scratch, Label* fail);
830 820
831 // Check if a map for a JSObject indicates that the object has fast smi only 821 // Check if a map for a JSObject indicates that the object has fast smi only
832 // elements. Jump to the specified label if it does not. 822 // elements. Jump to the specified label if it does not.
833 void CheckFastSmiElements(Register map, Register scratch, Label* fail); 823 void CheckFastSmiElements(Register map, Register scratch, Label* fail);
834 824
835 // Check to see if maybe_number can be stored as a double in 825 // Check to see if maybe_number can be stored as a double in
836 // FastDoubleElements. If it can, store it at the index specified by key in 826 // FastDoubleElements. If it can, store it at the index specified by key in
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 inline MemOperand NativeContextMemOperand() { 1665 inline MemOperand NativeContextMemOperand() {
1676 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); 1666 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX);
1677 } 1667 }
1678 1668
1679 #define ACCESS_MASM(masm) masm-> 1669 #define ACCESS_MASM(masm) masm->
1680 1670
1681 } // namespace internal 1671 } // namespace internal
1682 } // namespace v8 1672 } // namespace v8
1683 1673
1684 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ 1674 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/code-stubs-ppc.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698