OLD | NEW |
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 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 BuildLazyBailout(value, expr->id()); | 1533 BuildLazyBailout(value, expr->id()); |
1534 } | 1534 } |
1535 | 1535 |
1536 | 1536 |
1537 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 1537 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
1538 Node* value = GetFunctionClosure(); | 1538 Node* value = GetFunctionClosure(); |
1539 ast_context()->ProduceValue(value); | 1539 ast_context()->ProduceValue(value); |
1540 } | 1540 } |
1541 | 1541 |
1542 | 1542 |
| 1543 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
| 1544 UNREACHABLE(); |
| 1545 } |
| 1546 |
| 1547 |
1543 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); } | 1548 void AstGraphBuilder::VisitCaseClause(CaseClause* expr) { UNREACHABLE(); } |
1544 | 1549 |
1545 | 1550 |
1546 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { | 1551 void AstGraphBuilder::VisitDeclarations(ZoneList<Declaration*>* declarations) { |
1547 DCHECK(globals()->is_empty()); | 1552 DCHECK(globals()->is_empty()); |
1548 AstVisitor::VisitDeclarations(declarations); | 1553 AstVisitor::VisitDeclarations(declarations); |
1549 if (globals()->is_empty()) return; | 1554 if (globals()->is_empty()) return; |
1550 Handle<FixedArray> data = | 1555 Handle<FixedArray> data = |
1551 isolate()->factory()->NewFixedArray(globals()->length(), TENURED); | 1556 isolate()->factory()->NewFixedArray(globals()->length(), TENURED); |
1552 for (int i = 0; i < globals()->length(); ++i) data->set(i, *globals()->at(i)); | 1557 for (int i = 0; i < globals()->length(); ++i) data->set(i, *globals()->at(i)); |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2046 | 2051 |
2047 void AstGraphBuilder::BuildLazyBailoutWithPushedNode(Node* node, | 2052 void AstGraphBuilder::BuildLazyBailoutWithPushedNode(Node* node, |
2048 BailoutId ast_id) { | 2053 BailoutId ast_id) { |
2049 environment()->Push(node); | 2054 environment()->Push(node); |
2050 BuildLazyBailout(node, ast_id); | 2055 BuildLazyBailout(node, ast_id); |
2051 environment()->Pop(); | 2056 environment()->Pop(); |
2052 } | 2057 } |
2053 } | 2058 } |
2054 } | 2059 } |
2055 } // namespace v8::internal::compiler | 2060 } // namespace v8::internal::compiler |
OLD | NEW |