Lines Matching refs:scratch

86                                Register scratch,  in StoreRoot()  argument
91 mov(scratch, Immediate(index)); in StoreRoot()
92 mov(Operand::StaticArray(scratch, times_pointer_size, roots_array_start), in StoreRoot()
98 Register scratch, in CompareRoot() argument
102 mov(scratch, Immediate(index)); in CompareRoot()
103 cmp(with, Operand::StaticArray(scratch, in CompareRoot()
126 Register scratch, in InNewSpace() argument
131 if (scratch.is(object)) { in InNewSpace()
132 and_(scratch, Immediate(~Page::kPageAlignmentMask)); in InNewSpace()
134 mov(scratch, Immediate(~Page::kPageAlignmentMask)); in InNewSpace()
135 and_(scratch, object); in InNewSpace()
143 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in InNewSpace()
152 Register scratch, in RememberedSetHelper() argument
158 JumpIfNotInNewSpace(object, scratch, &ok, Label::kNear); in RememberedSetHelper()
165 mov(scratch, Operand::StaticVariable(store_buffer)); in RememberedSetHelper()
167 mov(Operand(scratch, 0), addr); in RememberedSetHelper()
169 add(scratch, Immediate(kPointerSize)); in RememberedSetHelper()
171 mov(Operand::StaticVariable(store_buffer), scratch); in RememberedSetHelper()
174 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit)); in RememberedSetHelper()
254 XMMRegister scratch, in DoubleToI() argument
258 DCHECK(!input_reg.is(scratch)); in DoubleToI()
260 Cvtsi2sd(scratch, Operand(result_reg)); in DoubleToI()
261 ucomisd(scratch, input_reg); in DoubleToI()
784 Register scratch, in IsObjectJSObjectType() argument
787 IsInstanceJSObjectType(map, scratch, fail); in IsObjectJSObjectType()
792 Register scratch, in IsInstanceJSObjectType() argument
794 movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset)); in IsInstanceJSObjectType()
795 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE)); in IsInstanceJSObjectType()
796 cmp(scratch, in IsInstanceJSObjectType()
1253 void MacroAssembler::GetNumberHash(Register r0, Register scratch) { in GetNumberHash() argument
1258 mov(scratch, Immediate(Heap::kHashSeedRootIndex)); in GetNumberHash()
1259 mov(scratch, in GetNumberHash()
1260 Operand::StaticArray(scratch, times_pointer_size, roots_array_start)); in GetNumberHash()
1261 SmiUntag(scratch); in GetNumberHash()
1262 xor_(r0, scratch); in GetNumberHash()
1269 mov(scratch, r0); in GetNumberHash()
1271 shl(scratch, 15); in GetNumberHash()
1272 add(r0, scratch); in GetNumberHash()
1274 mov(scratch, r0); in GetNumberHash()
1275 shr(scratch, 12); in GetNumberHash()
1276 xor_(r0, scratch); in GetNumberHash()
1280 mov(scratch, r0); in GetNumberHash()
1281 shr(scratch, 4); in GetNumberHash()
1282 xor_(r0, scratch); in GetNumberHash()
1286 mov(scratch, r0); in GetNumberHash()
1287 shr(scratch, 16); in GetNumberHash()
1288 xor_(r0, scratch); in GetNumberHash()
1368 Register scratch, in LoadAllocationTopHelper() argument
1376 DCHECK(scratch.is(no_reg)); in LoadAllocationTopHelper()
1386 if (scratch.is(no_reg)) { in LoadAllocationTopHelper()
1389 mov(scratch, Immediate(allocation_top)); in LoadAllocationTopHelper()
1390 mov(result, Operand(scratch, 0)); in LoadAllocationTopHelper()
1396 Register scratch, in UpdateAllocationTopHelper() argument
1407 if (scratch.is(no_reg)) { in UpdateAllocationTopHelper()
1410 mov(Operand(scratch, 0), result_end); in UpdateAllocationTopHelper()
1418 Register scratch, in Allocate() argument
1430 if (scratch.is_valid()) { in Allocate()
1431 mov(scratch, Immediate(0x7291)); in Allocate()
1440 LoadAllocationTopHelper(result, scratch, flags); in Allocate()
1474 UpdateAllocationTopHelper(top_reg, scratch, flags); in Allocate()
1497 Register scratch, in Allocate() argument
1506 if (scratch.is_valid()) { in Allocate()
1507 mov(scratch, Immediate(0x7291)); in Allocate()
1517 LoadAllocationTopHelper(result, scratch, flags); in Allocate()
1565 UpdateAllocationTopHelper(result_end, scratch, flags); in Allocate()
1572 Register scratch, in Allocate() argument
1581 if (scratch.is_valid()) { in Allocate()
1582 mov(scratch, Immediate(0x7291)); in Allocate()
1592 LoadAllocationTopHelper(result, scratch, flags); in Allocate()
1631 UpdateAllocationTopHelper(result_end, scratch, flags); in Allocate()
1826 Register scratch) { in CopyBytes() argument
1837 mov(scratch, Operand(source, length, times_1, -4)); in CopyBytes()
1838 mov(Operand(destination, length, times_1, -4), scratch); in CopyBytes()
1847 mov(scratch, ecx); in CopyBytes()
1850 and_(scratch, Immediate(0x3)); in CopyBytes()
1851 add(destination, scratch); in CopyBytes()
1855 mov(scratch, Operand(source, 8)); in CopyBytes()
1856 mov(Operand(destination, 8), scratch); in CopyBytes()
1858 mov(scratch, Operand(source, 4)); in CopyBytes()
1859 mov(Operand(destination, 4), scratch); in CopyBytes()
1861 mov(scratch, Operand(source, 0)); in CopyBytes()
1862 mov(Operand(destination, 0), scratch); in CopyBytes()
1871 mov_b(scratch, Operand(source, 0)); in CopyBytes()
1872 mov_b(Operand(destination, 0), scratch); in CopyBytes()
1924 Register scratch, in NegativeZeroTest() argument
1929 mov(scratch, op1); in NegativeZeroTest()
1930 or_(scratch, op2); in NegativeZeroTest()
1938 Register scratch, in TryGetFunctionPrototype() argument
1951 mov(scratch, in TryGetFunctionPrototype()
1953 BooleanBitTest(scratch, SharedFunctionInfo::kCompilerHintsOffset, in TryGetFunctionPrototype()
1958 movzx_b(scratch, FieldOperand(result, Map::kBitFieldOffset)); in TryGetFunctionPrototype()
1959 test(scratch, Immediate(1 << Map::kHasNonInstancePrototype)); in TryGetFunctionPrototype()
1975 CmpObjectType(result, MAP_TYPE, scratch); in TryGetFunctionPrototype()
2462 Register scratch, in LoadTransitionedArrayMapConditional() argument
2465 mov(scratch, Operand(esi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); in LoadTransitionedArrayMapConditional()
2466 mov(scratch, FieldOperand(scratch, GlobalObject::kNativeContextOffset)); in LoadTransitionedArrayMapConditional()
2469 mov(scratch, Operand(scratch, in LoadTransitionedArrayMapConditional()
2474 cmp(map_in_out, FieldOperand(scratch, offset)); in LoadTransitionedArrayMapConditional()
2480 mov(map_in_out, FieldOperand(scratch, offset)); in LoadTransitionedArrayMapConditional()
2581 void MacroAssembler::Ret(int bytes_dropped, Register scratch) { in Ret() argument
2585 pop(scratch); in Ret()
2587 push(scratch); in Ret()
2790 Register scratch, in LoadPowerOf2() argument
2794 mov(scratch, Immediate(power + HeapNumber::kExponentBias)); in LoadPowerOf2()
2795 movd(dst, scratch); in LoadPowerOf2()
2808 Register scratch = scratch2; in LookupNumberStringCache() local
2827 mov(scratch, object); in LookupNumberStringCache()
2828 SmiUntag(scratch); in LookupNumberStringCache()
2835 mov(scratch, FieldOperand(object, HeapNumber::kValueOffset)); in LookupNumberStringCache()
2836 xor_(scratch, FieldOperand(object, HeapNumber::kValueOffset + 4)); in LookupNumberStringCache()
2838 and_(scratch, mask); in LookupNumberStringCache()
2839 Register index = scratch; in LookupNumberStringCache()
2855 and_(scratch, mask); in LookupNumberStringCache()
2876 Register instance_type, Register scratch, Label* failure) { in JumpIfInstanceTypeIsNotSequentialOneByte() argument
2877 if (!scratch.is(instance_type)) { in JumpIfInstanceTypeIsNotSequentialOneByte()
2878 mov(scratch, instance_type); in JumpIfInstanceTypeIsNotSequentialOneByte()
2880 and_(scratch, in JumpIfInstanceTypeIsNotSequentialOneByte()
2882 cmp(scratch, kStringTag | kSeqStringTag | kOneByteStringTag); in JumpIfInstanceTypeIsNotSequentialOneByte()
2968 void MacroAssembler::PrepareCallCFunction(int num_arguments, Register scratch) { in PrepareCallCFunction() argument
2973 mov(scratch, esp); in PrepareCallCFunction()
2977 mov(Operand(esp, num_arguments * kPointerSize), scratch); in PrepareCallCFunction()
3061 Register scratch, in CheckPageFlag() argument
3067 if (scratch.is(object)) { in CheckPageFlag()
3068 and_(scratch, Immediate(~Page::kPageAlignmentMask)); in CheckPageFlag()
3070 mov(scratch, Immediate(~Page::kPageAlignmentMask)); in CheckPageFlag()
3071 and_(scratch, object); in CheckPageFlag()
3074 test_b(Operand(scratch, MemoryChunk::kFlagsOffset), in CheckPageFlag()
3077 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask)); in CheckPageFlag()
3107 Register scratch, in CheckMapDeprecated() argument
3110 mov(scratch, map); in CheckMapDeprecated()
3111 mov(scratch, FieldOperand(scratch, Map::kBitField3Offset)); in CheckMapDeprecated()
3112 and_(scratch, Immediate(Map::Deprecated::kMask)); in CheckMapDeprecated()