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

Side by Side Diff: src/compiler.cc

Issue 652543006: Revert "Assign bailout and type feedback IDs in a post-pass" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « src/compiler.h ('k') | src/compiler/js-inlining.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/compiler.h" 7 #include "src/compiler.h"
8 8
9 #include "src/ast-numbering.h"
10 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
11 #include "src/codegen.h" 10 #include "src/codegen.h"
12 #include "src/compilation-cache.h" 11 #include "src/compilation-cache.h"
13 #include "src/compiler/pipeline.h" 12 #include "src/compiler/pipeline.h"
14 #include "src/cpu-profiler.h" 13 #include "src/cpu-profiler.h"
15 #include "src/debug.h" 14 #include "src/debug.h"
16 #include "src/deoptimizer.h" 15 #include "src/deoptimizer.h"
17 #include "src/full-codegen.h" 16 #include "src/full-codegen.h"
18 #include "src/gdb-jit.h" 17 #include "src/gdb-jit.h"
19 #include "src/hydrogen.h" 18 #include "src/hydrogen.h"
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, 739 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code,
741 literals, info->osr_ast_id()); 740 literals, info->osr_ast_id());
742 } 741 }
743 } 742 }
744 743
745 744
746 static bool CompileOptimizedPrologue(CompilationInfo* info) { 745 static bool CompileOptimizedPrologue(CompilationInfo* info) {
747 if (!Parser::Parse(info)) return false; 746 if (!Parser::Parse(info)) return false;
748 if (!Rewriter::Rewrite(info)) return false; 747 if (!Rewriter::Rewrite(info)) return false;
749 if (!Scope::Analyze(info)) return false; 748 if (!Scope::Analyze(info)) return false;
750 if (!AstNumbering::Renumber(info->function(), info->zone())) return false;
751 DCHECK(info->scope() != NULL); 749 DCHECK(info->scope() != NULL);
752 return true; 750 return true;
753 } 751 }
754 752
755 753
756 static bool GetOptimizedCodeNow(CompilationInfo* info) { 754 static bool GetOptimizedCodeNow(CompilationInfo* info) {
757 if (!CompileOptimizedPrologue(info)) return false; 755 if (!CompileOptimizedPrologue(info)) return false;
758 756
759 TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate()); 757 TimerEventScope<TimerEventRecompileSynchronous> timer(info->isolate());
760 758
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1457 AllowHandleDereference allow_deref; 1455 AllowHandleDereference allow_deref;
1458 bool tracing_on = info()->IsStub() 1456 bool tracing_on = info()->IsStub()
1459 ? FLAG_trace_hydrogen_stubs 1457 ? FLAG_trace_hydrogen_stubs
1460 : (FLAG_trace_hydrogen && 1458 : (FLAG_trace_hydrogen &&
1461 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); 1459 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter));
1462 return (tracing_on && 1460 return (tracing_on &&
1463 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); 1461 base::OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL);
1464 } 1462 }
1465 1463
1466 } } // namespace v8::internal 1464 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | src/compiler/js-inlining.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698