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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 418143007: FYI Implementing 'super' keyword (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: one more test Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
1465 ast_context()->ProduceValue(value); 1465 ast_context()->ProduceValue(value);
1466 } 1466 }
1467 1467
1468 1468
1469 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { 1469 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) {
1470 Node* value = GetFunctionClosure(); 1470 Node* value = GetFunctionClosure();
1471 ast_context()->ProduceValue(value); 1471 ast_context()->ProduceValue(value);
1472 } 1472 }
1473 1473
1474 1474
1475 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) {
1476 UNREACHABLE();
1477 }
1478
1479
1475 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); } 1480 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); }
1476 1481
1477 1482
1478 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { 1483 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) {
1479 DCHECK(globals()->is_empty()); 1484 DCHECK(globals()->is_empty());
1480 AstVisitor::VisitDeclarations(declarations); 1485 AstVisitor::VisitDeclarations(declarations);
1481 if (globals()->is_empty()) return; 1486 if (globals()->is_empty()) return;
1482 Handle<FixedArray> data = 1487 Handle<FixedArray> data =
1483 isolate()->factory()->NewFixedArray(globals()->length(), TENURED); 1488 isolate()->factory()->NewFixedArray(globals()->length(), TENURED);
1484 for (int i = 0; i < globals()->length(); ++i) data->set(i, *globals()->at(i)); 1489 for (int i = 0; i < globals()->length(); ++i) data->set(i, *globals()->at(i));
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 1985
1981 // Continue with the original environment. 1986 // Continue with the original environment.
1982 set_environment(continuation_env); 1987 set_environment(continuation_env);
1983 1988
1984 NewNode(common()->Continuation()); 1989 NewNode(common()->Continuation());
1985 } 1990 }
1986 } 1991 }
1987 } 1992 }
1988 } 1993 }
1989 } // namespace v8::internal::compiler 1994 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/factory.cc » ('j') | src/ia32/full-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698