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

Side by Side Diff: src/compiler.h

Issue 683023002: 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
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
678 static bool EnsureCompiled(Handle<JSFunction> function, 685 static bool EnsureCompiled(Handle<JSFunction> function,
679 ClearExceptionFlag flag); 686 ClearExceptionFlag flag);
680 687
681 static bool EnsureDeoptimizationSupport(CompilationInfo* info);
682
683 static void CompileForLiveEdit(Handle<Script> script); 688 static void CompileForLiveEdit(Handle<Script> script);
684 689
685 // Compile a String source within a context for eval. 690 // Compile a String source within a context for eval.
686 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval( 691 MUST_USE_RESULT static MaybeHandle<JSFunction> GetFunctionFromEval(
687 Handle<String> source, 692 Handle<String> source,
688 Handle<Context> context, 693 Handle<Context> context,
689 StrictMode strict_mode, 694 StrictMode strict_mode,
690 ParseRestriction restriction, 695 ParseRestriction restriction,
691 int scope_position); 696 int scope_position);
692 697
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 Zone zone_; 750 Zone zone_;
746 unsigned info_zone_start_allocation_size_; 751 unsigned info_zone_start_allocation_size_;
747 base::ElapsedTimer timer_; 752 base::ElapsedTimer timer_;
748 753
749 DISALLOW_COPY_AND_ASSIGN(CompilationPhase); 754 DISALLOW_COPY_AND_ASSIGN(CompilationPhase);
750 }; 755 };
751 756
752 } } // namespace v8::internal 757 } } // namespace v8::internal
753 758
754 #endif // V8_COMPILER_H_ 759 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « src/ast-numbering.cc ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698