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

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

Issue 631433002: Classes runtime (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove kConstructorFunction Created 6 years, 2 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
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698