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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1304053004: Deprecate semi-correct CompilationInfo::flags predicate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test-pipeline.cc Created 5 years, 4 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
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/lithium.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/ast.h" 5 #include "src/ast.h"
6 #include "src/ast-numbering.h" 6 #include "src/ast-numbering.h"
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 CodeStartLinePosInfoRecordEvent(masm.positions_recorder())); 43 CodeStartLinePosInfoRecordEvent(masm.positions_recorder()));
44 44
45 FullCodeGenerator cgen(&masm, info); 45 FullCodeGenerator cgen(&masm, info);
46 cgen.Generate(); 46 cgen.Generate();
47 if (cgen.HasStackOverflow()) { 47 if (cgen.HasStackOverflow()) {
48 DCHECK(!isolate->has_pending_exception()); 48 DCHECK(!isolate->has_pending_exception());
49 return false; 49 return false;
50 } 50 }
51 unsigned table_offset = cgen.EmitBackEdgeTable(); 51 unsigned table_offset = cgen.EmitBackEdgeTable();
52 52
53 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); 53 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, info);
54 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info);
55 cgen.PopulateDeoptimizationData(code); 54 cgen.PopulateDeoptimizationData(code);
56 cgen.PopulateTypeFeedbackInfo(code); 55 cgen.PopulateTypeFeedbackInfo(code);
57 cgen.PopulateHandlerTable(code); 56 cgen.PopulateHandlerTable(code);
58 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 57 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
59 code->set_has_reloc_info_for_serialization(info->will_serialize()); 58 code->set_has_reloc_info_for_serialization(info->will_serialize());
60 code->set_allow_osr_at_loop_nesting_level(0); 59 code->set_allow_osr_at_loop_nesting_level(0);
61 code->set_profiler_ticks(0); 60 code->set_profiler_ticks(0);
62 code->set_back_edge_table_offset(table_offset); 61 code->set_back_edge_table_offset(table_offset);
63 CodeGenerator::PrintCode(code, info); 62 CodeGenerator::PrintCode(code, info);
64 info->SetCode(code); 63 info->SetCode(code);
(...skipping 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1588 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1590 codegen_->scope_ = saved_scope_; 1589 codegen_->scope_ = saved_scope_;
1591 } 1590 }
1592 1591
1593 1592
1594 #undef __ 1593 #undef __
1595 1594
1596 1595
1597 } // namespace internal 1596 } // namespace internal
1598 } // namespace v8 1597 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698