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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2083 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == | 2082 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == |
2084 IrOpcode::kDead); | 2083 IrOpcode::kDead); |
2085 NodeProperties::ReplaceFrameStateInput( | 2084 NodeProperties::ReplaceFrameStateInput( |
2086 node, environment()->Checkpoint(ast_id, combine)); | 2085 node, environment()->Checkpoint(ast_id, combine)); |
2087 } | 2086 } |
2088 } | 2087 } |
2089 | 2088 |
2090 } | 2089 } |
2091 } | 2090 } |
2092 } // namespace v8::internal::compiler | 2091 } // namespace v8::internal::compiler |
OLD | NEW |