Lines Matching refs:scratch
86 Register scratch,
91 mov(scratch, Immediate(index));
92 mov(Operand::StaticArray(scratch, times_pointer_size, roots_array_start),
98 Register scratch,
102 mov(scratch, Immediate(index));
103 cmp(with, Operand::StaticArray(scratch,
126 Register scratch,
131 if (scratch.is(object)) {
132 and_(scratch, Immediate(~Page::kPageAlignmentMask));
134 mov(scratch, Immediate(~Page::kPageAlignmentMask));
135 and_(scratch, object);
143 test_b(Operand(scratch, MemoryChunk::kFlagsOffset),
151 Register addr, Register scratch, SaveFPRegsMode save_fp,
156 JumpIfNotInNewSpace(object, scratch, &ok, Label::kNear);
163 mov(scratch, Operand::StaticVariable(store_buffer));
165 mov(Operand(scratch, 0), addr);
167 add(scratch, Immediate(kPointerSize));
169 mov(Operand::StaticVariable(store_buffer), scratch);
172 test(scratch, Immediate(StoreBuffer::kStoreBufferOverflowBit));
464 value, // Used as scratch.
471 value, // Used as scratch.
589 Register scratch,
628 mov(scratch, maybe_number);
629 SmiUntag(scratch);
630 push(scratch);
632 pop(scratch);
696 Register scratch,
699 IsInstanceJSObjectType(map, scratch, fail);
704 Register scratch,
706 movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset));
707 sub(scratch, Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
708 cmp(scratch,
1216 void MacroAssembler::GetNumberHash(Register r0, Register scratch) {
1221 mov(scratch, Immediate(Heap::kHashSeedRootIndex));
1222 mov(scratch,
1223 Operand::StaticArray(scratch, times_pointer_size, roots_array_start));
1224 SmiUntag(scratch);
1225 xor_(r0, scratch);
1232 mov(scratch, r0);
1234 shl(scratch, 15);
1235 add(r0, scratch);
1237 mov(scratch, r0);
1238 shr(scratch, 12);
1239 xor_(r0, scratch);
1243 mov(scratch, r0);
1244 shr(scratch, 4);
1245 xor_(r0, scratch);
1249 mov(scratch, r0);
1250 shr(scratch, 16);
1251 xor_(r0, scratch);
1269 // Scratch registers:
1331 Register scratch,
1338 // No use of scratch if allocation top is provided.
1339 DCHECK(scratch.is(no_reg));
1348 // Move address of new object to result. Use scratch register if available.
1349 if (scratch.is(no_reg)) {
1352 mov(scratch, Immediate(allocation_top));
1353 mov(result, Operand(scratch, 0));
1359 Register scratch,
1369 // Update new top. Use scratch if available.
1370 if (scratch.is(no_reg)) {
1373 mov(Operand(scratch, 0), result_end);
1381 Register scratch,
1393 if (scratch.is_valid()) {
1394 mov(scratch, Immediate(0x7291));
1403 LoadAllocationTopHelper(result, scratch, flags);
1437 UpdateAllocationTopHelper(top_reg, scratch, flags);
1460 Register scratch,
1469 if (scratch.is_valid()) {
1470 mov(scratch, Immediate(0x7291));
1480 LoadAllocationTopHelper(result, scratch, flags);
1528 UpdateAllocationTopHelper(result_end, scratch, flags);
1535 Register scratch,
1544 if (scratch.is_valid()) {
1545 mov(scratch, Immediate(0x7291));
1555 LoadAllocationTopHelper(result, scratch, flags);
1594 UpdateAllocationTopHelper(result_end, scratch, flags);
1779 // long or aligned copies. The contents of scratch and length are destroyed.
1789 Register scratch) {
1800 mov(scratch, Operand(source, length, times_1, -4));
1801 mov(Operand(destination, length, times_1, -4), scratch);
1810 mov(scratch, ecx);
1813 and_(scratch, Immediate(0x3));
1814 add(destination, scratch);
1818 mov(scratch, Operand(source, 8));
1819 mov(Operand(destination, 8), scratch);
1821 mov(scratch, Operand(source, 4));
1822 mov(Operand(destination, 4), scratch);
1824 mov(scratch, Operand(source, 0));
1825 mov(Operand(destination, 0), scratch);
1834 mov_b(scratch, Operand(source, 0));
1835 mov_b(Operand(destination, 0), scratch);
1887 Register scratch,
1892 mov(scratch, op1);
1893 or_(scratch, op2);
1901 Register scratch,
1914 mov(scratch,
1916 BooleanBitTest(scratch, SharedFunctionInfo::kCompilerHintsOffset,
1921 movzx_b(scratch, FieldOperand(result, Map::kBitFieldOffset));
1922 test(scratch, Immediate(1 << Map::kHasNonInstancePrototype));
1938 CmpObjectType(result, MAP_TYPE, scratch);
2424 Register scratch,
2427 mov(scratch, Operand(esi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
2428 mov(scratch, FieldOperand(scratch, GlobalObject::kNativeContextOffset));
2431 mov(scratch, Operand(scratch,
2436 cmp(map_in_out, FieldOperand(scratch, offset));
2442 mov(map_in_out, FieldOperand(scratch, offset));
2543 void MacroAssembler::Ret(int bytes_dropped, Register scratch) {
2547 pop(scratch);
2549 push(scratch);
2767 Register scratch = scratch2;
2786 mov(scratch, object);
2787 SmiUntag(scratch);
2794 mov(scratch, FieldOperand(object, HeapNumber::kValueOffset));
2795 xor_(scratch, FieldOperand(object, HeapNumber::kValueOffset + 4));
2796 // Object is heap number and hash is now in scratch. Calculate cache index.
2797 and_(scratch, mask);
2798 Register index = scratch;
2814 // Object is smi and hash is now in scratch. Calculate cache index.
2815 and_(scratch, mask);
2836 Register instance_type, Register scratch, Label* failure) {
2837 if (!scratch.is(instance_type)) {
2838 mov(scratch, instance_type);
2840 and_(scratch,
2842 cmp(scratch, kStringTag | kSeqStringTag | kOneByteStringTag);
2928 void MacroAssembler::PrepareCallCFunction(int num_arguments, Register scratch) {
2933 mov(scratch, esp);
2937 mov(Operand(esp, num_arguments * kPointerSize), scratch);
3021 Register scratch,
3027 if (scratch.is(object)) {
3028 and_(scratch, Immediate(~Page::kPageAlignmentMask));
3030 mov(scratch, Immediate(~Page::kPageAlignmentMask));
3031 and_(scratch, object);
3034 test_b(Operand(scratch, MemoryChunk::kFlagsOffset),
3037 test(Operand(scratch, MemoryChunk::kFlagsOffset), Immediate(mask));
3067 Register scratch,
3070 mov(scratch, map);
3071 mov(scratch, FieldOperand(scratch, Map::kBitField3Offset));
3072 and_(scratch, Immediate(Map::Deprecated::kMask));
3327 // scratch contained elements pointer.