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