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

Side by Side Diff: src/compiler.h

Issue 678033002: Revert "Move AST node counting to post-pass" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | « src/ast-numbering.cc ('k') | 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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 public: 668 public:
669 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( 669 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode(
670 Handle<JSFunction> function); 670 Handle<JSFunction> function);
671 MUST_USE_RESULT static MaybeHandle<Code> GetLazyCode( 671 MUST_USE_RESULT static MaybeHandle<Code> GetLazyCode(
672 Handle<JSFunction> function); 672 Handle<JSFunction> function);
673 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode( 673 MUST_USE_RESULT static MaybeHandle<Code> GetUnoptimizedCode(
674 Handle<SharedFunctionInfo> shared); 674 Handle<SharedFunctionInfo> shared);
675 MUST_USE_RESULT static MaybeHandle<Code> GetDebugCode( 675 MUST_USE_RESULT static MaybeHandle<Code> GetDebugCode(
676 Handle<JSFunction> function); 676 Handle<JSFunction> function);
677 677
678 // Parser::Parse, then Compiler::Analyze.
679 static bool ParseAndAnalyze(CompilationInfo* info);
680 // Rewrite, analyze scopes, and renumber.
681 static bool Analyze(CompilationInfo* info);
682 // Adds deoptimization support, requires ParseAndAnalyze.
683 static bool EnsureDeoptimizationSupport(CompilationInfo* info);
684
685 static bool EnsureCompiled(Handle<JSFunction> function, 678 static bool EnsureCompiled(Handle<JSFunction> function,
686 ClearExceptionFlag flag); 679 ClearExceptionFlag flag);
687 680
681 static bool EnsureDeoptimizationSupport(CompilationInfo* info);
682
688 static void CompileForLiveEdit(Handle<Script> script); 683 static void CompileForLiveEdit(Handle<Script> script);
689 684
690 // Compile a String source within a context for eval. 685 // Compile a String source within a context for eval.
691 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( 686 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
692 Handle<String> source, 687 Handle<String> source,
693 Handle<Context> context, 688 Handle<Context> context,
694 StrictMode strict_mode, 689 StrictMode strict_mode,
695 ParseRestriction restriction, 690 ParseRestriction restriction,
696 int scope_position); 691 int scope_position);
697 692
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 Zone zone_; 745 Zone zone_;
751 unsigned info_zone_start_allocation_size_; 746 unsigned info_zone_start_allocation_size_;
752 base::ElapsedTimer timer_; 747 base::ElapsedTimer timer_;
753 748
754 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 749 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
755 }; 750 };
756 751
757 } } // namespace v8::internal 752 } } // namespace v8::internal
758 753
759 #endif // V8_COMPILER_H_ 754 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698