| 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 3166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3177 | 3177 |
| 3178 int arg_count = args->length() - 2; // 2 ~ receiver and function. | 3178 int arg_count = args->length() - 2; // 2 ~ receiver and function. |
| 3179 for (int i = 0; i < arg_count + 1; i++) { | 3179 for (int i = 0; i < arg_count + 1; i++) { |
| 3180 VisitForStackValue(args->at(i)); | 3180 VisitForStackValue(args->at(i)); |
| 3181 } | 3181 } |
| 3182 VisitForAccumulatorValue(args->last()); // Function. | 3182 VisitForAccumulatorValue(args->last()); // Function. |
| 3183 | 3183 |
| 3184 // InvokeFunction requires the function in a1. Move it in there. | 3184 // InvokeFunction requires the function in a1. Move it in there. |
| 3185 __ mov(a1, result_register()); | 3185 __ mov(a1, result_register()); |
| 3186 ParameterCount count(arg_count); | 3186 ParameterCount count(arg_count); |
| 3187 __ InvokeFunction(a1, count, CALL_FUNCTION); | 3187 __ InvokeFunction(a1, count, CALL_FUNCTION, |
| 3188 NullCallWrapper(), CALL_AS_METHOD); |
| 3188 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3189 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 3189 context()->Plug(v0); | 3190 context()->Plug(v0); |
| 3190 } | 3191 } |
| 3191 | 3192 |
| 3192 | 3193 |
| 3193 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 3194 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
| 3194 RegExpConstructResultStub stub; | 3195 RegExpConstructResultStub stub; |
| 3195 ASSERT(args->length() == 3); | 3196 ASSERT(args->length() == 3); |
| 3196 VisitForStackValue(args->at(0)); | 3197 VisitForStackValue(args->at(0)); |
| 3197 VisitForStackValue(args->at(1)); | 3198 VisitForStackValue(args->at(1)); |
| (...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4379 __ Addu(at, a1, Operand(masm_->CodeObject())); | 4380 __ Addu(at, a1, Operand(masm_->CodeObject())); |
| 4380 __ Jump(at); | 4381 __ Jump(at); |
| 4381 } | 4382 } |
| 4382 | 4383 |
| 4383 | 4384 |
| 4384 #undef __ | 4385 #undef __ |
| 4385 | 4386 |
| 4386 } } // namespace v8::internal | 4387 } } // namespace v8::internal |
| 4387 | 4388 |
| 4388 #endif // V8_TARGET_ARCH_MIPS | 4389 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |