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

Side by Side Diff: src/a64/assembler-a64.h

Issue 136203005: A64: Implement patchable inline code for InstanceOfKnownGlobal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/a64/code-stubs-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1687 1687
1688 private: 1688 private:
1689 Assembler* assem_; 1689 Assembler* assem_;
1690 1690
1691 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); 1691 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope);
1692 }; 1692 };
1693 1693
1694 // Check if is time to emit a constant pool. 1694 // Check if is time to emit a constant pool.
1695 void CheckConstPool(bool force_emit, bool require_jump); 1695 void CheckConstPool(bool force_emit, bool require_jump);
1696 1696
1697 // Available for constrained code generation scopes. Prefer
1698 // MacroAssembler::Mov() when possible.
1699 inline void LoadRelocated(const CPURegister& rt, const Operand& operand);
1700
1697 protected: 1701 protected:
1698 inline const Register& AppropriateZeroRegFor(const CPURegister& reg) const; 1702 inline const Register& AppropriateZeroRegFor(const CPURegister& reg) const;
1699 1703
1700 void LoadStore(const CPURegister& rt, 1704 void LoadStore(const CPURegister& rt,
1701 const MemOperand& addr, 1705 const MemOperand& addr,
1702 LoadStoreOp op); 1706 LoadStoreOp op);
1703 static bool IsImmLSUnscaled(ptrdiff_t offset); 1707 static bool IsImmLSUnscaled(ptrdiff_t offset);
1704 static bool IsImmLSScaled(ptrdiff_t offset, LSDataSize size); 1708 static bool IsImmLSScaled(ptrdiff_t offset, LSDataSize size);
1705 1709
1706 void Logical(const Register& rd, 1710 void Logical(const Register& rd,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 Extend extend, 1747 Extend extend,
1744 unsigned left_shift); 1748 unsigned left_shift);
1745 1749
1746 void AddSub(const Register& rd, 1750 void AddSub(const Register& rd,
1747 const Register& rn, 1751 const Register& rn,
1748 const Operand& operand, 1752 const Operand& operand,
1749 FlagsUpdate S, 1753 FlagsUpdate S,
1750 AddSubOp op); 1754 AddSubOp op);
1751 static bool IsImmAddSub(int64_t immediate); 1755 static bool IsImmAddSub(int64_t immediate);
1752 1756
1753 inline void LoadRelocated(const CPURegister& rt, const Operand& operand);
1754
1755 static bool IsImmFP32(float imm); 1757 static bool IsImmFP32(float imm);
1756 static bool IsImmFP64(double imm); 1758 static bool IsImmFP64(double imm);
1757 1759
1758 // Find an appropriate LoadStoreOp or LoadStorePairOp for the specified 1760 // Find an appropriate LoadStoreOp or LoadStorePairOp for the specified
1759 // registers. Only simple loads are supported; sign- and zero-extension (such 1761 // registers. Only simple loads are supported; sign- and zero-extension (such
1760 // as in LDPSW_x or LDRB_w) are not supported. 1762 // as in LDPSW_x or LDRB_w) are not supported.
1761 static inline LoadStoreOp LoadOpFor(const CPURegister& rt); 1763 static inline LoadStoreOp LoadOpFor(const CPURegister& rt);
1762 static inline LoadStorePairOp LoadPairOpFor(const CPURegister& rt, 1764 static inline LoadStorePairOp LoadPairOpFor(const CPURegister& rt,
1763 const CPURegister& rt2); 1765 const CPURegister& rt2);
1764 static inline LoadStoreOp StoreOpFor(const CPURegister& rt); 1766 static inline LoadStoreOp StoreOpFor(const CPURegister& rt);
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 class EnsureSpace BASE_EMBEDDED { 2031 class EnsureSpace BASE_EMBEDDED {
2030 public: 2032 public:
2031 explicit EnsureSpace(Assembler* assembler) { 2033 explicit EnsureSpace(Assembler* assembler) {
2032 assembler->CheckBuffer(); 2034 assembler->CheckBuffer();
2033 } 2035 }
2034 }; 2036 };
2035 2037
2036 } } // namespace v8::internal 2038 } } // namespace v8::internal
2037 2039
2038 #endif // V8_A64_ASSEMBLER_A64_H_ 2040 #endif // V8_A64_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « no previous file | src/a64/code-stubs-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698