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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 V(Yield, Operator::kNoProperties, 1, 1) \ | 237 V(Yield, Operator::kNoProperties, 1, 1) \ |
238 V(Create, Operator::kEliminatable, 0, 1) \ | 238 V(Create, Operator::kEliminatable, 0, 1) \ |
239 V(HasProperty, Operator::kNoProperties, 2, 1) \ | 239 V(HasProperty, Operator::kNoProperties, 2, 1) \ |
240 V(TypeOf, Operator::kPure, 1, 1) \ | 240 V(TypeOf, Operator::kPure, 1, 1) \ |
241 V(InstanceOf, Operator::kNoProperties, 2, 1) \ | 241 V(InstanceOf, Operator::kNoProperties, 2, 1) \ |
242 V(Debugger, Operator::kNoProperties, 0, 0) \ | 242 V(Debugger, Operator::kNoProperties, 0, 0) \ |
243 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ | 243 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ |
244 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ | 244 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ |
245 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ | 245 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ |
246 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ | 246 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ |
247 V(CreateGlobalContext, Operator::kNoProperties, 2, 1) | 247 V(CreateScriptContext, Operator::kNoProperties, 2, 1) |
248 | 248 |
249 | 249 |
250 struct JSOperatorGlobalCache FINAL { | 250 struct JSOperatorGlobalCache FINAL { |
251 #define CACHED(Name, properties, value_input_count, value_output_count) \ | 251 #define CACHED(Name, properties, value_input_count, value_output_count) \ |
252 struct Name##Operator FINAL : public Operator { \ | 252 struct Name##Operator FINAL : public Operator { \ |
253 Name##Operator() \ | 253 Name##Operator() \ |
254 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ | 254 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ |
255 value_input_count, Operator::ZeroIfPure(properties), \ | 255 value_input_count, Operator::ZeroIfPure(properties), \ |
256 Operator::ZeroIfPure(properties), value_output_count, \ | 256 Operator::ZeroIfPure(properties), value_output_count, \ |
257 Operator::ZeroIfPure(properties), 0) {} \ | 257 Operator::ZeroIfPure(properties), 0) {} \ |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 return new (zone()) Operator1<Unique<String>>( // -- | 389 return new (zone()) Operator1<Unique<String>>( // -- |
390 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 390 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
391 "JSCreateCatchContext", // name | 391 "JSCreateCatchContext", // name |
392 1, 1, 1, 1, 1, 0, // counts | 392 1, 1, 1, 1, 1, 0, // counts |
393 name); // parameter | 393 name); // parameter |
394 } | 394 } |
395 | 395 |
396 } // namespace compiler | 396 } // namespace compiler |
397 } // namespace internal | 397 } // namespace internal |
398 } // namespace v8 | 398 } // namespace v8 |
OLD | NEW |