| 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 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1575 } | 1575 } |
| 1576 EmitNewClosure(function_info, expr->pretenure()); | 1576 EmitNewClosure(function_info, expr->pretenure()); |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 | 1579 |
| 1580 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { | 1580 void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
| 1581 Comment cmnt(masm_, "[ ClassLiteral"); | 1581 Comment cmnt(masm_, "[ ClassLiteral"); |
| 1582 | 1582 |
| 1583 { | 1583 { |
| 1584 EnterBlockScopeIfNeeded block_scope_state( | 1584 EnterBlockScopeIfNeeded block_scope_state( |
| 1585 this, lit->scope(), BailoutId::None(), BailoutId::None(), | 1585 this, lit->scope(), lit->EntryId(), lit->DeclsId(), lit->ExitId()); |
| 1586 BailoutId::None()); | |
| 1587 | 1586 |
| 1588 if (lit->raw_name() != NULL) { | 1587 if (lit->raw_name() != NULL) { |
| 1589 __ Push(lit->name()); | 1588 __ Push(lit->name()); |
| 1590 } else { | 1589 } else { |
| 1591 __ Push(isolate()->factory()->undefined_value()); | 1590 __ Push(isolate()->factory()->undefined_value()); |
| 1592 } | 1591 } |
| 1593 | 1592 |
| 1594 if (lit->extends() != NULL) { | 1593 if (lit->extends() != NULL) { |
| 1595 VisitForStackValue(lit->extends()); | 1594 VisitForStackValue(lit->extends()); |
| 1596 } else { | 1595 } else { |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 } | 1818 } |
| 1820 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); | 1819 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); |
| 1821 codegen_->scope_ = saved_scope_; | 1820 codegen_->scope_ = saved_scope_; |
| 1822 } | 1821 } |
| 1823 | 1822 |
| 1824 | 1823 |
| 1825 #undef __ | 1824 #undef __ |
| 1826 | 1825 |
| 1827 | 1826 |
| 1828 } } // namespace v8::internal | 1827 } } // namespace v8::internal |
| OLD | NEW |