| 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { | 472 Handle<SharedFunctionInfo> shared_info, PretenureFlag pretenure) { |
| 473 CreateClosureParameters parameters(shared_info, pretenure); | 473 CreateClosureParameters parameters(shared_info, pretenure); |
| 474 return new (zone()) Operator1<CreateClosureParameters>( // -- | 474 return new (zone()) Operator1<CreateClosureParameters>( // -- |
| 475 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode | 475 IrOpcode::kJSCreateClosure, Operator::kNoThrow, // opcode |
| 476 "JSCreateClosure", // name | 476 "JSCreateClosure", // name |
| 477 1, 1, 1, 1, 1, 0, // counts | 477 1, 1, 1, 1, 1, 0, // counts |
| 478 parameters); // parameter | 478 parameters); // parameter |
| 479 } | 479 } |
| 480 | 480 |
| 481 | 481 |
| 482 const Operator* JSOperatorBuilder::CreateLiteralArray(int literal_flags) { |
| 483 return new (zone()) Operator1<int>( // -- |
| 484 IrOpcode::kJSCreateLiteralArray, Operator::kNoProperties, // opcode |
| 485 "JSCreateLiteralArray", // name |
| 486 3, 1, 1, 1, 1, 2, // counts |
| 487 literal_flags); // parameter |
| 488 } |
| 489 |
| 490 |
| 491 const Operator* JSOperatorBuilder::CreateLiteralObject(int literal_flags) { |
| 492 return new (zone()) Operator1<int>( // -- |
| 493 IrOpcode::kJSCreateLiteralObject, Operator::kNoProperties, // opcode |
| 494 "JSCreateLiteralObject", // name |
| 495 3, 1, 1, 1, 1, 2, // counts |
| 496 literal_flags); // parameter |
| 497 } |
| 498 |
| 499 |
| 482 const Operator* JSOperatorBuilder::CreateCatchContext( | 500 const Operator* JSOperatorBuilder::CreateCatchContext( |
| 483 const Unique<String>& name) { | 501 const Unique<String>& name) { |
| 484 return new (zone()) Operator1<Unique<String>>( // -- | 502 return new (zone()) Operator1<Unique<String>>( // -- |
| 485 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode | 503 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode |
| 486 "JSCreateCatchContext", // name | 504 "JSCreateCatchContext", // name |
| 487 2, 1, 1, 1, 1, 2, // counts | 505 2, 1, 1, 1, 1, 2, // counts |
| 488 name); // parameter | 506 name); // parameter |
| 489 } | 507 } |
| 490 | 508 |
| 491 } // namespace compiler | 509 } // namespace compiler |
| 492 } // namespace internal | 510 } // namespace internal |
| 493 } // namespace v8 | 511 } // namespace v8 |
| OLD | NEW |