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

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

Issue 1104453006: [turbofan] Introduce explicit JSCreateLiteral[Array|Object]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 8 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/compiler/typer.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 break; 489 break;
490 490
491 case IrOpcode::kJSCreate: 491 case IrOpcode::kJSCreate:
492 // Type is Object. 492 // Type is Object.
493 CheckUpperIs(node, Type::Object()); 493 CheckUpperIs(node, Type::Object());
494 break; 494 break;
495 case IrOpcode::kJSCreateClosure: 495 case IrOpcode::kJSCreateClosure:
496 // Type is Function. 496 // Type is Function.
497 CheckUpperIs(node, Type::OtherObject()); 497 CheckUpperIs(node, Type::OtherObject());
498 break; 498 break;
499 case IrOpcode::kJSCreateLiteralArray:
500 case IrOpcode::kJSCreateLiteralObject:
501 // Type is OtherObject.
502 CheckUpperIs(node, Type::OtherObject());
503 break;
499 case IrOpcode::kJSLoadProperty: 504 case IrOpcode::kJSLoadProperty:
500 case IrOpcode::kJSLoadNamed: 505 case IrOpcode::kJSLoadNamed:
501 // Type can be anything. 506 // Type can be anything.
502 CheckUpperIs(node, Type::Any()); 507 CheckUpperIs(node, Type::Any());
503 break; 508 break;
504 case IrOpcode::kJSStoreProperty: 509 case IrOpcode::kJSStoreProperty:
505 case IrOpcode::kJSStoreNamed: 510 case IrOpcode::kJSStoreNamed:
506 // Type is empty. 511 // Type is empty.
507 CheckNotTyped(node); 512 CheckNotTyped(node);
508 break; 513 break;
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 // Check inputs for all nodes in the block. 1090 // Check inputs for all nodes in the block.
1086 for (size_t i = 0; i < block->NodeCount(); i++) { 1091 for (size_t i = 0; i < block->NodeCount(); i++) {
1087 Node* node = block->NodeAt(i); 1092 Node* node = block->NodeAt(i);
1088 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); 1093 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1);
1089 } 1094 }
1090 } 1095 }
1091 } 1096 }
1092 } 1097 }
1093 } 1098 }
1094 } // namespace v8::internal::compiler 1099 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698