| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 kDeoptimizationEnabled = 1 << 14, | 166 kDeoptimizationEnabled = 1 << 14, |
| 167 kSourcePositionsEnabled = 1 << 15, | 167 kSourcePositionsEnabled = 1 << 15, |
| 168 kBailoutOnUninitialized = 1 << 16, | 168 kBailoutOnUninitialized = 1 << 16, |
| 169 kOptimizeFromBytecode = 1 << 17, | 169 kOptimizeFromBytecode = 1 << 17, |
| 170 kTypeFeedbackEnabled = 1 << 18, | 170 kTypeFeedbackEnabled = 1 << 18, |
| 171 kAccessorInliningEnabled = 1 << 19, | 171 kAccessorInliningEnabled = 1 << 19, |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); | 174 CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure); |
| 175 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, | 175 CompilationInfo(Vector<const char> debug_name, Isolate* isolate, Zone* zone, |
| 176 Code::Flags code_flags = Code::ComputeFlags(Code::STUB)); | 176 Code::Flags code_flags); |
| 177 ~CompilationInfo(); | 177 ~CompilationInfo(); |
| 178 | 178 |
| 179 ParseInfo* parse_info() const { return parse_info_; } | 179 ParseInfo* parse_info() const { return parse_info_; } |
| 180 | 180 |
| 181 // ----------------------------------------------------------- | 181 // ----------------------------------------------------------- |
| 182 // TODO(titzer): inline and delete accessors of ParseInfo | 182 // TODO(titzer): inline and delete accessors of ParseInfo |
| 183 // ----------------------------------------------------------- | 183 // ----------------------------------------------------------- |
| 184 Handle<Script> script() const; | 184 Handle<Script> script() const; |
| 185 FunctionLiteral* literal() const; | 185 FunctionLiteral* literal() const; |
| 186 DeclarationScope* scope() const; | 186 DeclarationScope* scope() const; |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 state_ = State::kFailed; | 621 state_ = State::kFailed; |
| 622 } | 622 } |
| 623 return status; | 623 return status; |
| 624 } | 624 } |
| 625 }; | 625 }; |
| 626 | 626 |
| 627 } // namespace internal | 627 } // namespace internal |
| 628 } // namespace v8 | 628 } // namespace v8 |
| 629 | 629 |
| 630 #endif // V8_COMPILER_H_ | 630 #endif // V8_COMPILER_H_ |
| OLD | NEW |