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 2842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2853 | 2853 |
2854 // Check that the maps haven't changed. | 2854 // Check that the maps haven't changed. |
2855 __ JumpIfSmi(a0, &miss); | 2855 __ JumpIfSmi(a0, &miss); |
2856 CheckPrototypes(receiver, a0, holder, a3, t0, a1, name, &miss); | 2856 CheckPrototypes(receiver, a0, holder, a3, t0, a1, name, &miss); |
2857 | 2857 |
2858 { | 2858 { |
2859 FrameScope scope(masm(), StackFrame::INTERNAL); | 2859 FrameScope scope(masm(), StackFrame::INTERNAL); |
2860 | 2860 |
2861 // Call the JavaScript getter with the receiver on the stack. | 2861 // Call the JavaScript getter with the receiver on the stack. |
2862 __ push(a0); | 2862 __ push(a0); |
2863 __ InvokeFunction(getter, ParameterCount(0), CALL_FUNCTION, | 2863 ParameterCount actual(0); |
2864 NullCallWrapper(), CALL_AS_METHOD); | 2864 __ InvokeFunction(getter, actual, CALL_FUNCTION, NullCallWrapper(), |
| 2865 CALL_AS_METHOD); |
2865 | 2866 |
2866 // Restore context register. | 2867 // Restore context register. |
2867 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2868 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2868 } | 2869 } |
2869 __ Ret(); | 2870 __ Ret(); |
2870 | 2871 |
2871 __ bind(&miss); | 2872 __ bind(&miss); |
2872 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2873 GenerateLoadMiss(masm(), Code::LOAD_IC); |
2873 | 2874 |
2874 // Return the generated code. | 2875 // Return the generated code. |
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4690 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4691 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4691 } | 4692 } |
4692 } | 4693 } |
4693 | 4694 |
4694 | 4695 |
4695 #undef __ | 4696 #undef __ |
4696 | 4697 |
4697 } } // namespace v8::internal | 4698 } } // namespace v8::internal |
4698 | 4699 |
4699 #endif // V8_TARGET_ARCH_MIPS | 4700 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |