| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 #endif | 1221 #endif |
| 1222 | 1222 |
| 1223 Major MajorKey() { return CallFunction; } | 1223 Major MajorKey() { return CallFunction; } |
| 1224 int MinorKey() { return argc_; } | 1224 int MinorKey() { return argc_; } |
| 1225 }; | 1225 }; |
| 1226 | 1226 |
| 1227 | 1227 |
| 1228 // Call the function just below TOS on the stack with the given | 1228 // Call the function just below TOS on the stack with the given |
| 1229 // arguments. The receiver is the TOS. | 1229 // arguments. The receiver is the TOS. |
| 1230 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args, | 1230 void CodeGenerator::CallWithArguments(ZoneList<Expression*>* args, |
| 1231 int position) { | 1231 int position) { |
| 1232 // Push the arguments ("left-to-right") on the stack. | 1232 // Push the arguments ("left-to-right") on the stack. |
| 1233 int arg_count = args->length(); | 1233 int arg_count = args->length(); |
| 1234 for (int i = 0; i < arg_count; i++) { | 1234 for (int i = 0; i < arg_count; i++) { |
| 1235 Load(args->at(i)); | 1235 Load(args->at(i)); |
| 1236 } | 1236 } |
| 1237 | 1237 |
| 1238 // Record the position for debugging purposes. | 1238 // Record the position for debugging purposes. |
| 1239 __ RecordPosition(position); | 1239 __ RecordPosition(position); |
| 1240 | 1240 |
| 1241 // Use the shared code stub to call the function. | 1241 // Use the shared code stub to call the function. |
| (...skipping 4114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5356 | 5356 |
| 5357 // Slow-case: Go through the JavaScript implementation. | 5357 // Slow-case: Go through the JavaScript implementation. |
| 5358 __ bind(&slow); | 5358 __ bind(&slow); |
| 5359 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 5359 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
| 5360 } | 5360 } |
| 5361 | 5361 |
| 5362 | 5362 |
| 5363 #undef __ | 5363 #undef __ |
| 5364 | 5364 |
| 5365 } } // namespace v8::internal | 5365 } } // namespace v8::internal |
| OLD | NEW |