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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 457 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
458 V(TypeOf, Operator::kEliminatable, 1, 1) \ | 458 V(TypeOf, Operator::kEliminatable, 1, 1) \ |
459 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 459 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
460 V(ForInDone, Operator::kPure, 2, 1) \ | 460 V(ForInDone, Operator::kPure, 2, 1) \ |
461 V(ForInNext, Operator::kNoProperties, 4, 1) \ | 461 V(ForInNext, Operator::kNoProperties, 4, 1) \ |
462 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ | 462 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ |
463 V(ForInStep, Operator::kPure, 1, 1) \ | 463 V(ForInStep, Operator::kPure, 1, 1) \ |
464 V(LoadMessage, Operator::kNoThrow, 0, 1) \ | 464 V(LoadMessage, Operator::kNoThrow, 0, 1) \ |
465 V(StoreMessage, Operator::kNoThrow, 1, 0) \ | 465 V(StoreMessage, Operator::kNoThrow, 1, 0) \ |
466 V(StackCheck, Operator::kNoProperties, 0, 0) \ | 466 V(StackCheck, Operator::kNoProperties, 0, 0) \ |
467 V(LoadNativeContext, Operator::kEliminatable, 1, 1) \ | |
468 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ | 467 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ |
469 V(CreateModuleContext, Operator::kNoProperties, 2, 1) | 468 V(CreateModuleContext, Operator::kNoProperties, 2, 1) |
470 | 469 |
471 | 470 |
472 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \ | 471 #define CACHED_OP_LIST_WITH_LANGUAGE_MODE(V) \ |
473 V(LessThan, Operator::kNoProperties, 2, 1) \ | 472 V(LessThan, Operator::kNoProperties, 2, 1) \ |
474 V(GreaterThan, Operator::kNoProperties, 2, 1) \ | 473 V(GreaterThan, Operator::kNoProperties, 2, 1) \ |
475 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ | 474 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ |
476 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ | 475 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ |
477 V(BitwiseOr, Operator::kNoProperties, 2, 1) \ | 476 V(BitwiseOr, Operator::kNoProperties, 2, 1) \ |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 825 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
827 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 826 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
828 "JSCreateScriptContext", // name | 827 "JSCreateScriptContext", // name |
829 1, 1, 1, 1, 1, 2, // counts | 828 1, 1, 1, 1, 1, 2, // counts |
830 scpope_info); // parameter | 829 scpope_info); // parameter |
831 } | 830 } |
832 | 831 |
833 } // namespace compiler | 832 } // namespace compiler |
834 } // namespace internal | 833 } // namespace internal |
835 } // namespace v8 | 834 } // namespace v8 |
OLD | NEW |