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

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

Issue 700523003: Classes: Partial fix for constructor not calling super (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove todo Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/globals.h » ('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 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 } else { 1568 } else {
1569 __ Push(isolate()->factory()->undefined_value()); 1569 __ Push(isolate()->factory()->undefined_value());
1570 } 1570 }
1571 1571
1572 if (lit->extends() != NULL) { 1572 if (lit->extends() != NULL) {
1573 VisitForStackValue(lit->extends()); 1573 VisitForStackValue(lit->extends());
1574 } else { 1574 } else {
1575 __ Push(isolate()->factory()->the_hole_value()); 1575 __ Push(isolate()->factory()->the_hole_value());
1576 } 1576 }
1577 1577
1578 if (lit->constructor() != NULL) { 1578 VisitForStackValue(lit->constructor());
1579 VisitForStackValue(lit->constructor());
1580 } else {
1581 __ Push(isolate()->factory()->undefined_value());
1582 }
1583 1579
1584 __ Push(script()); 1580 __ Push(script());
1585 __ Push(Smi::FromInt(lit->start_position())); 1581 __ Push(Smi::FromInt(lit->start_position()));
1586 __ Push(Smi::FromInt(lit->end_position())); 1582 __ Push(Smi::FromInt(lit->end_position()));
1587 1583
1588 __ CallRuntime(Runtime::kDefineClass, 6); 1584 __ CallRuntime(Runtime::kDefineClass, 6);
1589 EmitClassDefineProperties(lit); 1585 EmitClassDefineProperties(lit);
1590 1586
1591 context()->Plug(result_register()); 1587 context()->Plug(result_register());
1592 } 1588 }
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 } 1747 }
1752 return true; 1748 return true;
1753 } 1749 }
1754 #endif // DEBUG 1750 #endif // DEBUG
1755 1751
1756 1752
1757 #undef __ 1753 #undef __
1758 1754
1759 1755
1760 } } // namespace v8::internal 1756 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698