| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/ast.h" | 7 #include "src/ast.h" |
| 8 #include "src/ast-numbering.h" | 8 #include "src/ast-numbering.h" |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 } | 1582 } |
| 1583 EmitNewClosure(function_info, expr->pretenure()); | 1583 EmitNewClosure(function_info, expr->pretenure()); |
| 1584 } | 1584 } |
| 1585 | 1585 |
| 1586 | 1586 |
| 1587 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { | 1587 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
| 1588 Comment cmnt(masm_, "[ ClassLiteral"); | 1588 Comment cmnt(masm_, "[ ClassLiteral"); |
| 1589 | 1589 |
| 1590 { | 1590 { |
| 1591 EnterBlockScopeIfNeeded block_scope_state( | 1591 EnterBlockScopeIfNeeded block_scope_state( |
| 1592 this, lit->scope(), BailoutId::None(), BailoutId::None(), | 1592 this, lit->scope(), lit->EntryId(), lit->DeclsId(), lit->ExitId()); |
| 1593 BailoutId::None()); | |
| 1594 | 1593 |
| 1595 if (lit->raw_name() != NULL) { | 1594 if (lit->raw_name() != NULL) { |
| 1596 __ Push(lit->name()); | 1595 __ Push(lit->name()); |
| 1597 } else { | 1596 } else { |
| 1598 __ Push(isolate()->factory()->undefined_value()); | 1597 __ Push(isolate()->factory()->undefined_value()); |
| 1599 } | 1598 } |
| 1600 | 1599 |
| 1601 if (lit->extends() != NULL) { | 1600 if (lit->extends() != NULL) { |
| 1602 VisitForStackValue(lit->extends()); | 1601 VisitForStackValue(lit->extends()); |
| 1603 } else { | 1602 } else { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 } | 1825 } |
| 1827 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1826 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
| 1828 codegen_->scope_ = saved_scope_; | 1827 codegen_->scope_ = saved_scope_; |
| 1829 } | 1828 } |
| 1830 | 1829 |
| 1831 | 1830 |
| 1832 #undef __ | 1831 #undef __ |
| 1833 | 1832 |
| 1834 | 1833 |
| 1835 } } // namespace v8::internal | 1834 } } // namespace v8::internal |
| OLD | NEW |