Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: src/compiler.h

Issue 159783002: Re-optimize faster after making a pretenuring decision. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_H_ 5 #ifndef V8_COMPILER_H_
6 #define V8_COMPILER_H_ 6 #define V8_COMPILER_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 #include "ast.h" 9 #include "ast.h"
10 #include "zone.h" 10 #include "zone.h"
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 ConcurrencyMode mode, 656 ConcurrencyMode mode,
657 BailoutId osr_ast_id = BailoutId::None()); 657 BailoutId osr_ast_id = BailoutId::None());
658 658
659 // Generate and return code from previously queued optimization job. 659 // Generate and return code from previously queued optimization job.
660 // On failure, return the empty handle. 660 // On failure, return the empty handle.
661 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job); 661 static Handle<Code> GetConcurrentlyOptimizedCode(OptimizedCompileJob* job);
662 662
663 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag, 663 static void RecordFunctionCompilation(Logger::LogEventsAndTags tag,
664 CompilationInfo* info, 664 CompilationInfo* info,
665 Handle<SharedFunctionInfo> shared); 665 Handle<SharedFunctionInfo> shared);
666
667 static void Optimize(JSFunction* function, const char* reason);
666 }; 668 };
667 669
668 670
669 class CompilationPhase BASE_EMBEDDED { 671 class CompilationPhase BASE_EMBEDDED {
670 public: 672 public:
671 CompilationPhase(const char* name, CompilationInfo* info); 673 CompilationPhase(const char* name, CompilationInfo* info);
672 ~CompilationPhase(); 674 ~CompilationPhase();
673 675
674 protected: 676 protected:
675 bool ShouldProduceTraceOutput() const; 677 bool ShouldProduceTraceOutput() const;
(...skipping 10 matching lines...) Expand all
686 unsigned info_zone_start_allocation_size_; 688 unsigned info_zone_start_allocation_size_;
687 ElapsedTimer timer_; 689 ElapsedTimer timer_;
688 690
689 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 691 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
690 }; 692 };
691 693
692 694
693 } } // namespace v8::internal 695 } } // namespace v8::internal
694 696
695 #endif // V8_COMPILER_H_ 697 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698