Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 1 | // Copyright 2011 the V8 project authors. All rights reserved. |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 2 | // Redistribution and use in source and binary forms, with or without |
| 3 | // modification, are permitted provided that the following conditions are |
| 4 | // met: |
| 5 | // |
| 6 | // * Redistributions of source code must retain the above copyright |
| 7 | // notice, this list of conditions and the following disclaimer. |
| 8 | // * Redistributions in binary form must reproduce the above |
| 9 | // copyright notice, this list of conditions and the following |
| 10 | // disclaimer in the documentation and/or other materials provided |
| 11 | // with the distribution. |
| 12 | // * Neither the name of Google Inc. nor the names of its |
| 13 | // contributors may be used to endorse or promote products derived |
| 14 | // from this software without specific prior written permission. |
| 15 | // |
| 16 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | #ifndef V8_COMPILER_H_ |
| 29 | #define V8_COMPILER_H_ |
| 30 | |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 31 | #include "allocation.h" |
Andrei Popescu | 402d937 | 2010-02-26 13:31:12 +0000 | [diff] [blame] | 32 | #include "ast.h" |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 33 | #include "zone.h" |
| 34 | |
| 35 | namespace v8 { |
| 36 | namespace internal { |
| 37 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 38 | class ScriptDataImpl; |
| 39 | |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 40 | // CompilationInfo encapsulates some information known at compile time. It |
| 41 | // is constructed based on the resources available at compile-time. |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 42 | class CompilationInfo BASE_EMBEDDED { |
| 43 | public: |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 44 | explicit CompilationInfo(Handle<Script> script); |
| 45 | explicit CompilationInfo(Handle<SharedFunctionInfo> shared_info); |
| 46 | explicit CompilationInfo(Handle<JSFunction> closure); |
| 47 | |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 48 | Isolate* isolate() { |
| 49 | ASSERT(Isolate::Current() == isolate_); |
| 50 | return isolate_; |
| 51 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 52 | bool is_lazy() const { return (flags_ & IsLazy::mask()) != 0; } |
| 53 | bool is_eval() const { return (flags_ & IsEval::mask()) != 0; } |
| 54 | bool is_global() const { return (flags_ & IsGlobal::mask()) != 0; } |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 55 | bool is_strict_mode() const { return (flags_ & IsStrictMode::mask()) != 0; } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 56 | bool is_in_loop() const { return (flags_ & IsInLoop::mask()) != 0; } |
| 57 | FunctionLiteral* function() const { return function_; } |
| 58 | Scope* scope() const { return scope_; } |
| 59 | Handle<Code> code() const { return code_; } |
| 60 | Handle<JSFunction> closure() const { return closure_; } |
| 61 | Handle<SharedFunctionInfo> shared_info() const { return shared_info_; } |
| 62 | Handle<Script> script() const { return script_; } |
| 63 | v8::Extension* extension() const { return extension_; } |
| 64 | ScriptDataImpl* pre_parse_data() const { return pre_parse_data_; } |
| 65 | Handle<Context> calling_context() const { return calling_context_; } |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 66 | int osr_ast_id() const { return osr_ast_id_; } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 67 | |
| 68 | void MarkAsEval() { |
| 69 | ASSERT(!is_lazy()); |
| 70 | flags_ |= IsEval::encode(true); |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 71 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 72 | void MarkAsGlobal() { |
| 73 | ASSERT(!is_lazy()); |
| 74 | flags_ |= IsGlobal::encode(true); |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 75 | } |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 76 | void MarkAsStrictMode() { |
| 77 | flags_ |= IsStrictMode::encode(true); |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 78 | } |
| 79 | StrictModeFlag StrictMode() { |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 80 | return is_strict_mode() ? kStrictMode : kNonStrictMode; |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 81 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 82 | void MarkAsInLoop() { |
| 83 | ASSERT(is_lazy()); |
| 84 | flags_ |= IsInLoop::encode(true); |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 85 | } |
Ben Murdoch | 203a29f | 2011-10-20 14:36:23 +0100 | [diff] [blame] | 86 | void MarkAsNative() { |
| 87 | flags_ |= IsNative::encode(true); |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 88 | } |
Ben Murdoch | 203a29f | 2011-10-20 14:36:23 +0100 | [diff] [blame] | 89 | bool is_native() const { |
| 90 | return IsNative::decode(flags_); |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 91 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 92 | void SetFunction(FunctionLiteral* literal) { |
| 93 | ASSERT(function_ == NULL); |
| 94 | function_ = literal; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 95 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 96 | void SetScope(Scope* scope) { |
| 97 | ASSERT(scope_ == NULL); |
| 98 | scope_ = scope; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 99 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 100 | void SetCode(Handle<Code> code) { code_ = code; } |
| 101 | void SetExtension(v8::Extension* extension) { |
| 102 | ASSERT(!is_lazy()); |
| 103 | extension_ = extension; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 104 | } |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 105 | void SetPreParseData(ScriptDataImpl* pre_parse_data) { |
| 106 | ASSERT(!is_lazy()); |
| 107 | pre_parse_data_ = pre_parse_data; |
| 108 | } |
| 109 | void SetCallingContext(Handle<Context> context) { |
| 110 | ASSERT(is_eval()); |
| 111 | calling_context_ = context; |
| 112 | } |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 113 | void SetOsrAstId(int osr_ast_id) { |
| 114 | ASSERT(IsOptimizing()); |
| 115 | osr_ast_id_ = osr_ast_id; |
| 116 | } |
| 117 | |
| 118 | bool has_global_object() const { |
| 119 | return !closure().is_null() && (closure()->context()->global() != NULL); |
| 120 | } |
| 121 | |
| 122 | GlobalObject* global_object() const { |
| 123 | return has_global_object() ? closure()->context()->global() : NULL; |
| 124 | } |
| 125 | |
| 126 | // Accessors for the different compilation modes. |
| 127 | bool IsOptimizing() const { return mode_ == OPTIMIZE; } |
| 128 | bool IsOptimizable() const { return mode_ == BASE; } |
| 129 | void SetOptimizing(int osr_ast_id) { |
| 130 | SetMode(OPTIMIZE); |
| 131 | osr_ast_id_ = osr_ast_id; |
| 132 | } |
Ben Murdoch | b8e0da2 | 2011-05-16 14:20:40 +0100 | [diff] [blame] | 133 | void DisableOptimization(); |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 134 | |
| 135 | // Deoptimization support. |
| 136 | bool HasDeoptimizationSupport() const { return supports_deoptimization_; } |
| 137 | void EnableDeoptimizationSupport() { |
| 138 | ASSERT(IsOptimizable()); |
| 139 | supports_deoptimization_ = true; |
| 140 | } |
| 141 | |
| 142 | // Determine whether or not we can adaptively optimize. |
| 143 | bool AllowOptimize() { |
Ben Murdoch | b8e0da2 | 2011-05-16 14:20:40 +0100 | [diff] [blame] | 144 | return V8::UseCrankshaft() && !closure_.is_null(); |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 145 | } |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 146 | |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 147 | // Disable all optimization attempts of this info for the rest of the |
| 148 | // current compilation pipeline. |
| 149 | void AbortOptimization(); |
| 150 | |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 151 | private: |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 152 | Isolate* isolate_; |
| 153 | |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 154 | // Compilation mode. |
| 155 | // BASE is generated by the full codegen, optionally prepared for bailouts. |
| 156 | // OPTIMIZE is optimized code generated by the Hydrogen-based backend. |
| 157 | // NONOPT is generated by the full codegen or the classic backend |
| 158 | // and is not prepared for recompilation/bailouts. These functions |
| 159 | // are never recompiled. |
| 160 | enum Mode { |
| 161 | BASE, |
| 162 | OPTIMIZE, |
| 163 | NONOPT |
| 164 | }; |
| 165 | |
| 166 | CompilationInfo() : function_(NULL) {} |
| 167 | |
| 168 | void Initialize(Mode mode) { |
| 169 | mode_ = V8::UseCrankshaft() ? mode : NONOPT; |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame^] | 170 | ASSERT(!script_.is_null()); |
Ben Murdoch | 203a29f | 2011-10-20 14:36:23 +0100 | [diff] [blame] | 171 | if (script_->type()->value() == Script::TYPE_NATIVE) { |
| 172 | MarkAsNative(); |
| 173 | } |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 174 | if (!shared_info_.is_null() && shared_info_->strict_mode()) { |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 175 | MarkAsStrictMode(); |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 176 | } |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 177 | } |
| 178 | |
| 179 | void SetMode(Mode mode) { |
| 180 | ASSERT(V8::UseCrankshaft()); |
| 181 | mode_ = mode; |
| 182 | } |
| 183 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 184 | // Flags using template class BitField<type, start, length>. All are |
| 185 | // false by default. |
| 186 | // |
| 187 | // Compilation is either eager or lazy. |
| 188 | class IsLazy: public BitField<bool, 0, 1> {}; |
| 189 | // Flags that can be set for eager compilation. |
| 190 | class IsEval: public BitField<bool, 1, 1> {}; |
| 191 | class IsGlobal: public BitField<bool, 2, 1> {}; |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 192 | // Flags that can be set for lazy compilation. |
Teng-Hui Zhu | 3e5fa29 | 2010-11-09 16:16:48 -0800 | [diff] [blame] | 193 | class IsInLoop: public BitField<bool, 3, 1> {}; |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 194 | // Strict mode - used in eager compilation. |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 195 | class IsStrictMode: public BitField<bool, 4, 1> {}; |
Ben Murdoch | 203a29f | 2011-10-20 14:36:23 +0100 | [diff] [blame] | 196 | // Is this a function from our natives. |
| 197 | class IsNative: public BitField<bool, 6, 1> {}; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 198 | |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame^] | 199 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 200 | unsigned flags_; |
| 201 | |
| 202 | // Fields filled in by the compilation pipeline. |
| 203 | // AST filled in by the parser. |
| 204 | FunctionLiteral* function_; |
Teng-Hui Zhu | 3e5fa29 | 2010-11-09 16:16:48 -0800 | [diff] [blame] | 205 | // The scope of the function literal as a convenience. Set to indicate |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 206 | // that scopes have been analyzed. |
| 207 | Scope* scope_; |
| 208 | // The compiled code. |
| 209 | Handle<Code> code_; |
| 210 | |
| 211 | // Possible initial inputs to the compilation process. |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 212 | Handle<JSFunction> closure_; |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 213 | Handle<SharedFunctionInfo> shared_info_; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 214 | Handle<Script> script_; |
| 215 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 216 | // Fields possibly needed for eager compilation, NULL by default. |
| 217 | v8::Extension* extension_; |
| 218 | ScriptDataImpl* pre_parse_data_; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 219 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 220 | // The context of the caller is needed for eval code, and will be a null |
| 221 | // handle otherwise. |
| 222 | Handle<Context> calling_context_; |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 223 | |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 224 | // Compilation mode flag and whether deoptimization is allowed. |
| 225 | Mode mode_; |
| 226 | bool supports_deoptimization_; |
| 227 | int osr_ast_id_; |
| 228 | |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 229 | DISALLOW_COPY_AND_ASSIGN(CompilationInfo); |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 230 | }; |
| 231 | |
| 232 | |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 233 | // The V8 compiler |
| 234 | // |
| 235 | // General strategy: Source code is translated into an anonymous function w/o |
| 236 | // parameters which then can be executed. If the source code contains other |
| 237 | // functions, they will be compiled and allocated as part of the compilation |
| 238 | // of the source code. |
| 239 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 240 | // Please note this interface returns shared function infos. This means you |
| 241 | // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a |
| 242 | // real function with a context. |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 243 | |
| 244 | class Compiler : public AllStatic { |
| 245 | public: |
Ben Murdoch | b8e0da2 | 2011-05-16 14:20:40 +0100 | [diff] [blame] | 246 | // Default maximum number of function optimization attempts before we |
| 247 | // give up. |
| 248 | static const int kDefaultMaxOptCount = 10; |
| 249 | |
Ben Murdoch | 8b112d2 | 2011-06-08 16:22:53 +0100 | [diff] [blame] | 250 | static const int kMaxInliningLevels = 3; |
| 251 | |
Ben Murdoch | b8e0da2 | 2011-05-16 14:20:40 +0100 | [diff] [blame] | 252 | // All routines return a SharedFunctionInfo. |
| 253 | // If an error occurs an exception is raised and the return handle |
| 254 | // contains NULL. |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 255 | |
| 256 | // Compile a String source within a context. |
Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 257 | static Handle<SharedFunctionInfo> Compile(Handle<String> source, |
| 258 | Handle<Object> script_name, |
| 259 | int line_offset, |
| 260 | int column_offset, |
| 261 | v8::Extension* extension, |
| 262 | ScriptDataImpl* pre_data, |
| 263 | Handle<Object> script_data, |
| 264 | NativesFlag is_natives_code); |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 265 | |
| 266 | // Compile a String source within a context for Eval. |
Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 267 | static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, |
| 268 | Handle<Context> context, |
Steve Block | 1e0659c | 2011-05-24 12:43:12 +0100 | [diff] [blame] | 269 | bool is_global, |
| 270 | StrictModeFlag strict_mode); |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 271 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 272 | // Compile from function info (used for lazy compilation). Returns true on |
| 273 | // success and false if the compilation resulted in a stack overflow. |
Leon Clarke | 4515c47 | 2010-02-03 11:58:03 +0000 | [diff] [blame] | 274 | static bool CompileLazy(CompilationInfo* info); |
Steve Block | d0582a6 | 2009-12-15 09:54:21 +0000 | [diff] [blame] | 275 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 276 | // Compile a shared function info object (the function is possibly lazily |
| 277 | // compiled). |
Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 278 | static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 279 | Handle<Script> script); |
Steve Block | d0582a6 | 2009-12-15 09:54:21 +0000 | [diff] [blame] | 280 | |
| 281 | // Set the function info for a newly compiled function. |
Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 282 | static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
Steve Block | d0582a6 | 2009-12-15 09:54:21 +0000 | [diff] [blame] | 283 | FunctionLiteral* lit, |
| 284 | bool is_toplevel, |
| 285 | Handle<Script> script); |
Andrei Popescu | 3100271 | 2010-02-23 13:46:05 +0000 | [diff] [blame] | 286 | |
Ben Murdoch | f87a203 | 2010-10-22 12:50:53 +0100 | [diff] [blame] | 287 | #ifdef ENABLE_DEBUGGER_SUPPORT |
| 288 | static bool MakeCodeForLiveEdit(CompilationInfo* info); |
| 289 | #endif |
| 290 | |
Steve Block | 6ded16b | 2010-05-10 14:33:55 +0100 | [diff] [blame] | 291 | static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
Ben Murdoch | e0cee9b | 2011-05-25 10:26:03 +0100 | [diff] [blame] | 292 | CompilationInfo* info, |
| 293 | Handle<SharedFunctionInfo> shared); |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 294 | }; |
| 295 | |
| 296 | |
Steve Block | a7e24c1 | 2009-10-30 11:49:00 +0000 | [diff] [blame] | 297 | } } // namespace v8::internal |
| 298 | |
| 299 | #endif // V8_COMPILER_H_ |