| 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 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 BitVector::Iterator save_iterator(doubles); | 2943 BitVector::Iterator save_iterator(doubles); |
| 2944 int count = 0; | 2944 int count = 0; |
| 2945 while (!save_iterator.Done()) { | 2945 while (!save_iterator.Done()) { |
| 2946 __ vldr(DwVfpRegister::FromAllocationIndex(save_iterator.Current()), | 2946 __ vldr(DwVfpRegister::FromAllocationIndex(save_iterator.Current()), |
| 2947 MemOperand(sp, count * kDoubleSize)); | 2947 MemOperand(sp, count * kDoubleSize)); |
| 2948 save_iterator.Advance(); | 2948 save_iterator.Advance(); |
| 2949 count++; | 2949 count++; |
| 2950 } | 2950 } |
| 2951 } | 2951 } |
| 2952 if (NeedsEagerFrame()) { | 2952 if (NeedsEagerFrame()) { |
| 2953 int32_t sp_delta = (GetParameterCount() + 1) * kPointerSize; | |
| 2954 __ mov(sp, fp); | 2953 __ mov(sp, fp); |
| 2955 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | 2954 __ ldm(ia_w, sp, fp.bit() | lr.bit()); |
| 2956 if (!info()->IsStub()) { | 2955 |
| 2957 __ add(sp, sp, Operand(sp_delta)); | 2956 if (instr->has_constant_parameter_count()) { |
| 2957 int parameter_count = ToInteger32(instr->constant_parameter_count()); |
| 2958 int32_t sp_delta = (parameter_count + 1) * kPointerSize; |
| 2959 if (sp_delta != 0) { |
| 2960 __ add(sp, sp, Operand(sp_delta)); |
| 2961 } |
| 2962 } else { |
| 2963 Register reg = ToRegister(instr->parameter_count()); |
| 2964 __ add(reg, reg, Operand(1)); |
| 2965 __ add(sp, sp, Operand(reg, LSL, kPointerSizeLog2)); |
| 2958 } | 2966 } |
| 2959 } | 2967 } |
| 2960 __ Jump(lr); | 2968 __ Jump(lr); |
| 2961 } | 2969 } |
| 2962 | 2970 |
| 2963 | 2971 |
| 2964 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { | 2972 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { |
| 2965 Register result = ToRegister(instr->result()); | 2973 Register result = ToRegister(instr->result()); |
| 2966 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); | 2974 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); |
| 2967 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); | 2975 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
| (...skipping 3423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6391 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6399 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6392 __ ldr(result, FieldMemOperand(scratch, | 6400 __ ldr(result, FieldMemOperand(scratch, |
| 6393 FixedArray::kHeaderSize - kPointerSize)); | 6401 FixedArray::kHeaderSize - kPointerSize)); |
| 6394 __ bind(&done); | 6402 __ bind(&done); |
| 6395 } | 6403 } |
| 6396 | 6404 |
| 6397 | 6405 |
| 6398 #undef __ | 6406 #undef __ |
| 6399 | 6407 |
| 6400 } } // namespace v8::internal | 6408 } } // namespace v8::internal |
| OLD | NEW |