| 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 V(ToBoolean, Operator::kPure, 1, 1) \ | 232 V(ToBoolean, Operator::kPure, 1, 1) \ |
| 233 V(ToNumber, Operator::kNoProperties, 1, 1) \ | 233 V(ToNumber, Operator::kNoProperties, 1, 1) \ |
| 234 V(ToString, Operator::kNoProperties, 1, 1) \ | 234 V(ToString, Operator::kNoProperties, 1, 1) \ |
| 235 V(ToName, Operator::kNoProperties, 1, 1) \ | 235 V(ToName, Operator::kNoProperties, 1, 1) \ |
| 236 V(ToObject, Operator::kNoProperties, 1, 1) \ | 236 V(ToObject, Operator::kNoProperties, 1, 1) \ |
| 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) \ | |
| 243 V(StackCheck, Operator::kNoProperties, 0, 0) \ | 242 V(StackCheck, Operator::kNoProperties, 0, 0) \ |
| 244 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ | 243 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ |
| 245 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ | 244 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ |
| 246 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ | 245 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ |
| 247 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ | 246 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ |
| 248 V(CreateScriptContext, Operator::kNoProperties, 2, 1) | 247 V(CreateScriptContext, Operator::kNoProperties, 2, 1) |
| 249 | 248 |
| 250 | 249 |
| 251 struct JSOperatorGlobalCache FINAL { | 250 struct JSOperatorGlobalCache FINAL { |
| 252 #define CACHED(Name, properties, value_input_count, value_output_count) \ | 251 #define CACHED(Name, properties, value_input_count, value_output_count) \ |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 return new (zone()) Operator1<Unique<String>>( // -- | 404 return new (zone()) Operator1<Unique<String>>( // -- |
| 406 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 405 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
| 407 "JSCreateCatchContext", // name | 406 "JSCreateCatchContext", // name |
| 408 2, 1, 1, 1, 1, 2, // counts | 407 2, 1, 1, 1, 1, 2, // counts |
| 409 name); // parameter | 408 name); // parameter |
| 410 } | 409 } |
| 411 | 410 |
| 412 } // namespace compiler | 411 } // namespace compiler |
| 413 } // namespace internal | 412 } // namespace internal |
| 414 } // namespace v8 | 413 } // namespace v8 |
| OLD | NEW |