| 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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 EmitCallWithStub(expr); | 1273 EmitCallWithStub(expr); |
| 1274 } | 1274 } |
| 1275 } else { | 1275 } else { |
| 1276 // Call to some other expression. If the expression is an anonymous | 1276 // Call to some other expression. If the expression is an anonymous |
| 1277 // function literal not called in a loop, mark it as one that should | 1277 // function literal not called in a loop, mark it as one that should |
| 1278 // also use the fast code generator. | 1278 // also use the fast code generator. |
| 1279 FunctionLiteral* lit = fun->AsFunctionLiteral(); | 1279 FunctionLiteral* lit = fun->AsFunctionLiteral(); |
| 1280 if (lit != NULL && | 1280 if (lit != NULL && |
| 1281 lit->name()->Equals(Heap::empty_string()) && | 1281 lit->name()->Equals(Heap::empty_string()) && |
| 1282 loop_depth() == 0) { | 1282 loop_depth() == 0) { |
| 1283 lit->set_try_fast_codegen(true); | 1283 lit->set_try_full_codegen(true); |
| 1284 } | 1284 } |
| 1285 VisitForValue(fun, kStack); | 1285 VisitForValue(fun, kStack); |
| 1286 // Load global receiver object. | 1286 // Load global receiver object. |
| 1287 __ movq(rbx, CodeGenerator::GlobalObject()); | 1287 __ movq(rbx, CodeGenerator::GlobalObject()); |
| 1288 __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); | 1288 __ push(FieldOperand(rbx, GlobalObject::kGlobalReceiverOffset)); |
| 1289 // Emit function call. | 1289 // Emit function call. |
| 1290 EmitCallWithStub(expr); | 1290 EmitCallWithStub(expr); |
| 1291 } | 1291 } |
| 1292 } | 1292 } |
| 1293 | 1293 |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1843 __ movq(Operand(rsp, 0), rdx); | 1843 __ movq(Operand(rsp, 0), rdx); |
| 1844 // And return. | 1844 // And return. |
| 1845 __ ret(0); | 1845 __ ret(0); |
| 1846 } | 1846 } |
| 1847 | 1847 |
| 1848 | 1848 |
| 1849 #undef __ | 1849 #undef __ |
| 1850 | 1850 |
| 1851 | 1851 |
| 1852 } } // namespace v8::internal | 1852 } } // namespace v8::internal |
| OLD | NEW |