| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_COMPILATION_INFO_H_ | 5 #ifndef V8_COMPILATION_INFO_H_ |
| 6 #define V8_COMPILATION_INFO_H_ | 6 #define V8_COMPILATION_INFO_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/compilation-dependencies.h" | 10 #include "src/compilation-dependencies.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 kInliningEnabled = 1 << 9, | 45 kInliningEnabled = 1 << 9, |
| 46 kDisableFutureOptimization = 1 << 10, | 46 kDisableFutureOptimization = 1 << 10, |
| 47 kSplittingEnabled = 1 << 11, | 47 kSplittingEnabled = 1 << 11, |
| 48 kDeoptimizationEnabled = 1 << 12, | 48 kDeoptimizationEnabled = 1 << 12, |
| 49 kSourcePositionsEnabled = 1 << 13, | 49 kSourcePositionsEnabled = 1 << 13, |
| 50 kBailoutOnUninitialized = 1 << 14, | 50 kBailoutOnUninitialized = 1 << 14, |
| 51 kOptimizeFromBytecode = 1 << 15, | 51 kOptimizeFromBytecode = 1 << 15, |
| 52 kLoopPeelingEnabled = 1 << 16, | 52 kLoopPeelingEnabled = 1 << 16, |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); | 55 CompilationInfo(Zone* zone, ParseInfo* parse_info, |
| 56 Handle<JSFunction> closure); |
| 56 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, | 57 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, |
| 57 Code::Flags code_flags); | 58 Code::Flags code_flags); |
| 58 ~CompilationInfo(); | 59 ~CompilationInfo(); |
| 59 | 60 |
| 60 ParseInfo* parse_info() const { return parse_info_; } | 61 ParseInfo* parse_info() const { return parse_info_; } |
| 61 | 62 |
| 62 // ----------------------------------------------------------- | 63 // ----------------------------------------------------------- |
| 63 // TODO(titzer): inline and delete accessors of ParseInfo | 64 // TODO(titzer): inline and delete accessors of ParseInfo |
| 64 // ----------------------------------------------------------- | 65 // ----------------------------------------------------------- |
| 65 Handle<Script> script() const; | 66 Handle<Script> script() const; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 | 386 |
| 386 Vector<const char> debug_name_; | 387 Vector<const char> debug_name_; |
| 387 | 388 |
| 388 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); | 389 DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
| 389 }; | 390 }; |
| 390 | 391 |
| 391 } // namespace internal | 392 } // namespace internal |
| 392 } // namespace v8 | 393 } // namespace v8 |
| 393 | 394 |
| 394 #endif // V8_COMPILATION_INFO_H_ | 395 #endif // V8_COMPILATION_INFO_H_ |
| OLD | NEW |