| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 __ mov(r1, Operand(Smi::FromInt(scope()->num_parameters()))); | 206 __ mov(r1, Operand(Smi::FromInt(scope()->num_parameters()))); |
| 207 __ Push(r3, r2, r1); | 207 __ Push(r3, r2, r1); |
| 208 | 208 |
| 209 // Arguments to ArgumentsAccessStub: | 209 // Arguments to ArgumentsAccessStub: |
| 210 // function, receiver address, parameter count. | 210 // function, receiver address, parameter count. |
| 211 // The stub will rewrite receiever and parameter count if the previous | 211 // The stub will rewrite receiever and parameter count if the previous |
| 212 // stack frame was an arguments adapter frame. | 212 // stack frame was an arguments adapter frame. |
| 213 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT); | 213 ArgumentsAccessStub stub(ArgumentsAccessStub::NEW_OBJECT); |
| 214 __ CallStub(&stub); | 214 __ CallStub(&stub); |
| 215 | 215 |
| 216 Variable* arguments_shadow = scope()->arguments_shadow(); | |
| 217 if (arguments_shadow != NULL) { | |
| 218 // Duplicate the value; move-to-slot operation might clobber registers. | |
| 219 __ mov(r3, r0); | |
| 220 Move(arguments_shadow->AsSlot(), r3, r1, r2); | |
| 221 } | |
| 222 Move(arguments->AsSlot(), r0, r1, r2); | 216 Move(arguments->AsSlot(), r0, r1, r2); |
| 223 } | 217 } |
| 224 | 218 |
| 225 if (FLAG_trace) { | 219 if (FLAG_trace) { |
| 226 __ CallRuntime(Runtime::kTraceEnter, 0); | 220 __ CallRuntime(Runtime::kTraceEnter, 0); |
| 227 } | 221 } |
| 228 | 222 |
| 229 // Visit the declarations and body unless there is an illegal | 223 // Visit the declarations and body unless there is an illegal |
| 230 // redeclaration. | 224 // redeclaration. |
| 231 if (scope()->HasIllegalRedeclaration()) { | 225 if (scope()->HasIllegalRedeclaration()) { |
| (...skipping 4053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4285 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4279 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4286 __ add(pc, r1, Operand(masm_->CodeObject())); | 4280 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4287 } | 4281 } |
| 4288 | 4282 |
| 4289 | 4283 |
| 4290 #undef __ | 4284 #undef __ |
| 4291 | 4285 |
| 4292 } } // namespace v8::internal | 4286 } } // namespace v8::internal |
| 4293 | 4287 |
| 4294 #endif // V8_TARGET_ARCH_ARM | 4288 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |