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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 Handle<Script> script); | 620 Handle<Script> script); |
621 | 621 |
622 // Set the function info for a newly compiled function. | 622 // Set the function info for a newly compiled function. |
623 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, | 623 static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info, |
624 FunctionLiteral* lit, | 624 FunctionLiteral* lit, |
625 bool is_toplevel, | 625 bool is_toplevel, |
626 Handle<Script> script); | 626 Handle<Script> script); |
627 | 627 |
628 static bool InstallOptimizedCode(OptimizingCompiler* info); | 628 static bool InstallOptimizedCode(OptimizingCompiler* info); |
629 | 629 |
630 static Handle<Code> CompileForOnStackReplacement(Handle<JSFunction> function); | 630 static Handle<Code> CompileForOnStackReplacement(Handle<JSFunction> function, |
| 631 uint32_t pc_offset); |
631 | 632 |
632 static Handle<Code> CompileForConcurrentOSR(Handle<JSFunction> function); | 633 static Handle<Code> CompileForConcurrentOSR(Handle<JSFunction> function, |
| 634 uint32_t pc_offset); |
633 | 635 |
634 #ifdef ENABLE_DEBUGGER_SUPPORT | 636 #ifdef ENABLE_DEBUGGER_SUPPORT |
635 static bool MakeCodeForLiveEdit(CompilationInfo* info); | 637 static bool MakeCodeForLiveEdit(CompilationInfo* info); |
636 #endif | 638 #endif |
637 | 639 |
638 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, | 640 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, |
639 CompilationInfo* info, | 641 CompilationInfo* info, |
640 Handle<SharedFunctionInfo> shared); | 642 Handle<SharedFunctionInfo> shared); |
641 }; | 643 }; |
642 | 644 |
(...skipping 18 matching lines...) Expand all Loading... |
661 unsigned info_zone_start_allocation_size_; | 663 unsigned info_zone_start_allocation_size_; |
662 ElapsedTimer timer_; | 664 ElapsedTimer timer_; |
663 | 665 |
664 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); | 666 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); |
665 }; | 667 }; |
666 | 668 |
667 | 669 |
668 } } // namespace v8::internal | 670 } } // namespace v8::internal |
669 | 671 |
670 #endif // V8_COMPILER_H_ | 672 #endif // V8_COMPILER_H_ |
OLD | NEW |