OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2835 instr, | 2835 instr, |
2836 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); | 2836 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); |
2837 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment(); | 2837 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment(); |
2838 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); | 2838 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); |
2839 // Put the result value into the result register slot and | 2839 // Put the result value into the result register slot and |
2840 // restore all registers. | 2840 // restore all registers. |
2841 __ StoreToSafepointRegisterSlot(result, result); | 2841 __ StoreToSafepointRegisterSlot(result, result); |
2842 } | 2842 } |
2843 | 2843 |
2844 | 2844 |
2845 void LCodeGen::DoInstanceSize(LInstanceSize* instr) { | |
2846 Register object = ToRegister(instr->object()); | |
2847 Register result = ToRegister(instr->result()); | |
2848 __ ldr(result, FieldMemOperand(object, HeapObject::kMapOffset)); | |
2849 __ ldrb(result, FieldMemOperand(result, Map::kInstanceSizeOffset)); | |
2850 } | |
2851 | |
2852 | |
2853 void LCodeGen::DoCmpT(LCmpT* instr) { | 2845 void LCodeGen::DoCmpT(LCmpT* instr) { |
2854 ASSERT(ToRegister(instr->context()).is(cp)); | 2846 ASSERT(ToRegister(instr->context()).is(cp)); |
2855 Token::Value op = instr->op(); | 2847 Token::Value op = instr->op(); |
2856 | 2848 |
2857 Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); | 2849 Handle<Code> ic = CompareIC::GetUninitialized(isolate(), op); |
2858 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2850 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2859 // This instruction also signals no smi code inlined. | 2851 // This instruction also signals no smi code inlined. |
2860 __ cmp(r0, Operand::Zero()); | 2852 __ cmp(r0, Operand::Zero()); |
2861 | 2853 |
2862 Condition condition = ComputeCompareCondition(op); | 2854 Condition condition = ComputeCompareCondition(op); |
(...skipping 2966 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5829 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5821 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5830 __ ldr(result, FieldMemOperand(scratch, | 5822 __ ldr(result, FieldMemOperand(scratch, |
5831 FixedArray::kHeaderSize - kPointerSize)); | 5823 FixedArray::kHeaderSize - kPointerSize)); |
5832 __ bind(&done); | 5824 __ bind(&done); |
5833 } | 5825 } |
5834 | 5826 |
5835 | 5827 |
5836 #undef __ | 5828 #undef __ |
5837 | 5829 |
5838 } } // namespace v8::internal | 5830 } } // namespace v8::internal |
OLD | NEW |