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

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

Issue 2455953002: [ic] Remove unnecessary access rights checks from the IC handlers. (Closed)
Patch Set: Addressing comments and rebasing Created 4 years, 1 month 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/mips64/macro-assembler-mips64.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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // Push a new stack handler and link into stack handler chain. 655 // Push a new stack handler and link into stack handler chain.
656 void PushStackHandler(); 656 void PushStackHandler();
657 657
658 // Unlink the stack handler on top of the stack from the stack handler chain. 658 // Unlink the stack handler on top of the stack from the stack handler chain.
659 // Must preserve the result register. 659 // Must preserve the result register.
660 void PopStackHandler(); 660 void PopStackHandler();
661 661
662 // --------------------------------------------------------------------------- 662 // ---------------------------------------------------------------------------
663 // Inline caching support 663 // Inline caching support
664 664
665 // Generate code for checking access rights - used for security checks
666 // on access to global objects across environments. The holder register
667 // is left untouched, whereas both scratch registers are clobbered.
668 void CheckAccessGlobalProxy(Register holder_reg, Register scratch,
669 Label* miss);
670
671 void GetNumberHash(Register t0, Register scratch); 665 void GetNumberHash(Register t0, Register scratch);
672 666
673 inline void MarkCode(NopMarkerTypes type) { nop(type); } 667 inline void MarkCode(NopMarkerTypes type) { nop(type); }
674 668
675 // Check if the given instruction is a 'type' marker. 669 // Check if the given instruction is a 'type' marker.
676 // i.e. check if is is a mov r<type>, r<type> (referenced as nop(type)) 670 // i.e. check if is is a mov r<type>, r<type> (referenced as nop(type))
677 // These instructions are generated to mark special location in the code, 671 // These instructions are generated to mark special location in the code,
678 // like some special IC code. 672 // like some special IC code.
679 static inline bool IsMarkedCode(Instr instr, int type) { 673 static inline bool IsMarkedCode(Instr instr, int type) {
680 DCHECK((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER)); 674 DCHECK((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER));
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 inline MemOperand NativeContextMemOperand() { 1647 inline MemOperand NativeContextMemOperand() {
1654 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); 1648 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX);
1655 } 1649 }
1656 1650
1657 #define ACCESS_MASM(masm) masm-> 1651 #define ACCESS_MASM(masm) masm->
1658 1652
1659 } // namespace internal 1653 } // namespace internal
1660 } // namespace v8 1654 } // namespace v8
1661 1655
1662 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ 1656 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698