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

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

Issue 795993002: Introduce unsigned representation types (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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') | src/types.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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 case IrOpcode::kNumberConstant: 282 case IrOpcode::kNumberConstant:
283 // Constants have no inputs. 283 // Constants have no inputs.
284 CHECK_EQ(0, input_count); 284 CHECK_EQ(0, input_count);
285 // Type is a number. 285 // Type is a number.
286 CheckUpperIs(node, Type::Number()); 286 CheckUpperIs(node, Type::Number());
287 break; 287 break;
288 case IrOpcode::kHeapConstant: 288 case IrOpcode::kHeapConstant:
289 // Constants have no inputs. 289 // Constants have no inputs.
290 CHECK_EQ(0, input_count); 290 CHECK_EQ(0, input_count);
291 // Type can be anything represented as a heap pointer. 291 // Type can be anything represented as a heap pointer.
292 CheckUpperIs(node, Type::TaggedPtr()); 292 CheckUpperIs(node, Type::TaggedPointer());
293 break; 293 break;
294 case IrOpcode::kExternalConstant: 294 case IrOpcode::kExternalConstant:
295 // Constants have no inputs. 295 // Constants have no inputs.
296 CHECK_EQ(0, input_count); 296 CHECK_EQ(0, input_count);
297 // Type is considered internal. 297 // Type is considered internal.
298 CheckUpperIs(node, Type::Internal()); 298 CheckUpperIs(node, Type::Internal());
299 break; 299 break;
300 case IrOpcode::kProjection: { 300 case IrOpcode::kProjection: {
301 // Projection has an input that produces enough values. 301 // Projection has an input that produces enough values.
302 int index = static_cast<int>(OpParameter<size_t>(node->op())); 302 int index = static_cast<int>(OpParameter<size_t>(node->op()));
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 // Check inputs for all nodes in the block. 975 // Check inputs for all nodes in the block.
976 for (size_t i = 0; i < block->NodeCount(); i++) { 976 for (size_t i = 0; i < block->NodeCount(); i++) {
977 Node* node = block->NodeAt(i); 977 Node* node = block->NodeAt(i);
978 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); 978 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1);
979 } 979 }
980 } 980 }
981 } 981 }
982 } 982 }
983 } 983 }
984 } // namespace v8::internal::compiler 984 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698