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 2701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2712 | 2712 |
2713 // Check that the maps haven't changed. | 2713 // Check that the maps haven't changed. |
2714 __ JumpIfSmi(rax, &miss); | 2714 __ JumpIfSmi(rax, &miss); |
2715 CheckPrototypes(receiver, rax, holder, rbx, rdx, rdi, name, &miss); | 2715 CheckPrototypes(receiver, rax, holder, rbx, rdx, rdi, name, &miss); |
2716 | 2716 |
2717 { | 2717 { |
2718 FrameScope scope(masm(), StackFrame::INTERNAL); | 2718 FrameScope scope(masm(), StackFrame::INTERNAL); |
2719 | 2719 |
2720 // Call the JavaScript getter with the receiver on the stack. | 2720 // Call the JavaScript getter with the receiver on the stack. |
2721 __ push(rax); | 2721 __ push(rax); |
2722 __ InvokeFunction(getter, ParameterCount(0), CALL_FUNCTION, | 2722 ParameterCount actual(0); |
2723 NullCallWrapper(), CALL_AS_METHOD); | 2723 __ InvokeFunction(getter, actual, CALL_FUNCTION, NullCallWrapper(), |
| 2724 CALL_AS_METHOD); |
2724 | 2725 |
2725 // Restore context register. | 2726 // Restore context register. |
2726 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); | 2727 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); |
2727 } | 2728 } |
2728 __ ret(0); | 2729 __ ret(0); |
2729 | 2730 |
2730 __ bind(&miss); | 2731 __ bind(&miss); |
2731 GenerateLoadMiss(masm(), Code::LOAD_IC); | 2732 GenerateLoadMiss(masm(), Code::LOAD_IC); |
2732 | 2733 |
2733 // Return the generated code. | 2734 // Return the generated code. |
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3949 __ jmp(ic_slow, RelocInfo::CODE_TARGET); | 3950 __ jmp(ic_slow, RelocInfo::CODE_TARGET); |
3950 } | 3951 } |
3951 } | 3952 } |
3952 | 3953 |
3953 | 3954 |
3954 #undef __ | 3955 #undef __ |
3955 | 3956 |
3956 } } // namespace v8::internal | 3957 } } // namespace v8::internal |
3957 | 3958 |
3958 #endif // V8_TARGET_ARCH_X64 | 3959 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |