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 2863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2874 | 2874 |
2875 // Check that the maps haven't changed. | 2875 // Check that the maps haven't changed. |
2876 __ JumpIfSmi(edx, &miss); | 2876 __ JumpIfSmi(edx, &miss); |
2877 CheckPrototypes(receiver, edx, holder, ebx, eax, edi, name, &miss); | 2877 CheckPrototypes(receiver, edx, holder, ebx, eax, edi, name, &miss); |
2878 | 2878 |
2879 { | 2879 { |
2880 FrameScope scope(masm(), StackFrame::INTERNAL); | 2880 FrameScope scope(masm(), StackFrame::INTERNAL); |
2881 | 2881 |
2882 // Call the JavaScript getter with the receiver on the stack. | 2882 // Call the JavaScript getter with the receiver on the stack. |
2883 __ push(edx); | 2883 __ push(edx); |
2884 __ InvokeFunction(getter, ParameterCount(0), CALL_FUNCTION, | 2884 ParameterCount actual(0); |
2885 NullCallWrapper(), CALL_AS_METHOD); | 2885 __ InvokeFunction(getter, actual, CALL_FUNCTION, NullCallWrapper(), |
| 2886 CALL_AS_METHOD); |
2886 | 2887 |
2887 // Restore context register. | 2888 // Restore context register. |
2888 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2889 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
2889 } | 2890 } |
2890 __ ret(0); | 2891 __ ret(0); |
2891 | 2892 |
2892 __ bind(&miss); | 2893 __ bind(&miss); |
2893 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2894 GenerateLoadMiss(masm(), Code::LOAD_IC); |
2894 | 2895 |
2895 // Return the generated code. | 2896 // Return the generated code. |
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4191 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 4192 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
4192 } | 4193 } |
4193 } | 4194 } |
4194 | 4195 |
4195 | 4196 |
4196 #undef __ | 4197 #undef __ |
4197 | 4198 |
4198 } } // namespace v8::internal | 4199 } } // namespace v8::internal |
4199 | 4200 |
4200 #endif // V8_TARGET_ARCH_IA32 | 4201 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |