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 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2311 holder, | 2311 holder, |
2312 name, | 2312 name, |
2313 &lookup, | 2313 &lookup, |
2314 edx, | 2314 edx, |
2315 ebx, | 2315 ebx, |
2316 edi, | 2316 edi, |
2317 eax, | 2317 eax, |
2318 &miss, | 2318 &miss, |
2319 &failure); | 2319 &failure); |
2320 if (!success) { | 2320 if (!success) { |
2321 return false; | 2321 return failure; |
2322 } | 2322 } |
2323 | 2323 |
2324 // Restore receiver. | 2324 // Restore receiver. |
2325 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); | 2325 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); |
2326 | 2326 |
2327 // Check that the function really is a function. | 2327 // Check that the function really is a function. |
2328 __ test(eax, Immediate(kSmiTagMask)); | 2328 __ test(eax, Immediate(kSmiTagMask)); |
2329 __ j(zero, &miss, not_taken); | 2329 __ j(zero, &miss, not_taken); |
2330 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); | 2330 __ CmpObjectType(eax, JS_FUNCTION_TYPE, ebx); |
2331 __ j(not_equal, &miss, not_taken); | 2331 __ j(not_equal, &miss, not_taken); |
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3155 // Return the generated code. | 3155 // Return the generated code. |
3156 return GetCode(); | 3156 return GetCode(); |
3157 } | 3157 } |
3158 | 3158 |
3159 | 3159 |
3160 #undef __ | 3160 #undef __ |
3161 | 3161 |
3162 } } // namespace v8::internal | 3162 } } // namespace v8::internal |
3163 | 3163 |
3164 #endif // V8_TARGET_ARCH_IA32 | 3164 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |