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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 | 624 |
625 // Compile a String source within a context. | 625 // Compile a String source within a context. |
626 static Handle<SharedFunctionInfo> CompileScript(Handle<String> source, | 626 static Handle<SharedFunctionInfo> CompileScript(Handle<String> source, |
627 Handle<Object> script_name, | 627 Handle<Object> script_name, |
628 int line_offset, | 628 int line_offset, |
629 int column_offset, | 629 int column_offset, |
630 bool is_shared_cross_origin, | 630 bool is_shared_cross_origin, |
631 Handle<Context> context, | 631 Handle<Context> context, |
632 v8::Extension* extension, | 632 v8::Extension* extension, |
633 ScriptDataImpl* pre_data, | 633 ScriptDataImpl* pre_data, |
634 Handle<Object> script_data, | |
635 NativesFlag is_natives_code); | 634 NativesFlag is_natives_code); |
636 | 635 |
637 // Create a shared function info object (the code may be lazily compiled). | 636 // Create a shared function info object (the code may be lazily compiled). |
638 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 637 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
639 Handle<Script> script); | 638 Handle<Script> script); |
640 | 639 |
641 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; | 640 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; |
642 | 641 |
643 // Generate and return optimized code or start a concurrent optimization job. | 642 // Generate and return optimized code or start a concurrent optimization job. |
644 // In the latter case, return the InOptimizationQueue builtin. On failure, | 643 // In the latter case, return the InOptimizationQueue builtin. On failure, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 unsigned info_zone_start_allocation_size_; | 678 unsigned info_zone_start_allocation_size_; |
680 ElapsedTimer timer_; | 679 ElapsedTimer timer_; |
681 | 680 |
682 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 681 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
683 }; | 682 }; |
684 | 683 |
685 | 684 |
686 } } // namespace v8::internal | 685 } } // namespace v8::internal |
687 | 686 |
688 #endif // V8_COMPILER_H_ | 687 #endif // V8_COMPILER_H_ |
OLD | NEW |