| 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/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
| 10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 Node* info = jsgraph()->Constant(shared_info); | 806 Node* info = jsgraph()->Constant(shared_info); |
| 807 Node* pretenure = expr->pretenure() ? jsgraph()->TrueConstant() | 807 Node* pretenure = expr->pretenure() ? jsgraph()->TrueConstant() |
| 808 : jsgraph()->FalseConstant(); | 808 : jsgraph()->FalseConstant(); |
| 809 const Operator* op = javascript()->CallRuntime(Runtime::kNewClosure, 3); | 809 const Operator* op = javascript()->CallRuntime(Runtime::kNewClosure, 3); |
| 810 Node* value = NewNode(op, context, info, pretenure); | 810 Node* value = NewNode(op, context, info, pretenure); |
| 811 ast_context()->ProduceValue(value); | 811 ast_context()->ProduceValue(value); |
| 812 } | 812 } |
| 813 | 813 |
| 814 | 814 |
| 815 void AstGraphBuilder::VisitClassLiteral(ClassLiteral* expr) { | 815 void AstGraphBuilder::VisitClassLiteral(ClassLiteral* expr) { |
| 816 // TODO(arv): Implement. | |
| 817 UNREACHABLE(); | 816 UNREACHABLE(); |
| 818 } | 817 } |
| 819 | 818 |
| 820 | 819 |
| 821 void AstGraphBuilder::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { | 820 void AstGraphBuilder::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) { |
| 822 UNREACHABLE(); | 821 UNREACHABLE(); |
| 823 } | 822 } |
| 824 | 823 |
| 825 | 824 |
| 826 void AstGraphBuilder::VisitConditional(Conditional* expr) { | 825 void AstGraphBuilder::VisitConditional(Conditional* expr) { |
| (...skipping 1239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2066 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == | 2065 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == |
| 2067 IrOpcode::kDead); | 2066 IrOpcode::kDead); |
| 2068 NodeProperties::ReplaceFrameStateInput( | 2067 NodeProperties::ReplaceFrameStateInput( |
| 2069 node, environment()->Checkpoint(ast_id, combine)); | 2068 node, environment()->Checkpoint(ast_id, combine)); |
| 2070 } | 2069 } |
| 2071 } | 2070 } |
| 2072 | 2071 |
| 2073 } | 2072 } |
| 2074 } | 2073 } |
| 2075 } // namespace v8::internal::compiler | 2074 } // namespace v8::internal::compiler |
| OLD | NEW |