| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_COMPILER_H_ | 5 #ifndef V8_COMPILER_H_ |
| 6 #define V8_COMPILER_H_ | 6 #define V8_COMPILER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 kDebug = 1 << 13, | 160 kDebug = 1 << 13, |
| 161 kCompilingForDebugging = 1 << 14, | 161 kCompilingForDebugging = 1 << 14, |
| 162 kParseRestriction = 1 << 15, | 162 kParseRestriction = 1 << 15, |
| 163 kSerializing = 1 << 16, | 163 kSerializing = 1 << 16, |
| 164 kContextSpecializing = 1 << 17, | 164 kContextSpecializing = 1 << 17, |
| 165 kInliningEnabled = 1 << 18, | 165 kInliningEnabled = 1 << 18, |
| 166 kTypingEnabled = 1 << 19, | 166 kTypingEnabled = 1 << 19, |
| 167 kDisableFutureOptimization = 1 << 20, | 167 kDisableFutureOptimization = 1 << 20, |
| 168 kModule = 1 << 21, | 168 kModule = 1 << 21, |
| 169 kToplevel = 1 << 22, | 169 kToplevel = 1 << 22, |
| 170 kSplittingEnabled = 1 << 23 | 170 kSplittingEnabled = 1 << 23, |
| 171 kBuiltinInliningEnabled = 1 << 24 |
| 171 }; | 172 }; |
| 172 | 173 |
| 173 CompilationInfo(Handle<JSFunction> closure, Zone* zone); | 174 CompilationInfo(Handle<JSFunction> closure, Zone* zone); |
| 174 CompilationInfo(Handle<Script> script, Zone* zone); | 175 CompilationInfo(Handle<Script> script, Zone* zone); |
| 175 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); | 176 CompilationInfo(CodeStub* stub, Isolate* isolate, Zone* zone); |
| 176 virtual ~CompilationInfo(); | 177 virtual ~CompilationInfo(); |
| 177 | 178 |
| 178 Isolate* isolate() const { | 179 Isolate* isolate() const { |
| 179 return isolate_; | 180 return isolate_; |
| 180 } | 181 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 bool will_serialize() const { return GetFlag(kSerializing); } | 288 bool will_serialize() const { return GetFlag(kSerializing); } |
| 288 | 289 |
| 289 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } | 290 void MarkAsContextSpecializing() { SetFlag(kContextSpecializing); } |
| 290 | 291 |
| 291 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } | 292 bool is_context_specializing() const { return GetFlag(kContextSpecializing); } |
| 292 | 293 |
| 293 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } | 294 void MarkAsInliningEnabled() { SetFlag(kInliningEnabled); } |
| 294 | 295 |
| 295 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } | 296 bool is_inlining_enabled() const { return GetFlag(kInliningEnabled); } |
| 296 | 297 |
| 298 void MarkAsBuiltinInliningEnabled() { SetFlag(kBuiltinInliningEnabled); } |
| 299 |
| 300 bool is_builtin_inlining_enabled() const { |
| 301 return GetFlag(kBuiltinInliningEnabled); |
| 302 } |
| 303 |
| 297 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } | 304 void MarkAsTypingEnabled() { SetFlag(kTypingEnabled); } |
| 298 | 305 |
| 299 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } | 306 bool is_typing_enabled() const { return GetFlag(kTypingEnabled); } |
| 300 | 307 |
| 301 void MarkAsToplevel() { SetFlag(kToplevel); } | 308 void MarkAsToplevel() { SetFlag(kToplevel); } |
| 302 | 309 |
| 303 bool is_toplevel() const { return GetFlag(kToplevel); } | 310 bool is_toplevel() const { return GetFlag(kToplevel); } |
| 304 | 311 |
| 305 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } | 312 void MarkAsSplittingEnabled() { SetFlag(kSplittingEnabled); } |
| 306 | 313 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 863 Zone zone_; | 870 Zone zone_; |
| 864 size_t info_zone_start_allocation_size_; | 871 size_t info_zone_start_allocation_size_; |
| 865 base::ElapsedTimer timer_; | 872 base::ElapsedTimer timer_; |
| 866 | 873 |
| 867 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 874 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
| 868 }; | 875 }; |
| 869 | 876 |
| 870 } } // namespace v8::internal | 877 } } // namespace v8::internal |
| 871 | 878 |
| 872 #endif // V8_COMPILER_H_ | 879 #endif // V8_COMPILER_H_ |
| OLD | NEW |