| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 } | 369 } |
| 370 | 370 |
| 371 | 371 |
| 372 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) { | 372 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op) { |
| 373 DCHECK(op->opcode() == IrOpcode::kJSCreateLiteralArray || | 373 DCHECK(op->opcode() == IrOpcode::kJSCreateLiteralArray || |
| 374 op->opcode() == IrOpcode::kJSCreateLiteralObject || | 374 op->opcode() == IrOpcode::kJSCreateLiteralObject || |
| 375 op->opcode() == IrOpcode::kJSCreateLiteralRegExp); | 375 op->opcode() == IrOpcode::kJSCreateLiteralRegExp); |
| 376 return OpParameter<CreateLiteralParameters>(op); | 376 return OpParameter<CreateLiteralParameters>(op); |
| 377 } | 377 } |
| 378 | 378 |
| 379 const BinaryOperationHints& BinaryOperationHintsOf(const Operator* op) { |
| 380 DCHECK(op->opcode() == IrOpcode::kJSAdd || |
| 381 op->opcode() == IrOpcode::kJSSubtract); |
| 382 return OpParameter<BinaryOperationHints>(op); |
| 383 } |
| 384 |
| 379 #define CACHED_OP_LIST(V) \ | 385 #define CACHED_OP_LIST(V) \ |
| 380 V(Equal, Operator::kNoProperties, 2, 1) \ | 386 V(Equal, Operator::kNoProperties, 2, 1) \ |
| 381 V(NotEqual, Operator::kNoProperties, 2, 1) \ | 387 V(NotEqual, Operator::kNoProperties, 2, 1) \ |
| 382 V(StrictEqual, Operator::kPure, 2, 1) \ | 388 V(StrictEqual, Operator::kPure, 2, 1) \ |
| 383 V(StrictNotEqual, Operator::kPure, 2, 1) \ | 389 V(StrictNotEqual, Operator::kPure, 2, 1) \ |
| 384 V(LessThan, Operator::kNoProperties, 2, 1) \ | 390 V(LessThan, Operator::kNoProperties, 2, 1) \ |
| 385 V(GreaterThan, Operator::kNoProperties, 2, 1) \ | 391 V(GreaterThan, Operator::kNoProperties, 2, 1) \ |
| 386 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ | 392 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ |
| 387 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ | 393 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ |
| 388 V(ToInteger, Operator::kNoProperties, 1, 1) \ | 394 V(ToInteger, Operator::kNoProperties, 1, 1) \ |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 830 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
| 825 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 831 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 826 "JSCreateScriptContext", // name | 832 "JSCreateScriptContext", // name |
| 827 1, 1, 1, 1, 1, 2, // counts | 833 1, 1, 1, 1, 1, 2, // counts |
| 828 scpope_info); // parameter | 834 scpope_info); // parameter |
| 829 } | 835 } |
| 830 | 836 |
| 831 } // namespace compiler | 837 } // namespace compiler |
| 832 } // namespace internal | 838 } // namespace internal |
| 833 } // namespace v8 | 839 } // namespace v8 |
| OLD | NEW |