| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 int offset = scope()->num_parameters() * kPointerSize; | 203 int offset = scope()->num_parameters() * kPointerSize; |
| 204 __ add(r2, fp, | 204 __ add(r2, fp, |
| 205 Operand(StandardFrameConstants::kCallerSPOffset + offset)); | 205 Operand(StandardFrameConstants::kCallerSPOffset + offset)); |
| 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(is_strict() |
| 214 ? ArgumentsAccessStub::NEW_STRICT |
| 215 : ArgumentsAccessStub::NEW_NON_STRICT); |
| 214 __ CallStub(&stub); | 216 __ CallStub(&stub); |
| 215 | 217 |
| 216 Variable* arguments_shadow = scope()->arguments_shadow(); | 218 Variable* arguments_shadow = scope()->arguments_shadow(); |
| 217 if (arguments_shadow != NULL) { | 219 if (arguments_shadow != NULL) { |
| 218 // Duplicate the value; move-to-slot operation might clobber registers. | 220 // Duplicate the value; move-to-slot operation might clobber registers. |
| 219 __ mov(r3, r0); | 221 __ mov(r3, r0); |
| 220 Move(arguments_shadow->AsSlot(), r3, r1, r2); | 222 Move(arguments_shadow->AsSlot(), r3, r1, r2); |
| 221 } | 223 } |
| 222 Move(arguments->AsSlot(), r0, r1, r2); | 224 Move(arguments->AsSlot(), r0, r1, r2); |
| 223 } | 225 } |
| (...skipping 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4283 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4285 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4284 __ add(pc, r1, Operand(masm_->CodeObject())); | 4286 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4285 } | 4287 } |
| 4286 | 4288 |
| 4287 | 4289 |
| 4288 #undef __ | 4290 #undef __ |
| 4289 | 4291 |
| 4290 } } // namespace v8::internal | 4292 } } // namespace v8::internal |
| 4291 | 4293 |
| 4292 #endif // V8_TARGET_ARCH_ARM | 4294 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |