| 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 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3168 | 3168 |
| 3169 int arg_count = args->length() - 2; // 2 ~ receiver and function. | 3169 int arg_count = args->length() - 2; // 2 ~ receiver and function. |
| 3170 for (int i = 0; i < arg_count + 1; i++) { | 3170 for (int i = 0; i < arg_count + 1; i++) { |
| 3171 VisitForStackValue(args->at(i)); | 3171 VisitForStackValue(args->at(i)); |
| 3172 } | 3172 } |
| 3173 VisitForAccumulatorValue(args->last()); // Function. | 3173 VisitForAccumulatorValue(args->last()); // Function. |
| 3174 | 3174 |
| 3175 // InvokeFunction requires the function in r1. Move it in there. | 3175 // InvokeFunction requires the function in r1. Move it in there. |
| 3176 __ mov(r1, result_register()); | 3176 __ mov(r1, result_register()); |
| 3177 ParameterCount count(arg_count); | 3177 ParameterCount count(arg_count); |
| 3178 __ InvokeFunction(r1, count, CALL_FUNCTION); | 3178 __ InvokeFunction(r1, count, CALL_FUNCTION, |
| 3179 NullCallWrapper(), CALL_AS_METHOD); |
| 3179 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3180 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 3180 context()->Plug(r0); | 3181 context()->Plug(r0); |
| 3181 } | 3182 } |
| 3182 | 3183 |
| 3183 | 3184 |
| 3184 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 3185 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
| 3185 RegExpConstructResultStub stub; | 3186 RegExpConstructResultStub stub; |
| 3186 ASSERT(args->length() == 3); | 3187 ASSERT(args->length() == 3); |
| 3187 VisitForStackValue(args->at(0)); | 3188 VisitForStackValue(args->at(0)); |
| 3188 VisitForStackValue(args->at(1)); | 3189 VisitForStackValue(args->at(1)); |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4366 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 4367 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
| 4367 __ add(pc, r1, Operand(masm_->CodeObject())); | 4368 __ add(pc, r1, Operand(masm_->CodeObject())); |
| 4368 } | 4369 } |
| 4369 | 4370 |
| 4370 | 4371 |
| 4371 #undef __ | 4372 #undef __ |
| 4372 | 4373 |
| 4373 } } // namespace v8::internal | 4374 } } // namespace v8::internal |
| 4374 | 4375 |
| 4375 #endif // V8_TARGET_ARCH_ARM | 4376 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |