OLD | NEW |
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/js-operator.h" | 5 #include "src/compiler/js-operator.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/lazy-instance.h" | 9 #include "src/base/lazy-instance.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 op->opcode() == IrOpcode::kJSCreateLiteralRegExp); | 479 op->opcode() == IrOpcode::kJSCreateLiteralRegExp); |
480 return OpParameter<CreateLiteralParameters>(op); | 480 return OpParameter<CreateLiteralParameters>(op); |
481 } | 481 } |
482 | 482 |
483 | 483 |
484 #define CACHED_OP_LIST(V) \ | 484 #define CACHED_OP_LIST(V) \ |
485 V(Equal, Operator::kNoProperties, 2, 1) \ | 485 V(Equal, Operator::kNoProperties, 2, 1) \ |
486 V(NotEqual, Operator::kNoProperties, 2, 1) \ | 486 V(NotEqual, Operator::kNoProperties, 2, 1) \ |
487 V(StrictEqual, Operator::kNoThrow, 2, 1) \ | 487 V(StrictEqual, Operator::kNoThrow, 2, 1) \ |
488 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \ | 488 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \ |
489 V(UnaryNot, Operator::kEliminatable, 1, 1) \ | |
490 V(ToBoolean, Operator::kEliminatable, 1, 1) \ | 489 V(ToBoolean, Operator::kEliminatable, 1, 1) \ |
491 V(ToNumber, Operator::kNoProperties, 1, 1) \ | 490 V(ToNumber, Operator::kNoProperties, 1, 1) \ |
492 V(ToString, Operator::kNoProperties, 1, 1) \ | 491 V(ToString, Operator::kNoProperties, 1, 1) \ |
493 V(ToName, Operator::kNoProperties, 1, 1) \ | 492 V(ToName, Operator::kNoProperties, 1, 1) \ |
494 V(ToObject, Operator::kNoProperties, 1, 1) \ | 493 V(ToObject, Operator::kNoProperties, 1, 1) \ |
495 V(Yield, Operator::kNoProperties, 1, 1) \ | 494 V(Yield, Operator::kNoProperties, 1, 1) \ |
496 V(Create, Operator::kEliminatable, 2, 1) \ | 495 V(Create, Operator::kEliminatable, 2, 1) \ |
497 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 496 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
498 V(TypeOf, Operator::kEliminatable, 1, 1) \ | 497 V(TypeOf, Operator::kEliminatable, 1, 1) \ |
499 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 498 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 985 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
987 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 986 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
988 "JSCreateScriptContext", // name | 987 "JSCreateScriptContext", // name |
989 1, 1, 1, 1, 1, 2, // counts | 988 1, 1, 1, 1, 1, 2, // counts |
990 scpope_info); // parameter | 989 scpope_info); // parameter |
991 } | 990 } |
992 | 991 |
993 } // namespace compiler | 992 } // namespace compiler |
994 } // namespace internal | 993 } // namespace internal |
995 } // namespace v8 | 994 } // namespace v8 |
OLD | NEW |