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

Side by Side Diff: src/compiler/verifier.cc

Issue 716833002: Various clean-ups after top-level lexical declarations are done. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing Created 6 years, 1 month 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 | « src/compiler/typer.cc ('k') | src/contexts.h » ('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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <queue> 8 #include <queue>
9 #include <sstream> 9 #include <sstream>
10 #include <string> 10 #include <string>
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 break; 453 break;
454 case IrOpcode::kJSStoreContext: 454 case IrOpcode::kJSStoreContext:
455 // Type is empty. 455 // Type is empty.
456 CheckNotTyped(node); 456 CheckNotTyped(node);
457 break; 457 break;
458 case IrOpcode::kJSCreateFunctionContext: 458 case IrOpcode::kJSCreateFunctionContext:
459 case IrOpcode::kJSCreateCatchContext: 459 case IrOpcode::kJSCreateCatchContext:
460 case IrOpcode::kJSCreateWithContext: 460 case IrOpcode::kJSCreateWithContext:
461 case IrOpcode::kJSCreateBlockContext: 461 case IrOpcode::kJSCreateBlockContext:
462 case IrOpcode::kJSCreateModuleContext: 462 case IrOpcode::kJSCreateModuleContext:
463 case IrOpcode::kJSCreateGlobalContext: { 463 case IrOpcode::kJSCreateScriptContext: {
464 // Type is Context, and operand is Internal. 464 // Type is Context, and operand is Internal.
465 Node* context = NodeProperties::GetContextInput(node); 465 Node* context = NodeProperties::GetContextInput(node);
466 // TODO(rossberg): This should really be Is(Internal), but the typer 466 // TODO(rossberg): This should really be Is(Internal), but the typer
467 // currently can't do backwards propagation. 467 // currently can't do backwards propagation.
468 CheckUpperMaybe(context, Type::Internal()); 468 CheckUpperMaybe(context, Type::Internal());
469 if (typing == TYPED) CHECK(bounds(node).upper->IsContext()); 469 if (typing == TYPED) CHECK(bounds(node).upper->IsContext());
470 break; 470 break;
471 } 471 }
472 472
473 case IrOpcode::kJSCallConstruct: 473 case IrOpcode::kJSCallConstruct:
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 // Check inputs for all nodes in the block. 971 // Check inputs for all nodes in the block.
972 for (size_t i = 0; i < block->NodeCount(); i++) { 972 for (size_t i = 0; i < block->NodeCount(); i++) {
973 Node* node = block->NodeAt(i); 973 Node* node = block->NodeAt(i);
974 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); 974 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1);
975 } 975 }
976 } 976 }
977 } 977 }
978 } 978 }
979 } 979 }
980 } // namespace v8::internal::compiler 980 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698