| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 #define CACHED_OP_LIST(V) \ | 379 #define CACHED_OP_LIST(V) \ |
| 380 V(Equal, Operator::kNoProperties, 2, 1) \ | 380 V(Equal, Operator::kNoProperties, 2, 1) \ |
| 381 V(NotEqual, Operator::kNoProperties, 2, 1) \ | 381 V(NotEqual, Operator::kNoProperties, 2, 1) \ |
| 382 V(StrictEqual, Operator::kNoThrow, 2, 1) \ | 382 V(StrictEqual, Operator::kNoThrow, 2, 1) \ |
| 383 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \ | 383 V(StrictNotEqual, Operator::kNoThrow, 2, 1) \ |
| 384 V(LessThan, Operator::kNoProperties, 2, 1) \ | 384 V(LessThan, Operator::kNoProperties, 2, 1) \ |
| 385 V(GreaterThan, Operator::kNoProperties, 2, 1) \ | 385 V(GreaterThan, Operator::kNoProperties, 2, 1) \ |
| 386 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ | 386 V(LessThanOrEqual, Operator::kNoProperties, 2, 1) \ |
| 387 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ | 387 V(GreaterThanOrEqual, Operator::kNoProperties, 2, 1) \ |
| 388 V(ToInteger, Operator::kNoProperties, 1, 1) \ |
| 389 V(ToLength, Operator::kNoProperties, 1, 1) \ |
| 390 V(ToName, Operator::kNoProperties, 1, 1) \ |
| 388 V(ToNumber, Operator::kNoProperties, 1, 1) \ | 391 V(ToNumber, Operator::kNoProperties, 1, 1) \ |
| 392 V(ToObject, Operator::kNoProperties, 1, 1) \ |
| 389 V(ToString, Operator::kNoProperties, 1, 1) \ | 393 V(ToString, Operator::kNoProperties, 1, 1) \ |
| 390 V(ToName, Operator::kNoProperties, 1, 1) \ | |
| 391 V(ToObject, Operator::kNoProperties, 1, 1) \ | |
| 392 V(Yield, Operator::kNoProperties, 1, 1) \ | 394 V(Yield, Operator::kNoProperties, 1, 1) \ |
| 393 V(Create, Operator::kEliminatable, 2, 1) \ | 395 V(Create, Operator::kEliminatable, 2, 1) \ |
| 394 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ | 396 V(CreateIterResultObject, Operator::kEliminatable, 2, 1) \ |
| 395 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 397 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
| 396 V(TypeOf, Operator::kEliminatable, 1, 1) \ | 398 V(TypeOf, Operator::kEliminatable, 1, 1) \ |
| 397 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 399 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
| 398 V(ForInDone, Operator::kPure, 2, 1) \ | 400 V(ForInDone, Operator::kPure, 2, 1) \ |
| 399 V(ForInNext, Operator::kNoProperties, 4, 1) \ | 401 V(ForInNext, Operator::kNoProperties, 4, 1) \ |
| 400 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ | 402 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ |
| 401 V(ForInStep, Operator::kPure, 1, 1) \ | 403 V(ForInStep, Operator::kPure, 1, 1) \ |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 809 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
| 808 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 810 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 809 "JSCreateScriptContext", // name | 811 "JSCreateScriptContext", // name |
| 810 1, 1, 1, 1, 1, 2, // counts | 812 1, 1, 1, 1, 1, 2, // counts |
| 811 scpope_info); // parameter | 813 scpope_info); // parameter |
| 812 } | 814 } |
| 813 | 815 |
| 814 } // namespace compiler | 816 } // namespace compiler |
| 815 } // namespace internal | 817 } // namespace internal |
| 816 } // namespace v8 | 818 } // namespace v8 |
| OLD | NEW |