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

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

Issue 2504553003: [es6] Perform the IsConstructor test in GetSuperConstructor. (Closed)
Patch Set: rebase Created 4 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/interpreter/bytecode-array-builder.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 <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 case IrOpcode::kJSHasProperty: 633 case IrOpcode::kJSHasProperty:
634 case IrOpcode::kJSInstanceOf: 634 case IrOpcode::kJSInstanceOf:
635 case IrOpcode::kJSOrdinaryHasInstance: 635 case IrOpcode::kJSOrdinaryHasInstance:
636 // Type is Boolean. 636 // Type is Boolean.
637 CheckTypeIs(node, Type::Boolean()); 637 CheckTypeIs(node, Type::Boolean());
638 break; 638 break;
639 case IrOpcode::kJSTypeOf: 639 case IrOpcode::kJSTypeOf:
640 // Type is String. 640 // Type is String.
641 CheckTypeIs(node, Type::String()); 641 CheckTypeIs(node, Type::String());
642 break; 642 break;
643 case IrOpcode::kJSGetSuperConstructor:
644 // We don't check the input for Type::Function because
645 // this_function can be context-allocated.
646 // Any -> Callable.
647 CheckValueInputIs(node, 0, Type::Any());
648 CheckTypeIs(node, Type::Callable());
649 break;
643 650
644 case IrOpcode::kJSLoadContext: 651 case IrOpcode::kJSLoadContext:
645 // Type can be anything. 652 // Type can be anything.
646 CheckTypeIs(node, Type::Any()); 653 CheckTypeIs(node, Type::Any());
647 break; 654 break;
648 case IrOpcode::kJSStoreContext: 655 case IrOpcode::kJSStoreContext:
649 // Type is empty. 656 // Type is empty.
650 CheckNotTyped(node); 657 CheckNotTyped(node);
651 break; 658 break;
652 case IrOpcode::kJSCreateFunctionContext: 659 case IrOpcode::kJSCreateFunctionContext:
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 replacement->op()->EffectOutputCount() > 0); 1670 replacement->op()->EffectOutputCount() > 0);
1664 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1671 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1665 replacement->opcode() == IrOpcode::kFrameState); 1672 replacement->opcode() == IrOpcode::kFrameState);
1666 } 1673 }
1667 1674
1668 #endif // DEBUG 1675 #endif // DEBUG
1669 1676
1670 } // namespace compiler 1677 } // namespace compiler
1671 } // namespace internal 1678 } // namespace internal
1672 } // namespace v8 1679 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698