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

Unified Diff: src/compiler.cc

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index a52f3c2ebe5a52f8c4a5732238deab88be9faead..fdd30ffd2663a90213845311959f449575a732f1 100755
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -58,7 +58,7 @@ CompilationInfo::CompilationInfo(Handle<Script> script)
extension_(NULL),
pre_parse_data_(NULL),
supports_deoptimization_(false),
- osr_ast_id_(AstNode::kNoNumber) {
+ osr_ast_id_(kNoAstId) {
Initialize(NONOPT);
}
@@ -72,7 +72,7 @@ CompilationInfo::CompilationInfo(Handle<SharedFunctionInfo> shared_info)
extension_(NULL),
pre_parse_data_(NULL),
supports_deoptimization_(false),
- osr_ast_id_(AstNode::kNoNumber) {
+ osr_ast_id_(kNoAstId) {
Initialize(BASE);
}
@@ -87,7 +87,7 @@ CompilationInfo::CompilationInfo(Handle<JSFunction> closure)
extension_(NULL),
pre_parse_data_(NULL),
supports_deoptimization_(false),
- osr_ast_id_(AstNode::kNoNumber) {
+ osr_ast_id_(kNoAstId) {
Initialize(BASE);
}
@@ -608,7 +608,7 @@ bool Compiler::CompileLazy(CompilationInfo* info) {
// active as it makes no sense to compile optimized code then.
if (FLAG_always_opt && !Debug::has_break_points()) {
CompilationInfo optimized(function);
- optimized.SetOptimizing(AstNode::kNoNumber);
+ optimized.SetOptimizing(kNoAstId);
return CompileLazy(&optimized);
} else if (CompilationCache::ShouldOptimizeEagerly(function)) {
RuntimeProfiler::OptimizeSoon(*function);

Powered by Google App Engine
This is Rietveld 408576698