OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
582 // Compile a String source within a context for Eval. | 582 // Compile a String source within a context for Eval. |
583 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, | 583 static Handle<SharedFunctionInfo> CompileEval(Handle<String> source, |
584 Handle<Context> context, | 584 Handle<Context> context, |
585 bool is_global, | 585 bool is_global, |
586 LanguageMode language_mode, | 586 LanguageMode language_mode, |
587 ParseRestriction restriction, | 587 ParseRestriction restriction, |
588 int scope_position); | 588 int scope_position); |
589 | 589 |
590 // Compile from function info (used for lazy compilation). Returns true on | 590 // Compile from function info (used for lazy compilation). Returns true on |
591 // success and false if the compilation resulted in a stack overflow. | 591 // success and false if the compilation resulted in a stack overflow. |
592 static bool CompileLazy(CompilationInfo* info); | 592 // If {install} is set to {true}, installs the code into the function. |
593 static bool CompileLazy(CompilationInfo* info, bool install = true); | |
Michael Starzinger
2013/07/31 14:55:50
The boolean flag is obsolete, see commment in comp
| |
593 | 594 |
594 static void RecompileParallel(Handle<JSFunction> function); | 595 static void RecompileParallel(Handle<JSFunction> function); |
595 | 596 |
596 // Compile a shared function info object (the function is possibly lazily | 597 // Compile a shared function info object (the function is possibly lazily |
597 // compiled). | 598 // compiled). |
598 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 599 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
599 Handle<Script> script); | 600 Handle<Script> script); |
600 | 601 |
601 // Set the function info for a newly compiled function. | 602 // Set the function info for a newly compiled function. |
602 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, | 603 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
636 unsigned info_zone_start_allocation_size_; | 637 unsigned info_zone_start_allocation_size_; |
637 int64_t start_ticks_; | 638 int64_t start_ticks_; |
638 | 639 |
639 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 640 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
640 }; | 641 }; |
641 | 642 |
642 | 643 |
643 } } // namespace v8::internal | 644 } } // namespace v8::internal |
644 | 645 |
645 #endif // V8_COMPILER_H_ | 646 #endif // V8_COMPILER_H_ |
OLD | NEW |