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 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2849 | 2849 |
2850 // Check that the maps haven't changed. | 2850 // Check that the maps haven't changed. |
2851 __ JumpIfSmi(r0, &miss); | 2851 __ JumpIfSmi(r0, &miss); |
2852 CheckPrototypes(receiver, r0, holder, r3, r4, r1, name, &miss); | 2852 CheckPrototypes(receiver, r0, holder, r3, r4, r1, name, &miss); |
2853 | 2853 |
2854 { | 2854 { |
2855 FrameScope scope(masm(), StackFrame::INTERNAL); | 2855 FrameScope scope(masm(), StackFrame::INTERNAL); |
2856 | 2856 |
2857 // Call the JavaScript getter with the receiver on the stack. | 2857 // Call the JavaScript getter with the receiver on the stack. |
2858 __ push(r0); | 2858 __ push(r0); |
2859 __ InvokeFunction(getter, ParameterCount(0), CALL_FUNCTION, | 2859 ParameterCount actual(0); |
2860 NullCallWrapper(), CALL_AS_METHOD); | 2860 __ InvokeFunction(getter, actual, CALL_FUNCTION, NullCallWrapper(), |
| 2861 CALL_AS_METHOD); |
2861 | 2862 |
2862 // Restore context register. | 2863 // Restore context register. |
2863 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2864 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2864 } | 2865 } |
2865 __ Ret(); | 2866 __ Ret(); |
2866 | 2867 |
2867 __ bind(&miss); | 2868 __ bind(&miss); |
2868 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2869 GenerateLoadMiss(masm(), Code::LOAD_IC); |
2869 | 2870 |
2870 // Return the generated code. | 2871 // Return the generated code. |
(...skipping 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4629 __ Jump(ic_slow, RelocInfo::CODE_TARGET); | 4630 __ Jump(ic_slow, RelocInfo::CODE_TARGET); |
4630 } | 4631 } |
4631 } | 4632 } |
4632 | 4633 |
4633 | 4634 |
4634 #undef __ | 4635 #undef __ |
4635 | 4636 |
4636 } } // namespace v8::internal | 4637 } } // namespace v8::internal |
4637 | 4638 |
4638 #endif // V8_TARGET_ARCH_ARM | 4639 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |