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, |
634 NativesFlag is_natives_code); | 635 NativesFlag is_natives_code); |
635 | 636 |
636 // Create a shared function info object (the code may be lazily compiled). | 637 // Create a shared function info object (the code may be lazily compiled). |
637 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, | 638 static Handle<SharedFunctionInfo> BuildFunctionInfo(FunctionLiteral* node, |
638 Handle<Script> script); | 639 Handle<Script> script); |
639 | 640 |
640 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; | 641 enum ConcurrencyMode { NOT_CONCURRENT, CONCURRENT }; |
641 | 642 |
642 // Generate and return optimized code or start a concurrent optimization job. | 643 // Generate and return optimized code or start a concurrent optimization job. |
643 // In the latter case, return the InOptimizationQueue builtin. On failure, | 644 // In the latter case, return the InOptimizationQueue builtin. On failure, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 unsigned info_zone_start_allocation_size_; | 679 unsigned info_zone_start_allocation_size_; |
679 ElapsedTimer timer_; | 680 ElapsedTimer timer_; |
680 | 681 |
681 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 682 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
682 }; | 683 }; |
683 | 684 |
684 | 685 |
685 } } // namespace v8::internal | 686 } } // namespace v8::internal |
686 | 687 |
687 #endif // V8_COMPILER_H_ | 688 #endif // V8_COMPILER_H_ |
OLD | NEW |