| 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 1527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 VisitInDuplicateContext(expr->else_expression()); | 1538 VisitInDuplicateContext(expr->else_expression()); |
| 1539 // If control flow falls through Visit, merge it with true case here. | 1539 // If control flow falls through Visit, merge it with true case here. |
| 1540 if (!context()->IsTest()) { | 1540 if (!context()->IsTest()) { |
| 1541 __ bind(&done); | 1541 __ bind(&done); |
| 1542 } | 1542 } |
| 1543 } | 1543 } |
| 1544 | 1544 |
| 1545 | 1545 |
| 1546 void FullCodeGenerator::VisitLiteral(Literal* expr) { | 1546 void FullCodeGenerator::VisitLiteral(Literal* expr) { |
| 1547 Comment cmnt(masm_, "[ Literal"); | 1547 Comment cmnt(masm_, "[ Literal"); |
| 1548 context()->Plug(expr->handle()); | 1548 context()->Plug(expr->value()); |
| 1549 } | 1549 } |
| 1550 | 1550 |
| 1551 | 1551 |
| 1552 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { | 1552 void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
| 1553 Comment cmnt(masm_, "[ FunctionLiteral"); | 1553 Comment cmnt(masm_, "[ FunctionLiteral"); |
| 1554 | 1554 |
| 1555 // Build the function boilerplate and instantiate it. | 1555 // Build the function boilerplate and instantiate it. |
| 1556 Handle<SharedFunctionInfo> function_info = | 1556 Handle<SharedFunctionInfo> function_info = |
| 1557 Compiler::BuildFunctionInfo(expr, script()); | 1557 Compiler::BuildFunctionInfo(expr, script()); |
| 1558 if (function_info.is_null()) { | 1558 if (function_info.is_null()) { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1608 } | 1608 } |
| 1609 | 1609 |
| 1610 return false; | 1610 return false; |
| 1611 } | 1611 } |
| 1612 | 1612 |
| 1613 | 1613 |
| 1614 #undef __ | 1614 #undef __ |
| 1615 | 1615 |
| 1616 | 1616 |
| 1617 } } // namespace v8::internal | 1617 } } // namespace v8::internal |
| OLD | NEW |