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

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

Issue 2242583003: [Parser] Remove Variable::is_possibly_eval. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@toon_cl
Patch Set: Address comment Created 4 years, 4 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
« no previous file with comments | « src/ast/variables.h ('k') | src/crankshaft/hydrogen.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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2269 PrepareFrameState(value, expr->LoadId(), OutputFrameStateCombine::Push()); 2269 PrepareFrameState(value, expr->LoadId(), OutputFrameStateCombine::Push());
2270 break; 2270 break;
2271 } 2271 }
2272 } 2272 }
2273 ast_context()->ProduceValue(expr, value); 2273 ast_context()->ProduceValue(expr, value);
2274 } 2274 }
2275 2275
2276 2276
2277 void AstGraphBuilder::VisitCall(Call* expr) { 2277 void AstGraphBuilder::VisitCall(Call* expr) {
2278 Expression* callee = expr->expression(); 2278 Expression* callee = expr->expression();
2279 Call::CallType call_type = expr->GetCallType(isolate()); 2279 Call::CallType call_type = expr->GetCallType();
2280 2280
2281 // Prepare the callee and the receiver to the function call. This depends on 2281 // Prepare the callee and the receiver to the function call. This depends on
2282 // the semantics of the underlying call type. 2282 // the semantics of the underlying call type.
2283 ConvertReceiverMode receiver_hint = ConvertReceiverMode::kAny; 2283 ConvertReceiverMode receiver_hint = ConvertReceiverMode::kAny;
2284 Node* receiver_value = nullptr; 2284 Node* receiver_value = nullptr;
2285 Node* callee_value = nullptr; 2285 Node* callee_value = nullptr;
2286 bool possibly_eval = false; 2286 bool possibly_eval = false;
2287 switch (call_type) { 2287 switch (call_type) {
2288 case Call::GLOBAL_CALL: { 2288 case Call::GLOBAL_CALL: {
2289 VariableProxy* proxy = callee->AsVariableProxy(); 2289 VariableProxy* proxy = callee->AsVariableProxy();
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after
4318 // Phi does not exist yet, introduce one. 4318 // Phi does not exist yet, introduce one.
4319 value = NewPhi(inputs, value, control); 4319 value = NewPhi(inputs, value, control);
4320 value->ReplaceInput(inputs - 1, other); 4320 value->ReplaceInput(inputs - 1, other);
4321 } 4321 }
4322 return value; 4322 return value;
4323 } 4323 }
4324 4324
4325 } // namespace compiler 4325 } // namespace compiler
4326 } // namespace internal 4326 } // namespace internal
4327 } // namespace v8 4327 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/variables.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698