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

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

Issue 2147883003: Revert of Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Created 4 years, 5 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/eh-frame.cc ('k') | src/objects.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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 if (info->will_serialize()) masm.enable_serializer(); 47 if (info->will_serialize()) masm.enable_serializer();
48 48
49 FullCodeGenerator cgen(&masm, info); 49 FullCodeGenerator cgen(&masm, info);
50 cgen.Generate(); 50 cgen.Generate();
51 if (cgen.HasStackOverflow()) { 51 if (cgen.HasStackOverflow()) {
52 DCHECK(!isolate->has_pending_exception()); 52 DCHECK(!isolate->has_pending_exception());
53 return false; 53 return false;
54 } 54 }
55 unsigned table_offset = cgen.EmitBackEdgeTable(); 55 unsigned table_offset = cgen.EmitBackEdgeTable();
56 56
57 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, nullptr, info); 57 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, info);
58 cgen.PopulateDeoptimizationData(code); 58 cgen.PopulateDeoptimizationData(code);
59 cgen.PopulateTypeFeedbackInfo(code); 59 cgen.PopulateTypeFeedbackInfo(code);
60 cgen.PopulateHandlerTable(code); 60 cgen.PopulateHandlerTable(code);
61 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 61 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
62 code->set_has_reloc_info_for_serialization(info->will_serialize()); 62 code->set_has_reloc_info_for_serialization(info->will_serialize());
63 code->set_allow_osr_at_loop_nesting_level(0); 63 code->set_allow_osr_at_loop_nesting_level(0);
64 code->set_profiler_ticks(0); 64 code->set_profiler_ticks(0);
65 code->set_back_edge_table_offset(table_offset); 65 code->set_back_edge_table_offset(table_offset);
66 Handle<ByteArray> source_positions = 66 Handle<ByteArray> source_positions =
67 cgen.source_position_table_builder_.ToSourcePositionTable(); 67 cgen.source_position_table_builder_.ToSourcePositionTable();
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 return var->scope()->is_nonlinear() || 1960 return var->scope()->is_nonlinear() ||
1961 var->initializer_position() >= proxy->position(); 1961 var->initializer_position() >= proxy->position();
1962 } 1962 }
1963 1963
1964 1964
1965 #undef __ 1965 #undef __
1966 1966
1967 1967
1968 } // namespace internal 1968 } // namespace internal
1969 } // namespace v8 1969 } // namespace v8
OLDNEW
« no previous file with comments | « src/eh-frame.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698