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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
549 V(ToObject, Operator::kFoldable, 1, 1) \ | 549 V(ToObject, Operator::kFoldable, 1, 1) \ |
550 V(ToString, Operator::kNoProperties, 1, 1) \ | 550 V(ToString, Operator::kNoProperties, 1, 1) \ |
551 V(Create, Operator::kNoProperties, 2, 1) \ | 551 V(Create, Operator::kNoProperties, 2, 1) \ |
552 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ | 552 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ |
553 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \ | 553 V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \ |
554 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 554 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
555 V(ClassOf, Operator::kPure, 1, 1) \ | 555 V(ClassOf, Operator::kPure, 1, 1) \ |
556 V(TypeOf, Operator::kPure, 1, 1) \ | 556 V(TypeOf, Operator::kPure, 1, 1) \ |
557 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 557 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
558 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \ | 558 V(OrdinaryHasInstance, Operator::kNoProperties, 2, 1) \ |
| 559 V(ForInHasOwnProperty, Operator::kNoProperties, 4, 1) \ |
| 560 V(ForInLoadProperty, Operator::kNoProperties, 4, 1) \ |
559 V(ForInNext, Operator::kNoProperties, 4, 1) \ | 561 V(ForInNext, Operator::kNoProperties, 4, 1) \ |
560 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ | 562 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ |
561 V(LoadMessage, Operator::kNoThrow | Operator::kNoWrite, 0, 1) \ | 563 V(LoadMessage, Operator::kNoThrow | Operator::kNoWrite, 0, 1) \ |
562 V(StoreMessage, Operator::kNoRead | Operator::kNoThrow, 1, 0) \ | 564 V(StoreMessage, Operator::kNoRead | Operator::kNoThrow, 1, 0) \ |
563 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ | 565 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ |
564 V(StackCheck, Operator::kNoWrite, 0, 0) \ | 566 V(StackCheck, Operator::kNoWrite, 0, 0) \ |
565 V(Debugger, Operator::kNoProperties, 0, 0) \ | 567 V(Debugger, Operator::kNoProperties, 0, 0) \ |
566 V(GetSuperConstructor, Operator::kNoWrite, 1, 1) | 568 V(GetSuperConstructor, Operator::kNoWrite, 1, 1) |
567 | 569 |
568 #define BINARY_OP_LIST(V) V(Add) | 570 #define BINARY_OP_LIST(V) V(Add) |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 1050 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
1049 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 1051 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
1050 "JSCreateScriptContext", // name | 1052 "JSCreateScriptContext", // name |
1051 1, 1, 1, 1, 1, 2, // counts | 1053 1, 1, 1, 1, 1, 2, // counts |
1052 scope_info); // parameter | 1054 scope_info); // parameter |
1053 } | 1055 } |
1054 | 1056 |
1055 } // namespace compiler | 1057 } // namespace compiler |
1056 } // namespace internal | 1058 } // namespace internal |
1057 } // namespace v8 | 1059 } // namespace v8 |
OLD | NEW |