Chromium Code Reviews| 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/ast-loop-assignment-analyzer.h" | 8 #include "src/compiler/ast-loop-assignment-analyzer.h" |
| 9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2220 VisitForValue(expr->left()); | 2220 VisitForValue(expr->left()); |
| 2221 VisitForValue(expr->right()); | 2221 VisitForValue(expr->right()); |
| 2222 Node* right = environment()->Pop(); | 2222 Node* right = environment()->Pop(); |
| 2223 Node* left = environment()->Pop(); | 2223 Node* left = environment()->Pop(); |
| 2224 Node* value = NewNode(op, left, right); | 2224 Node* value = NewNode(op, left, right); |
| 2225 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); | 2225 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); |
| 2226 ast_context()->ProduceValue(value); | 2226 ast_context()->ProduceValue(value); |
| 2227 } | 2227 } |
| 2228 | 2228 |
| 2229 | 2229 |
| 2230 void AstGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) { | |
| 2231 Visit(expr->expression()); | |
|
arv (Not doing code reviews)
2015/02/18 15:07:05
missing todo?
| |
| 2232 } | |
| 2233 | |
| 2234 | |
| 2230 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { | 2235 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { |
| 2231 Node* value = GetFunctionClosure(); | 2236 Node* value = GetFunctionClosure(); |
| 2232 ast_context()->ProduceValue(value); | 2237 ast_context()->ProduceValue(value); |
| 2233 } | 2238 } |
| 2234 | 2239 |
| 2235 | 2240 |
| 2236 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { | 2241 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { |
| 2237 // TODO(turbofan): Implement super here. | 2242 // TODO(turbofan): Implement super here. |
| 2238 SetStackOverflow(); | 2243 SetStackOverflow(); |
| 2239 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); | 2244 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3150 // Phi does not exist yet, introduce one. | 3155 // Phi does not exist yet, introduce one. |
| 3151 value = NewPhi(inputs, value, control); | 3156 value = NewPhi(inputs, value, control); |
| 3152 value->ReplaceInput(inputs - 1, other); | 3157 value->ReplaceInput(inputs - 1, other); |
| 3153 } | 3158 } |
| 3154 return value; | 3159 return value; |
| 3155 } | 3160 } |
| 3156 | 3161 |
| 3157 } // namespace compiler | 3162 } // namespace compiler |
| 3158 } // namespace internal | 3163 } // namespace internal |
| 3159 } // namespace v8 | 3164 } // namespace v8 |
| OLD | NEW |