OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // compiled). | 309 // compiled). |
310 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 310 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
311 Handle<Script> script); | 311 Handle<Script> script); |
312 | 312 |
313 // Set the function info for a newly compiled function. | 313 // Set the function info for a newly compiled function. |
314 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, | 314 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
315 FunctionLiteral* lit, | 315 FunctionLiteral* lit, |
316 bool is_toplevel, | 316 bool is_toplevel, |
317 Handle<Script> script); | 317 Handle<Script> script); |
318 | 318 |
| 319 // Compile the code for the given CompilationInfo. |
| 320 static bool MakeCode(CompilationInfo* info); |
| 321 |
| 322 |
319 #ifdef ENABLE_DEBUGGER_SUPPORT | 323 #ifdef ENABLE_DEBUGGER_SUPPORT |
320 static bool MakeCodeForLiveEdit(CompilationInfo* info); | 324 static bool MakeCodeForLiveEdit(CompilationInfo* info); |
321 #endif | 325 #endif |
322 | 326 |
323 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 327 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
324 CompilationInfo* info, | 328 CompilationInfo* info, |
325 Handle<SharedFunctionInfo> shared); | 329 Handle<SharedFunctionInfo> shared); |
326 }; | 330 }; |
327 | 331 |
328 | 332 |
329 } } // namespace v8::internal | 333 } } // namespace v8::internal |
330 | 334 |
331 #endif // V8_COMPILER_H_ | 335 #endif // V8_COMPILER_H_ |
OLD | NEW |