Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
| 6 | 6 |
| 7 #include "src/ast/ast-numbering.h" | 7 #include "src/ast/ast-numbering.h" |
| 8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
| 9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
| 10 #include "src/ast/scopes.h" | 10 #include "src/ast/scopes.h" |
| (...skipping 1683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1694 EmitKeyedCallWithLoadIC(expr, property->key()); | 1694 EmitKeyedCallWithLoadIC(expr, property->key()); |
| 1695 break; | 1695 break; |
| 1696 } | 1696 } |
| 1697 case Call::NAMED_SUPER_PROPERTY_CALL: | 1697 case Call::NAMED_SUPER_PROPERTY_CALL: |
| 1698 EmitSuperCallWithLoadIC(expr); | 1698 EmitSuperCallWithLoadIC(expr); |
| 1699 break; | 1699 break; |
| 1700 case Call::KEYED_SUPER_PROPERTY_CALL: | 1700 case Call::KEYED_SUPER_PROPERTY_CALL: |
| 1701 EmitKeyedSuperCallWithLoadIC(expr); | 1701 EmitKeyedSuperCallWithLoadIC(expr); |
| 1702 break; | 1702 break; |
| 1703 case Call::SUPER_CALL: | 1703 case Call::SUPER_CALL: |
| 1704 EmitSuperConstructorCall(expr); | 1704 // Bytecode only |
| 1705 UNREACHABLE(); | |
|
rmcilroy
2016/11/24 18:13:04
nit - could you move this to the bottom of the swi
petermarshall
2016/11/28 09:19:27
Done
| |
| 1705 break; | 1706 break; |
| 1706 case Call::OTHER_CALL: | 1707 case Call::OTHER_CALL: |
| 1707 // Call to an arbitrary expression not handled specially above. | 1708 // Call to an arbitrary expression not handled specially above. |
| 1708 VisitForStackValue(callee); | 1709 VisitForStackValue(callee); |
| 1709 OperandStackDepthIncrement(1); | 1710 OperandStackDepthIncrement(1); |
| 1710 __ PushRoot(Heap::kUndefinedValueRootIndex); | 1711 __ PushRoot(Heap::kUndefinedValueRootIndex); |
| 1711 // Emit function call. | 1712 // Emit function call. |
| 1712 EmitCall(expr); | 1713 EmitCall(expr); |
| 1713 break; | 1714 break; |
| 1714 } | 1715 } |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1995 return info_->has_simple_parameters(); | 1996 return info_->has_simple_parameters(); |
| 1996 } | 1997 } |
| 1997 | 1998 |
| 1998 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } | 1999 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } |
| 1999 | 2000 |
| 2000 #undef __ | 2001 #undef __ |
| 2001 | 2002 |
| 2002 | 2003 |
| 2003 } // namespace internal | 2004 } // namespace internal |
| 2004 } // namespace v8 | 2005 } // namespace v8 |
| OLD | NEW |