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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 415 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
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::kNoWrite, 0, 0) \ |
426 V(CreateWithContext, Operator::kNoProperties, 2, 1) | 426 V(CreateWithContext, Operator::kNoProperties, 2, 1) |
427 | 427 |
428 struct JSOperatorGlobalCache final { | 428 struct JSOperatorGlobalCache final { |
429 #define CACHED(Name, properties, value_input_count, value_output_count) \ | 429 #define CACHED(Name, properties, value_input_count, value_output_count) \ |
430 struct Name##Operator final : public Operator { \ | 430 struct Name##Operator final : public Operator { \ |
431 Name##Operator() \ | 431 Name##Operator() \ |
432 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ | 432 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ |
433 value_input_count, Operator::ZeroIfPure(properties), \ | 433 value_input_count, Operator::ZeroIfPure(properties), \ |
434 Operator::ZeroIfEliminatable(properties), \ | 434 Operator::ZeroIfEliminatable(properties), \ |
435 value_output_count, Operator::ZeroIfPure(properties), \ | 435 value_output_count, Operator::ZeroIfPure(properties), \ |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- | 915 return new (zone()) Operator1<Handle<ScopeInfo>>( // -- |
916 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode | 916 IrOpcode::kJSCreateScriptContext, Operator::kNoProperties, // opcode |
917 "JSCreateScriptContext", // name | 917 "JSCreateScriptContext", // name |
918 1, 1, 1, 1, 1, 2, // counts | 918 1, 1, 1, 1, 1, 2, // counts |
919 scpope_info); // parameter | 919 scpope_info); // parameter |
920 } | 920 } |
921 | 921 |
922 } // namespace compiler | 922 } // namespace compiler |
923 } // namespace internal | 923 } // namespace internal |
924 } // namespace v8 | 924 } // namespace v8 |
OLD | NEW |