| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); | 155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); |
| 156 | 156 |
| 157 __ sw(a2, MemOperand(sp, receiver_offset)); | 157 __ sw(a2, MemOperand(sp, receiver_offset)); |
| 158 | 158 |
| 159 __ bind(&ok); | 159 __ bind(&ok); |
| 160 } | 160 } |
| 161 } | 161 } |
| 162 | 162 |
| 163 info()->set_prologue_offset(masm_->pc_offset()); | 163 info()->set_prologue_offset(masm_->pc_offset()); |
| 164 if (NeedsEagerFrame()) { | 164 if (NeedsEagerFrame()) { |
| 165 __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); | 165 __ Prologue(info()); |
| 166 frame_is_built_ = true; | 166 frame_is_built_ = true; |
| 167 info_->AddNoFrameRange(0, masm_->pc_offset()); | 167 info_->AddNoFrameRange(0, masm_->pc_offset()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 // Reserve space for the stack slots needed by the code. | 170 // Reserve space for the stack slots needed by the code. |
| 171 int slots = GetStackSlotCount(); | 171 int slots = GetStackSlotCount(); |
| 172 if (slots > 0) { | 172 if (slots > 0) { |
| 173 if (FLAG_debug_code) { | 173 if (FLAG_debug_code) { |
| 174 __ Subu(sp, sp, Operand(slots * kPointerSize)); | 174 __ Subu(sp, sp, Operand(slots * kPointerSize)); |
| 175 __ Push(a0, a1); | 175 __ Push(a0, a1); |
| (...skipping 5738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5914 __ lw(result, FieldMemOperand(scratch, | 5914 __ lw(result, FieldMemOperand(scratch, |
| 5915 FixedArray::kHeaderSize - kPointerSize)); | 5915 FixedArray::kHeaderSize - kPointerSize)); |
| 5916 __ bind(deferred->exit()); | 5916 __ bind(deferred->exit()); |
| 5917 __ bind(&done); | 5917 __ bind(&done); |
| 5918 } | 5918 } |
| 5919 | 5919 |
| 5920 | 5920 |
| 5921 #undef __ | 5921 #undef __ |
| 5922 | 5922 |
| 5923 } } // namespace v8::internal | 5923 } } // namespace v8::internal |
| OLD | NEW |