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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 Handle<Context> context, | 594 Handle<Context> context, |
595 bool is_global, | 595 bool is_global, |
596 LanguageMode language_mode, | 596 LanguageMode language_mode, |
597 ParseRestriction restriction, | 597 ParseRestriction restriction, |
598 int scope_position); | 598 int scope_position); |
599 | 599 |
600 // Compile from function info (used for lazy compilation). Returns true on | 600 // Compile from function info (used for lazy compilation). Returns true on |
601 // success and false if the compilation resulted in a stack overflow. | 601 // success and false if the compilation resulted in a stack overflow. |
602 static bool CompileLazy(CompilationInfo* info); | 602 static bool CompileLazy(CompilationInfo* info); |
603 | 603 |
604 static void RecompileParallel(Handle<JSFunction> function); | 604 static void RecompileConcurrent(Handle<JSFunction> function); |
605 | 605 |
606 // Compile a shared function info object (the function is possibly lazily | 606 // Compile a shared function info object (the function is possibly lazily |
607 // compiled). | 607 // compiled). |
608 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 608 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
609 Handle<Script> script); | 609 Handle<Script> script); |
610 | 610 |
611 // Set the function info for a newly compiled function. | 611 // Set the function info for a newly compiled function. |
612 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, | 612 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
613 FunctionLiteral* lit, | 613 FunctionLiteral* lit, |
614 bool is_toplevel, | 614 bool is_toplevel, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 unsigned info_zone_start_allocation_size_; | 646 unsigned info_zone_start_allocation_size_; |
647 int64_t start_ticks_; | 647 int64_t start_ticks_; |
648 | 648 |
649 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 649 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
650 }; | 650 }; |
651 | 651 |
652 | 652 |
653 } } // namespace v8::internal | 653 } } // namespace v8::internal |
654 | 654 |
655 #endif // V8_COMPILER_H_ | 655 #endif // V8_COMPILER_H_ |
OLD | NEW |