| 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 V(TypeOf, Operator::kPure, 1, 1) \ | 416 V(TypeOf, Operator::kPure, 1, 1) \ |
| 417 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 417 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
| 418 V(ForInDone, Operator::kPure, 2, 1) \ | 418 V(ForInDone, Operator::kPure, 2, 1) \ |
| 419 V(ForInNext, Operator::kNoProperties, 4, 1) \ | 419 V(ForInNext, Operator::kNoProperties, 4, 1) \ |
| 420 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ | 420 V(ForInPrepare, Operator::kNoProperties, 1, 3) \ |
| 421 V(ForInStep, Operator::kPure, 1, 1) \ | 421 V(ForInStep, Operator::kPure, 1, 1) \ |
| 422 V(LoadMessage, Operator::kNoThrow, 0, 1) \ | 422 V(LoadMessage, Operator::kNoThrow, 0, 1) \ |
| 423 V(StoreMessage, Operator::kNoThrow, 1, 0) \ | 423 V(StoreMessage, Operator::kNoThrow, 1, 0) \ |
| 424 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ | 424 V(GeneratorRestoreContinuation, Operator::kNoThrow, 1, 1) \ |
| 425 V(StackCheck, Operator::kNoProperties, 0, 0) \ | 425 V(StackCheck, Operator::kNoProperties, 0, 0) \ |
| 426 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ | 426 V(CreateWithContext, Operator::kNoProperties, 2, 1) |
| 427 V(CreateModuleContext, Operator::kNoProperties, 2, 1) | |
| 428 | 427 |
| 429 struct JSOperatorGlobalCache final { | 428 struct JSOperatorGlobalCache final { |
| 430 #define CACHED(Name, properties, value_input_count, value_output_count) \ | 429 #define CACHED(Name, properties, value_input_count, value_output_count) \ |
| 431 struct Name##Operator final : public Operator { \ | 430 struct Name##Operator final : public Operator { \ |
| 432 Name##Operator() \ | 431 Name##Operator() \ |
| 433 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ | 432 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ |
| 434 value_input_count, Operator::ZeroIfPure(properties), \ | 433 value_input_count, Operator::ZeroIfPure(properties), \ |
| 435 Operator::ZeroIfEliminatable(properties), \ | 434 Operator::ZeroIfEliminatable(properties), \ |
| 436 value_output_count, Operator::ZeroIfPure(properties), \ | 435 value_output_count, Operator::ZeroIfPure(properties), \ |
| 437 Operator::ZeroIfNoThrow(properties)) {} \ | 436 Operator::ZeroIfNoThrow(properties)) {} \ |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 915 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
| 917 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 916 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
| 918 "JSCreateScriptContext", // name | 917 "JSCreateScriptContext", // name |
| 919 1, 1, 1, 1, 1, 2, // counts | 918 1, 1, 1, 1, 1, 2, // counts |
| 920 scpope_info); // parameter | 919 scpope_info); // parameter |
| 921 } | 920 } |
| 922 | 921 |
| 923 } // namespace compiler | 922 } // namespace compiler |
| 924 } // namespace internal | 923 } // namespace internal |
| 925 } // namespace v8 | 924 } // namespace v8 |
| OLD | NEW |