Lines Matching defs:code
2 // Use of this source code is governed by a BSD-style license that can be
32 Object* target_code = Code::GetCodeFromTargetAddress(target);
39 inline unsigned CPURegister::code() const {
108 // kNoRegister types should always have size 0 and code 0.
179 Combine(other.code());
187 if (!other1.IsNone() && (other1.type() == type_)) Remove(other1.code());
188 if (!other2.IsNone() && (other2.type() == type_)) Remove(other2.code());
189 if (!other3.IsNone() && (other3.type() == type_)) Remove(other3.code());
190 if (!other4.IsNone() && (other4.type() == type_)) Remove(other4.code());
194 inline void CPURegList::Combine(int code) {
196 DCHECK(CPURegister::Create(code, size_, type_).IsValid());
197 list_ |= (1UL << code);
201 inline void CPURegList::Remove(int code) {
203 DCHECK(CPURegister::Create(code, size_, type_).IsValid());
204 list_ &= ~(1UL << code);
208 inline Register Register::XRegFromCode(unsigned code) {
209 if (code == kSPRegInternalCode) {
212 DCHECK(code < kNumberOfRegisters);
213 return Register::Create(code, kXRegSizeInBits);
218 inline Register Register::WRegFromCode(unsigned code) {
219 if (code == kSPRegInternalCode) {
222 DCHECK(code < kNumberOfRegisters);
223 return Register::Create(code, kWRegSizeInBits);
228 inline FPRegister FPRegister::SRegFromCode(unsigned code) {
229 DCHECK(code < kNumberOfFPRegisters);
230 return FPRegister::Create(code, kSRegSizeInBits);
234 inline FPRegister FPRegister::DRegFromCode(unsigned code) {
235 DCHECK(code < kNumberOfFPRegisters);
236 return FPRegister::Create(code, kDRegSizeInBits);
583 // Read/Modify the code target address in the branch/call instruction at pc.
590 Address Assembler::target_address_at(Address pc, Code* code) {
591 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL;
652 Address constant_pool_entry, Code* code, Address target) {
663 // instruction cache after patching a target address in the code as follows:
674 Code* code,
677 ConstantPoolArray* constant_pool = code ? code->constant_pool() : NULL;
788 Code* RelocInfo::code_age_stub() {
790 // Read the stub entry point from the code age sequence.
792 return Code::GetCodeFromTargetAddress(Memory::Address_at(stub_entry_address));
796 void RelocInfo::set_code_age_stub(Code* stub,
799 DCHECK(!Code::IsYoungSequence(stub->GetIsolate(), pc_));
800 // Overwrite the stub entry point in the code age sequence. This is loaded as
821 Object* target_code = Code::GetCodeFromTargetAddress(target);
844 return i1->IsLdrLiteralX() && (i1->Rt() == ip0.code()) &&
845 i2->IsBranchAndLinkToRegister() && (i2->Rn() == ip0.code());