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

Side by Side Diff: src/full-codegen.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/js-inlining.cc ('k') | src/hydrogen.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/ast.h"
8 #include "src/ast-numbering.h"
9 #include "src/code-factory.h" 7 #include "src/code-factory.h"
10 #include "src/codegen.h" 8 #include "src/codegen.h"
11 #include "src/compiler.h" 9 #include "src/compiler.h"
12 #include "src/debug.h" 10 #include "src/debug.h"
13 #include "src/full-codegen.h" 11 #include "src/full-codegen.h"
14 #include "src/liveedit.h" 12 #include "src/liveedit.h"
15 #include "src/macro-assembler.h" 13 #include "src/macro-assembler.h"
16 #include "src/prettyprinter.h" 14 #include "src/prettyprinter.h"
17 #include "src/scopeinfo.h" 15 #include "src/scopeinfo.h"
18 #include "src/scopes.h" 16 #include "src/scopes.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {} 299 void BreakableStatementChecker::VisitSuperReference(SuperReference* expr) {}
302 300
303 301
304 #define __ ACCESS_MASM(masm()) 302 #define __ ACCESS_MASM(masm())
305 303
306 bool FullCodeGenerator::MakeCode(CompilationInfo* info) { 304 bool FullCodeGenerator::MakeCode(CompilationInfo* info) {
307 Isolate* isolate = info->isolate(); 305 Isolate* isolate = info->isolate();
308 306
309 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate()); 307 TimerEventScope<TimerEventCompileFullCode> timer(info->isolate());
310 308
311 if (!AstNumbering::Renumber(info->function(), info->zone())) {
312 DCHECK(!isolate->has_pending_exception());
313 return false;
314 }
315
316 Handle<Script> script = info->script(); 309 Handle<Script> script = info->script();
317 if (!script->IsUndefined() && !script->source()->IsUndefined()) { 310 if (!script->IsUndefined() && !script->source()->IsUndefined()) {
318 int len = String::cast(script->source())->length(); 311 int len = String::cast(script->source())->length();
319 isolate->counters()->total_full_codegen_source_size()->Increment(len); 312 isolate->counters()->total_full_codegen_source_size()->Increment(len);
320 } 313 }
321 CodeGenerator::MakeCodePrologue(info, "full"); 314 CodeGenerator::MakeCodePrologue(info, "full");
322 const int kInitialBufferSize = 4 * KB; 315 const int kInitialBufferSize = 4 * KB;
323 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize); 316 MacroAssembler masm(info->isolate(), NULL, kInitialBufferSize);
324 if (info->will_serialize()) masm.enable_serializer(); 317 if (info->will_serialize()) masm.enable_serializer();
325 318
(...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 } 1744 }
1752 return true; 1745 return true;
1753 } 1746 }
1754 #endif // DEBUG 1747 #endif // DEBUG
1755 1748
1756 1749
1757 #undef __ 1750 #undef __
1758 1751
1759 1752
1760 } } // namespace v8::internal 1753 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698