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