Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/full-codegen.cc

Issue 798873006: First simple implementation of class literals in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698