OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 // instruction after the call it is treated specially by the LoadIC code. | 1121 // instruction after the call it is treated specially by the LoadIC code. |
1122 __ nop(); | 1122 __ nop(); |
1123 // Drop key left on the stack by IC. | 1123 // Drop key left on the stack by IC. |
1124 __ Drop(1); | 1124 __ Drop(1); |
1125 // Pop receiver. | 1125 // Pop receiver. |
1126 __ pop(rbx); | 1126 __ pop(rbx); |
1127 // Push result (function). | 1127 // Push result (function). |
1128 __ push(rax); | 1128 __ push(rax); |
1129 // Push receiver object on stack. | 1129 // Push receiver object on stack. |
1130 if (prop->is_synthetic()) { | 1130 if (prop->is_synthetic()) { |
1131 __ push(CodeGenerator::GlobalObject()); | 1131 __ movq(rcx, CodeGenerator::GlobalObject()); |
| 1132 __ push(FieldOperand(rcx, GlobalObject::kGlobalReceiverOffset)); |
1132 } else { | 1133 } else { |
1133 __ push(rbx); | 1134 __ push(rbx); |
1134 } | 1135 } |
1135 EmitCallWithStub(expr); | 1136 EmitCallWithStub(expr); |
1136 } | 1137 } |
1137 } else { | 1138 } else { |
1138 // Call to some other expression. If the expression is an anonymous | 1139 // Call to some other expression. If the expression is an anonymous |
1139 // function literal not called in a loop, mark it as one that should | 1140 // function literal not called in a loop, mark it as one that should |
1140 // also use the fast code generator. | 1141 // also use the fast code generator. |
1141 FunctionLiteral* lit = fun->AsFunctionLiteral(); | 1142 FunctionLiteral* lit = fun->AsFunctionLiteral(); |
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 __ movq(Operand(rsp, 0), rdx); | 1721 __ movq(Operand(rsp, 0), rdx); |
1721 // And return. | 1722 // And return. |
1722 __ ret(0); | 1723 __ ret(0); |
1723 } | 1724 } |
1724 | 1725 |
1725 | 1726 |
1726 #undef __ | 1727 #undef __ |
1727 | 1728 |
1728 | 1729 |
1729 } } // namespace v8::internal | 1730 } } // namespace v8::internal |
OLD | NEW |