| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef V8_COMPILER_JS_OPERATOR_H_ | 5 #ifndef V8_COMPILER_JS_OPERATOR_H_ |
| 6 #define V8_COMPILER_JS_OPERATOR_H_ | 6 #define V8_COMPILER_JS_OPERATOR_H_ |
| 7 | 7 |
| 8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/runtime/runtime.h" | 10 #include "src/runtime/runtime.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 std::ostream& operator<<(std::ostream&, CreateArrayParameters const&); | 429 std::ostream& operator<<(std::ostream&, CreateArrayParameters const&); |
| 430 | 430 |
| 431 const CreateArrayParameters& CreateArrayParametersOf(const Operator* op); | 431 const CreateArrayParameters& CreateArrayParametersOf(const Operator* op); |
| 432 | 432 |
| 433 | 433 |
| 434 // Defines shared information for the closure that should be created. This is | 434 // Defines shared information for the closure that should be created. This is |
| 435 // used as a parameter by JSCreateClosure operators. | 435 // used as a parameter by JSCreateClosure operators. |
| 436 class CreateClosureParameters final { | 436 class CreateClosureParameters final { |
| 437 public: | 437 public: |
| 438 CreateClosureParameters(Handle<SharedFunctionInfo> shared_info, | 438 CreateClosureParameters(Handle<SharedFunctionInfo> shared_info, |
| 439 VectorSlotPair const& feedback, |
| 439 PretenureFlag pretenure) | 440 PretenureFlag pretenure) |
| 440 : shared_info_(shared_info), pretenure_(pretenure) {} | 441 : shared_info_(shared_info), feedback_(feedback), pretenure_(pretenure) {} |
| 441 | 442 |
| 442 Handle<SharedFunctionInfo> shared_info() const { return shared_info_; } | 443 Handle<SharedFunctionInfo> shared_info() const { return shared_info_; } |
| 444 VectorSlotPair const& feedback() const { return feedback_; } |
| 443 PretenureFlag pretenure() const { return pretenure_; } | 445 PretenureFlag pretenure() const { return pretenure_; } |
| 444 | 446 |
| 445 private: | 447 private: |
| 446 const Handle<SharedFunctionInfo> shared_info_; | 448 const Handle<SharedFunctionInfo> shared_info_; |
| 449 VectorSlotPair const feedback_; |
| 447 const PretenureFlag pretenure_; | 450 const PretenureFlag pretenure_; |
| 448 }; | 451 }; |
| 449 | 452 |
| 450 bool operator==(CreateClosureParameters const&, CreateClosureParameters const&); | 453 bool operator==(CreateClosureParameters const&, CreateClosureParameters const&); |
| 451 bool operator!=(CreateClosureParameters const&, CreateClosureParameters const&); | 454 bool operator!=(CreateClosureParameters const&, CreateClosureParameters const&); |
| 452 | 455 |
| 453 size_t hash_value(CreateClosureParameters const&); | 456 size_t hash_value(CreateClosureParameters const&); |
| 454 | 457 |
| 455 std::ostream& operator<<(std::ostream&, CreateClosureParameters const&); | 458 std::ostream& operator<<(std::ostream&, CreateClosureParameters const&); |
| 456 | 459 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 const Operator* ToLength(); | 527 const Operator* ToLength(); |
| 525 const Operator* ToName(); | 528 const Operator* ToName(); |
| 526 const Operator* ToNumber(); | 529 const Operator* ToNumber(); |
| 527 const Operator* ToObject(); | 530 const Operator* ToObject(); |
| 528 const Operator* ToString(); | 531 const Operator* ToString(); |
| 529 | 532 |
| 530 const Operator* Create(); | 533 const Operator* Create(); |
| 531 const Operator* CreateArguments(CreateArgumentsType type); | 534 const Operator* CreateArguments(CreateArgumentsType type); |
| 532 const Operator* CreateArray(size_t arity, Handle<AllocationSite> site); | 535 const Operator* CreateArray(size_t arity, Handle<AllocationSite> site); |
| 533 const Operator* CreateClosure(Handle<SharedFunctionInfo> shared_info, | 536 const Operator* CreateClosure(Handle<SharedFunctionInfo> shared_info, |
| 537 VectorSlotPair const& feedback, |
| 534 PretenureFlag pretenure); | 538 PretenureFlag pretenure); |
| 535 const Operator* CreateIterResultObject(); | 539 const Operator* CreateIterResultObject(); |
| 536 const Operator* CreateKeyValueArray(); | 540 const Operator* CreateKeyValueArray(); |
| 537 const Operator* CreateLiteralArray(Handle<ConstantElementsPair> constant, | 541 const Operator* CreateLiteralArray(Handle<ConstantElementsPair> constant, |
| 538 int literal_flags, int literal_index, | 542 int literal_flags, int literal_index, |
| 539 int number_of_elements); | 543 int number_of_elements); |
| 540 const Operator* CreateLiteralObject(Handle<FixedArray> constant_properties, | 544 const Operator* CreateLiteralObject(Handle<FixedArray> constant_properties, |
| 541 int literal_flags, int literal_index, | 545 int literal_flags, int literal_index, |
| 542 int number_of_properties); | 546 int number_of_properties); |
| 543 const Operator* CreateLiteralRegExp(Handle<String> constant_pattern, | 547 const Operator* CreateLiteralRegExp(Handle<String> constant_pattern, |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 Zone* const zone_; | 624 Zone* const zone_; |
| 621 | 625 |
| 622 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 626 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
| 623 }; | 627 }; |
| 624 | 628 |
| 625 } // namespace compiler | 629 } // namespace compiler |
| 626 } // namespace internal | 630 } // namespace internal |
| 627 } // namespace v8 | 631 } // namespace v8 |
| 628 | 632 |
| 629 #endif // V8_COMPILER_JS_OPERATOR_H_ | 633 #endif // V8_COMPILER_JS_OPERATOR_H_ |
| OLD | NEW |