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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
447 | 447 |
448 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) { | 448 const CreateClosureParameters& CreateClosureParametersOf(const Operator* op) { |
449 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode()); | 449 DCHECK_EQ(IrOpcode::kJSCreateClosure, op->opcode()); |
450 return OpParameter<CreateClosureParameters>(op); | 450 return OpParameter<CreateClosureParameters>(op); |
451 } | 451 } |
452 | 452 |
453 | 453 |
454 #define CACHED_OP_LIST(V) \ | 454 #define CACHED_OP_LIST(V) \ |
455 V(Equal, Operator::kNoProperties, 2, 1) \ | 455 V(Equal, Operator::kNoProperties, 2, 1) \ |
456 V(NotEqual, Operator::kNoProperties, 2, 1) \ | 456 V(NotEqual, Operator::kNoProperties, 2, 1) \ |
457 V(StrictEqual, Operator::kPure, 2, 1) \ | 457 V(StrictEqual, Operator::kEliminatable, 2, 1) \ |
Benedikt Meurer
2015/09/28 11:42:48
kNoWrite is wrong here, since StringEqual and frie
Jarin
2015/09/28 12:05:34
Done.
| |
458 V(StrictNotEqual, Operator::kPure, 2, 1) \ | 458 V(StrictNotEqual, Operator::kEliminatable, 2, 1) \ |
459 V(UnaryNot, Operator::kPure, 1, 1) \ | 459 V(UnaryNot, Operator::kEliminatable, 1, 1) \ |
460 V(ToBoolean, Operator::kPure, 1, 1) \ | 460 V(ToBoolean, Operator::kEliminatable, 1, 1) \ |
461 V(ToNumber, Operator::kNoProperties, 1, 1) \ | 461 V(ToNumber, Operator::kNoProperties, 1, 1) \ |
462 V(ToString, Operator::kNoProperties, 1, 1) \ | 462 V(ToString, Operator::kNoProperties, 1, 1) \ |
463 V(ToName, Operator::kNoProperties, 1, 1) \ | 463 V(ToName, Operator::kNoProperties, 1, 1) \ |
464 V(ToObject, Operator::kNoProperties, 1, 1) \ | 464 V(ToObject, Operator::kNoProperties, 1, 1) \ |
465 V(Yield, Operator::kNoProperties, 1, 1) \ | 465 V(Yield, Operator::kNoProperties, 1, 1) \ |
466 V(Create, Operator::kEliminatable, 0, 1) \ | 466 V(Create, Operator::kEliminatable, 0, 1) \ |
467 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 467 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
468 V(TypeOf, Operator::kPure, 1, 1) \ | 468 V(TypeOf, Operator::kEliminatable, 1, 1) \ |
469 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 469 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
470 V(ForInDone, Operator::kPure, 2, 1) \ | 470 V(ForInDone, Operator::kPure, 2, 1) \ |
471 V(ForInNext, Operator::kNoProperties, 4, 1) \ | 471 V(ForInNext, Operator::kNoProperties, 4, 1) \ |
472 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ | 472 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ |
473 V(ForInStep, Operator::kPure, 1, 1) \ | 473 V(ForInStep, Operator::kPure, 1, 1) \ |
474 V(StackCheck, Operator::kNoProperties, 0, 0) \ | 474 V(StackCheck, Operator::kNoProperties, 0, 0) \ |
475 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ | 475 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ |
476 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ | 476 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ |
477 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ | 477 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ |
478 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ | 478 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
781 Handle<String>::hash>( // -- | 781 Handle<String>::hash>( // -- |
782 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 782 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
783 "JSCreateCatchContext", // name | 783 "JSCreateCatchContext", // name |
784 2, 1, 1, 1, 1, 2, // counts | 784 2, 1, 1, 1, 1, 2, // counts |
785 name); // parameter | 785 name); // parameter |
786 } | 786 } |
787 | 787 |
788 } // namespace compiler | 788 } // namespace compiler |
789 } // namespace internal | 789 } // namespace internal |
790 } // namespace v8 | 790 } // namespace v8 |
OLD | NEW |