OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 CheckType check) { | 1447 CheckType check) { |
1448 // ----------- S t a t e ------------- | 1448 // ----------- S t a t e ------------- |
1449 // -- ecx : name | 1449 // -- ecx : name |
1450 // -- esp[0] : return address | 1450 // -- esp[0] : return address |
1451 // -- esp[(argc - n) * 4] : arg[n] (zero-based) | 1451 // -- esp[(argc - n) * 4] : arg[n] (zero-based) |
1452 // -- ... | 1452 // -- ... |
1453 // -- esp[(argc + 1) * 4] : receiver | 1453 // -- esp[(argc + 1) * 4] : receiver |
1454 // ----------------------------------- | 1454 // ----------------------------------- |
1455 | 1455 |
1456 SharedFunctionInfo* function_info = function->shared(); | 1456 SharedFunctionInfo* function_info = function->shared(); |
1457 if (false && function_info->HasCustomCallGenerator()) { | 1457 if (function_info->HasCustomCallGenerator()) { |
1458 CustomCallGenerator generator = | 1458 CustomCallGenerator generator = |
1459 ToCData<CustomCallGenerator>(function_info->function_data()); | 1459 ToCData<CustomCallGenerator>(function_info->function_data()); |
1460 return generator(this, object, holder, function, name, check); | 1460 return generator(this, object, holder, function, name, check); |
1461 } | 1461 } |
1462 | 1462 |
1463 Label miss_in_smi_check; | 1463 Label miss_in_smi_check; |
1464 | 1464 |
1465 // Get the receiver from the stack. | 1465 // Get the receiver from the stack. |
1466 const int argc = arguments().immediate(); | 1466 const int argc = arguments().immediate(); |
1467 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); | 1467 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2424 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); | 2424 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); |
2425 | 2425 |
2426 // Return the generated code. | 2426 // Return the generated code. |
2427 return GetCode(); | 2427 return GetCode(); |
2428 } | 2428 } |
2429 | 2429 |
2430 | 2430 |
2431 #undef __ | 2431 #undef __ |
2432 | 2432 |
2433 } } // namespace v8::internal | 2433 } } // namespace v8::internal |
OLD | NEW |