| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 Code::Flags flags() const; | 91 Code::Flags flags() const; |
| 92 | 92 |
| 93 void MarkAsEval() { | 93 void MarkAsEval() { |
| 94 ASSERT(!is_lazy()); | 94 ASSERT(!is_lazy()); |
| 95 flags_ |= IsEval::encode(true); | 95 flags_ |= IsEval::encode(true); |
| 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) { | |
| 102 ASSERT(IsStub()); | |
| 103 parameter_count_ = parameter_count; | |
| 104 } | |
| 105 void SetLanguageMode(LanguageMode language_mode) { | 101 void SetLanguageMode(LanguageMode language_mode) { |
| 106 ASSERT(this->language_mode() == CLASSIC_MODE || | 102 ASSERT(this->language_mode() == CLASSIC_MODE || |
| 107 this->language_mode() == language_mode || | 103 this->language_mode() == language_mode || |
| 108 language_mode == EXTENDED_MODE); | 104 language_mode == EXTENDED_MODE); |
| 109 flags_ = LanguageModeField::update(flags_, language_mode); | 105 flags_ = LanguageModeField::update(flags_, language_mode); |
| 110 } | 106 } |
| 111 void MarkAsInLoop() { | 107 void MarkAsInLoop() { |
| 112 ASSERT(is_lazy()); | 108 ASSERT(is_lazy()); |
| 113 flags_ |= IsInLoop::encode(true); | 109 flags_ |= IsInLoop::encode(true); |
| 114 } | 110 } |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 BailoutReason bailout_reason_; | 435 BailoutReason bailout_reason_; |
| 440 | 436 |
| 441 int prologue_offset_; | 437 int prologue_offset_; |
| 442 | 438 |
| 443 List<OffsetRange>* no_frame_ranges_; | 439 List<OffsetRange>* no_frame_ranges_; |
| 444 | 440 |
| 445 // A copy of shared_info()->opt_count() to avoid handle deref | 441 // A copy of shared_info()->opt_count() to avoid handle deref |
| 446 // during graph optimization. | 442 // during graph optimization. |
| 447 int opt_count_; | 443 int opt_count_; |
| 448 | 444 |
| 449 // Number of parameters used for compilation of stubs that require arguments. | |
| 450 int parameter_count_; | |
| 451 | |
| 452 Handle<Foreign> object_wrapper_; | 445 Handle<Foreign> object_wrapper_; |
| 453 | 446 |
| 454 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); | 447 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
| 455 }; | 448 }; |
| 456 | 449 |
| 457 | 450 |
| 458 // Exactly like a CompilationInfo, except also creates and enters a | 451 // Exactly like a CompilationInfo, except also creates and enters a |
| 459 // Zone on construction and deallocates it on exit. | 452 // Zone on construction and deallocates it on exit. |
| 460 class CompilationInfoWithZone: public CompilationInfo { | 453 class CompilationInfoWithZone: public CompilationInfo { |
| 461 public: | 454 public: |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 unsigned info_zone_start_allocation_size_; | 664 unsigned info_zone_start_allocation_size_; |
| 672 ElapsedTimer timer_; | 665 ElapsedTimer timer_; |
| 673 | 666 |
| 674 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 667 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 675 }; | 668 }; |
| 676 | 669 |
| 677 | 670 |
| 678 } } // namespace v8::internal | 671 } } // namespace v8::internal |
| 679 | 672 |
| 680 #endif // V8_COMPILER_H_ | 673 #endif // V8_COMPILER_H_ |
| OLD | NEW |