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

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

Issue 2489563004: [turbofan] Add support for accessing Uint8ClampedArrays. (Closed)
Patch Set: Fix typing rule. Created 4 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
« no previous file with comments | « src/compiler/typed-optimization.cc ('k') | test/mjsunit/compiler/uint8-clamped-array.js » ('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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // Number -> Boolean 819 // Number -> Boolean
820 CheckValueInputIs(node, 0, Type::Number()); 820 CheckValueInputIs(node, 0, Type::Number());
821 CheckTypeIs(node, Type::Boolean()); 821 CheckTypeIs(node, Type::Boolean());
822 break; 822 break;
823 case IrOpcode::kNumberToInt32: 823 case IrOpcode::kNumberToInt32:
824 // Number -> Signed32 824 // Number -> Signed32
825 CheckValueInputIs(node, 0, Type::Number()); 825 CheckValueInputIs(node, 0, Type::Number());
826 CheckTypeIs(node, Type::Signed32()); 826 CheckTypeIs(node, Type::Signed32());
827 break; 827 break;
828 case IrOpcode::kNumberToUint32: 828 case IrOpcode::kNumberToUint32:
829 case IrOpcode::kNumberToUint8Clamped:
829 // Number -> Unsigned32 830 // Number -> Unsigned32
830 CheckValueInputIs(node, 0, Type::Number()); 831 CheckValueInputIs(node, 0, Type::Number());
831 CheckTypeIs(node, Type::Unsigned32()); 832 CheckTypeIs(node, Type::Unsigned32());
832 break; 833 break;
833 case IrOpcode::kPlainPrimitiveToNumber: 834 case IrOpcode::kPlainPrimitiveToNumber:
834 // PlainPrimitive -> Number 835 // PlainPrimitive -> Number
835 CheckValueInputIs(node, 0, Type::PlainPrimitive()); 836 CheckValueInputIs(node, 0, Type::PlainPrimitive());
836 CheckTypeIs(node, Type::Number()); 837 CheckTypeIs(node, Type::Number());
837 break; 838 break;
838 case IrOpcode::kPlainPrimitiveToWord32: 839 case IrOpcode::kPlainPrimitiveToWord32:
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 replacement->op()->EffectOutputCount() > 0); 1622 replacement->op()->EffectOutputCount() > 0);
1622 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1623 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1623 replacement->opcode() == IrOpcode::kFrameState); 1624 replacement->opcode() == IrOpcode::kFrameState);
1624 } 1625 }
1625 1626
1626 #endif // DEBUG 1627 #endif // DEBUG
1627 1628
1628 } // namespace compiler 1629 } // namespace compiler
1629 } // namespace internal 1630 } // namespace internal
1630 } // namespace v8 1631 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typed-optimization.cc ('k') | test/mjsunit/compiler/uint8-clamped-array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698