| 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 2747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2758 // Runtime::TraceExit returns its parameter in r0. | 2758 // Runtime::TraceExit returns its parameter in r0. |
| 2759 __ push(r0); | 2759 __ push(r0); |
| 2760 __ CallRuntime(Runtime::kTraceExit, 1); | 2760 __ CallRuntime(Runtime::kTraceExit, 1); |
| 2761 } | 2761 } |
| 2762 if (NeedsEagerFrame()) { | 2762 if (NeedsEagerFrame()) { |
| 2763 int32_t sp_delta = (GetParameterCount() + 1) * kPointerSize; | 2763 int32_t sp_delta = (GetParameterCount() + 1) * kPointerSize; |
| 2764 __ mov(sp, fp); | 2764 __ mov(sp, fp); |
| 2765 __ ldm(ia_w, sp, fp.bit() | lr.bit()); | 2765 __ ldm(ia_w, sp, fp.bit() | lr.bit()); |
| 2766 __ add(sp, sp, Operand(sp_delta)); | 2766 __ add(sp, sp, Operand(sp_delta)); |
| 2767 } | 2767 } |
| 2768 if (info()->IsStub()) { | |
| 2769 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | |
| 2770 } | |
| 2771 __ Jump(lr); | 2768 __ Jump(lr); |
| 2772 } | 2769 } |
| 2773 | 2770 |
| 2774 | 2771 |
| 2775 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { | 2772 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { |
| 2776 Register result = ToRegister(instr->result()); | 2773 Register result = ToRegister(instr->result()); |
| 2777 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); | 2774 __ mov(ip, Operand(Handle<Object>(instr->hydrogen()->cell()))); |
| 2778 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); | 2775 __ ldr(result, FieldMemOperand(ip, JSGlobalPropertyCell::kValueOffset)); |
| 2779 if (instr->hydrogen()->RequiresHoleCheck()) { | 2776 if (instr->hydrogen()->RequiresHoleCheck()) { |
| 2780 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); | 2777 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
| (...skipping 3247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6028 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6025 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6029 __ ldr(result, FieldMemOperand(scratch, | 6026 __ ldr(result, FieldMemOperand(scratch, |
| 6030 FixedArray::kHeaderSize - kPointerSize)); | 6027 FixedArray::kHeaderSize - kPointerSize)); |
| 6031 __ bind(&done); | 6028 __ bind(&done); |
| 6032 } | 6029 } |
| 6033 | 6030 |
| 6034 | 6031 |
| 6035 #undef __ | 6032 #undef __ |
| 6036 | 6033 |
| 6037 } } // namespace v8::internal | 6034 } } // namespace v8::internal |
| OLD | NEW |