Lines Matching defs:scratch
57 Register scratch) {
61 InNewSpace(object, scratch, not_equal, ¬_in_new_space);
83 Register scratch) {
101 Register dst = scratch;
122 mov(scratch, Immediate(BitCast<int32_t>(kZapValue)));
246 Register scratch,
249 IsInstanceJSObjectType(map, scratch, fail);
254 Register scratch,
256 movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset));
257 sub(Operand(scratch), Immediate(FIRST_JS_OBJECT_TYPE));
258 cmp(scratch, LAST_JS_OBJECT_TYPE - FIRST_JS_OBJECT_TYPE);
586 Register scratch,
590 ASSERT(!holder_reg.is(scratch));
593 mov(scratch, Operand(ebp, StandardFrameConstants::kContextOffset));
597 cmp(Operand(scratch), Immediate(0));
602 mov(scratch, FieldOperand(scratch, offset));
603 mov(scratch, FieldOperand(scratch, GlobalObject::kGlobalContextOffset));
607 push(scratch);
609 mov(scratch, FieldOperand(scratch, HeapObject::kMapOffset));
610 cmp(scratch, isolate()->factory()->global_context_map());
612 pop(scratch);
616 cmp(scratch, FieldOperand(holder_reg, JSGlobalProxy::kContextOffset));
644 mov(scratch, FieldOperand(scratch, token_offset));
645 cmp(scratch, FieldOperand(holder_reg, token_offset));
654 Register scratch,
661 // No use of scratch if allocation top is provided.
662 ASSERT(scratch.is(no_reg));
671 // Move address of new object to result. Use scratch register if available.
672 if (scratch.is(no_reg)) {
675 mov(Operand(scratch), Immediate(new_space_allocation_top));
676 mov(result, Operand(scratch, 0));
682 Register scratch) {
691 // Update new top. Use scratch if available.
692 if (scratch.is(no_reg)) {
695 mov(Operand(scratch, 0), result_end);
703 Register scratch,
713 if (scratch.is_valid()) {
714 mov(scratch, Immediate(0x7291));
723 LoadAllocationTopHelper(result, scratch, flags);
740 UpdateAllocationTopHelper(top_reg, scratch);
760 Register scratch,
768 if (scratch.is_valid()) {
769 mov(scratch, Immediate(0x7291));
779 LoadAllocationTopHelper(result, scratch, flags);
799 UpdateAllocationTopHelper(result_end, scratch);
806 Register scratch,
814 if (scratch.is_valid()) {
815 mov(scratch, Immediate(0x7291));
825 LoadAllocationTopHelper(result, scratch, flags);
844 UpdateAllocationTopHelper(result_end, scratch);
1012 // long or aligned copies. The contents of scratch and length are destroyed.
1022 Register scratch) {
1035 mov(scratch, Operand(source, length, times_1, -4));
1036 mov(Operand(destination, length, times_1, -4), scratch);
1037 mov(scratch, ecx);
1040 and_(Operand(scratch), Immediate(0x3));
1041 add(destination, Operand(scratch));
1049 mov_b(scratch, Operand(source, 0));
1050 mov_b(Operand(destination, 0), scratch);
1075 Register scratch,
1080 mov(scratch, Operand(op1));
1081 or_(scratch, Operand(op2));
1089 Register scratch,
1101 movzx_b(scratch, FieldOperand(result, Map::kBitFieldOffset));
1102 test(scratch, Immediate(1 << Map::kHasNonInstancePrototype));
1117 CmpObjectType(result, MAP_TYPE, scratch);
1332 void MacroAssembler::PrepareCallApiFunction(int argc, Register scratch) {
1354 lea(scratch, Operand(esp, (argc + 1) * kPointerSize));
1355 mov(Operand(esp, 0 * kPointerSize), scratch); // output.
1729 void MacroAssembler::Ret(int bytes_dropped, Register scratch) {
1733 pop(scratch);
1735 push(scratch);
1911 Register scratch,
1922 bool push_pop = (scratch.is(no_reg) && dst.is(source));
1923 ASSERT(!scratch.is(source));
1926 scratch = dst;
1928 if (scratch.is(no_reg)) scratch = dst;
1929 cvttsd2si(scratch, FieldOperand(source, HeapNumber::kValueOffset));
1930 cmp(scratch, 0x80000000u);
1943 if (!scratch.is(dst)) {
1944 mov(dst, scratch);
1951 Register scratch,
1955 mov(scratch, Immediate(power + HeapNumber::kExponentBias));
1956 movd(dst, Operand(scratch));
1963 Register scratch,
1965 if (!scratch.is(instance_type)) {
1966 mov(scratch, instance_type);
1968 and_(scratch,
1970 cmp(scratch, kStringTag | kSeqStringTag | kAsciiStringTag);
2007 void MacroAssembler::PrepareCallCFunction(int num_arguments, Register scratch) {
2012 mov(scratch, esp);
2016 mov(Operand(esp, num_arguments * kPointerSize), scratch);