| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2323 const int argc = arguments().immediate(); | 2323 const int argc = arguments().immediate(); |
| 2324 GenerateGlobalReceiverCheck(object, holder, name, &miss); | 2324 GenerateGlobalReceiverCheck(object, holder, name, &miss); |
| 2325 GenerateLoadFunctionFromCell(cell, function, &miss); | 2325 GenerateLoadFunctionFromCell(cell, function, &miss); |
| 2326 | 2326 |
| 2327 // Patch the receiver on the stack with the global proxy. | 2327 // Patch the receiver on the stack with the global proxy. |
| 2328 if (object->IsGlobalObject()) { | 2328 if (object->IsGlobalObject()) { |
| 2329 __ mov(edx, FieldOperand(edx, GlobalObject::kGlobalReceiverOffset)); | 2329 __ mov(edx, FieldOperand(edx, GlobalObject::kGlobalReceiverOffset)); |
| 2330 __ mov(Operand(esp, (argc + 1) * kPointerSize), edx); | 2330 __ mov(Operand(esp, (argc + 1) * kPointerSize), edx); |
| 2331 } | 2331 } |
| 2332 | 2332 |
| 2333 // Setup the context (function already in edi). | 2333 // Set up the context (function already in edi). |
| 2334 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); | 2334 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); |
| 2335 | 2335 |
| 2336 // Jump to the cached code (tail call). | 2336 // Jump to the cached code (tail call). |
| 2337 Counters* counters = isolate()->counters(); | 2337 Counters* counters = isolate()->counters(); |
| 2338 __ IncrementCounter(counters->call_global_inline(), 1); | 2338 __ IncrementCounter(counters->call_global_inline(), 1); |
| 2339 ParameterCount expected(function->shared()->formal_parameter_count()); | 2339 ParameterCount expected(function->shared()->formal_parameter_count()); |
| 2340 CallKind call_kind = CallICBase::Contextual::decode(extra_state_) | 2340 CallKind call_kind = CallICBase::Contextual::decode(extra_state_) |
| 2341 ? CALL_AS_FUNCTION | 2341 ? CALL_AS_FUNCTION |
| 2342 : CALL_AS_METHOD; | 2342 : CALL_AS_METHOD; |
| 2343 // We call indirectly through the code field in the function to | 2343 // We call indirectly through the code field in the function to |
| (...skipping 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3815 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); | 3815 Handle<Code> ic_miss = masm->isolate()->builtins()->KeyedStoreIC_Miss(); |
| 3816 __ jmp(ic_miss, RelocInfo::CODE_TARGET); | 3816 __ jmp(ic_miss, RelocInfo::CODE_TARGET); |
| 3817 } | 3817 } |
| 3818 | 3818 |
| 3819 | 3819 |
| 3820 #undef __ | 3820 #undef __ |
| 3821 | 3821 |
| 3822 } } // namespace v8::internal | 3822 } } // namespace v8::internal |
| 3823 | 3823 |
| 3824 #endif // V8_TARGET_ARCH_IA32 | 3824 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |