| 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 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3060 | 3060 |
| 3061 int arg_count = args->length() - 2; // 2 ~ receiver and function. | 3061 int arg_count = args->length() - 2; // 2 ~ receiver and function. |
| 3062 for (int i = 0; i < arg_count + 1; i++) { | 3062 for (int i = 0; i < arg_count + 1; i++) { |
| 3063 VisitForStackValue(args->at(i)); | 3063 VisitForStackValue(args->at(i)); |
| 3064 } | 3064 } |
| 3065 VisitForAccumulatorValue(args->last()); // Function. | 3065 VisitForAccumulatorValue(args->last()); // Function. |
| 3066 | 3066 |
| 3067 // InvokeFunction requires the function in rdi. Move it in there. | 3067 // InvokeFunction requires the function in rdi. Move it in there. |
| 3068 __ movq(rdi, result_register()); | 3068 __ movq(rdi, result_register()); |
| 3069 ParameterCount count(arg_count); | 3069 ParameterCount count(arg_count); |
| 3070 __ InvokeFunction(rdi, count, CALL_FUNCTION); | 3070 __ InvokeFunction(rdi, count, CALL_FUNCTION, |
| 3071 NullCallWrapper(), CALL_AS_METHOD); |
| 3071 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 3072 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 3072 context()->Plug(rax); | 3073 context()->Plug(rax); |
| 3073 } | 3074 } |
| 3074 | 3075 |
| 3075 | 3076 |
| 3076 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { | 3077 void FullCodeGenerator::EmitRegExpConstructResult(ZoneList<Expression*>* args) { |
| 3077 RegExpConstructResultStub stub; | 3078 RegExpConstructResultStub stub; |
| 3078 ASSERT(args->length() == 3); | 3079 ASSERT(args->length() == 3); |
| 3079 VisitForStackValue(args->at(0)); | 3080 VisitForStackValue(args->at(0)); |
| 3080 VisitForStackValue(args->at(1)); | 3081 VisitForStackValue(args->at(1)); |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4309 __ ret(0); | 4310 __ ret(0); |
| 4310 } | 4311 } |
| 4311 | 4312 |
| 4312 | 4313 |
| 4313 #undef __ | 4314 #undef __ |
| 4314 | 4315 |
| 4315 | 4316 |
| 4316 } } // namespace v8::internal | 4317 } } // namespace v8::internal |
| 4317 | 4318 |
| 4318 #endif // V8_TARGET_ARCH_X64 | 4319 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |