| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 void MarkAsGlobal() { | 97 void MarkAsGlobal() { |
| 98 ASSERT(!is_lazy()); | 98 ASSERT(!is_lazy()); |
| 99 flags_ |= IsGlobal::encode(true); | 99 flags_ |= IsGlobal::encode(true); |
| 100 } | 100 } |
| 101 void set_parameter_count(int parameter_count) { | 101 void set_parameter_count(int parameter_count) { |
| 102 ASSERT(IsStub()); | 102 ASSERT(IsStub()); |
| 103 parameter_count_ = parameter_count; | 103 parameter_count_ = parameter_count; |
| 104 } | 104 } |
| 105 | 105 |
| 106 void set_feedback_slots(int feedback_slots) { |
| 107 ASSERT(!IsStub()); |
| 108 ASSERT(feedback_slots_ == -1); // Slots shouldn't yet be initialized. |
| 109 feedback_slots_ = feedback_slots; |
| 110 } |
| 111 int feedback_slots() const { |
| 112 ASSERT(feedback_slots_ >= 0); |
| 113 return feedback_slots_; |
| 114 } |
| 115 |
| 106 void set_this_has_uses(bool has_no_uses) { | 116 void set_this_has_uses(bool has_no_uses) { |
| 107 this_has_uses_ = has_no_uses; | 117 this_has_uses_ = has_no_uses; |
| 108 } | 118 } |
| 109 bool this_has_uses() { | 119 bool this_has_uses() { |
| 110 return this_has_uses_; | 120 return this_has_uses_; |
| 111 } | 121 } |
| 112 void SetLanguageMode(LanguageMode language_mode) { | 122 void SetLanguageMode(LanguageMode language_mode) { |
| 113 ASSERT(this->language_mode() == CLASSIC_MODE || | 123 ASSERT(this->language_mode() == CLASSIC_MODE || |
| 114 this->language_mode() == language_mode || | 124 this->language_mode() == language_mode || |
| 115 language_mode == EXTENDED_MODE); | 125 language_mode == EXTENDED_MODE); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 451 |
| 442 List<OffsetRange>* no_frame_ranges_; | 452 List<OffsetRange>* no_frame_ranges_; |
| 443 | 453 |
| 444 // A copy of shared_info()->opt_count() to avoid handle deref | 454 // A copy of shared_info()->opt_count() to avoid handle deref |
| 445 // during graph optimization. | 455 // during graph optimization. |
| 446 int opt_count_; | 456 int opt_count_; |
| 447 | 457 |
| 448 // Number of parameters used for compilation of stubs that require arguments. | 458 // Number of parameters used for compilation of stubs that require arguments. |
| 449 int parameter_count_; | 459 int parameter_count_; |
| 450 | 460 |
| 461 // Number of feedback slots to allocate for a normal function. |
| 462 int feedback_slots_; |
| 463 |
| 451 bool this_has_uses_; | 464 bool this_has_uses_; |
| 452 | 465 |
| 453 Handle<Foreign> object_wrapper_; | 466 Handle<Foreign> object_wrapper_; |
| 454 | 467 |
| 455 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); | 468 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
| 456 }; | 469 }; |
| 457 | 470 |
| 458 | 471 |
| 459 // Exactly like a CompilationInfo, except also creates and enters a | 472 // Exactly like a CompilationInfo, except also creates and enters a |
| 460 // Zone on construction and deallocates it on exit. | 473 // Zone on construction and deallocates it on exit. |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 unsigned info_zone_start_allocation_size_; | 689 unsigned info_zone_start_allocation_size_; |
| 677 ElapsedTimer timer_; | 690 ElapsedTimer timer_; |
| 678 | 691 |
| 679 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 692 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 680 }; | 693 }; |
| 681 | 694 |
| 682 | 695 |
| 683 } } // namespace v8::internal | 696 } } // namespace v8::internal |
| 684 | 697 |
| 685 #endif // V8_COMPILER_H_ | 698 #endif // V8_COMPILER_H_ |
| OLD | NEW |