| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 class CompilationInfo { | 58 class CompilationInfo { |
| 59 public: | 59 public: |
| 60 CompilationInfo(Handle<JSFunction> closure, Zone* zone); | 60 CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
| 61 virtual ~CompilationInfo(); | 61 virtual ~CompilationInfo(); |
| 62 | 62 |
| 63 Isolate* isolate() { | 63 Isolate* isolate() { |
| 64 ASSERT(Isolate::Current() == isolate_); | 64 ASSERT(Isolate::Current() == isolate_); |
| 65 return isolate_; | 65 return isolate_; |
| 66 } | 66 } |
| 67 Zone* zone() { return zone_; } | 67 Zone* zone() { return zone_; } |
| 68 bool is_osr() const { return !osr_ast_id_.IsNone(); } |
| 68 bool is_lazy() const { return IsLazy::decode(flags_); } | 69 bool is_lazy() const { return IsLazy::decode(flags_); } |
| 69 bool is_eval() const { return IsEval::decode(flags_); } | 70 bool is_eval() const { return IsEval::decode(flags_); } |
| 70 bool is_global() const { return IsGlobal::decode(flags_); } | 71 bool is_global() const { return IsGlobal::decode(flags_); } |
| 71 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } | 72 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; } |
| 72 bool is_extended_mode() const { return language_mode() == EXTENDED_MODE; } | 73 bool is_extended_mode() const { return language_mode() == EXTENDED_MODE; } |
| 73 LanguageMode language_mode() const { | 74 LanguageMode language_mode() const { |
| 74 return LanguageModeField::decode(flags_); | 75 return LanguageModeField::decode(flags_); |
| 75 } | 76 } |
| 76 bool is_in_loop() const { return IsInLoop::decode(flags_); } | 77 bool is_in_loop() const { return IsInLoop::decode(flags_); } |
| 77 FunctionLiteral* function() const { return function_; } | 78 FunctionLiteral* function() const { return function_; } |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 unsigned info_zone_start_allocation_size_; | 637 unsigned info_zone_start_allocation_size_; |
| 637 int64_t start_ticks_; | 638 int64_t start_ticks_; |
| 638 | 639 |
| 639 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 640 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 640 }; | 641 }; |
| 641 | 642 |
| 642 | 643 |
| 643 } } // namespace v8::internal | 644 } } // namespace v8::internal |
| 644 | 645 |
| 645 #endif // V8_COMPILER_H_ | 646 #endif // V8_COMPILER_H_ |
| OLD | NEW |