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

Side by Side Diff: src/compiler/code-generator.cc

Issue 2023503002: Reland Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Rebase on master. 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/codegen.cc ('k') | src/crankshaft/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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/address-map.h" 7 #include "src/address-map.h"
8 #include "src/base/adapters.h" 8 #include "src/base/adapters.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 masm()->Align(kPointerSize); 197 masm()->Align(kPointerSize);
198 for (JumpTable* table = jump_tables_; table; table = table->next()) { 198 for (JumpTable* table = jump_tables_; table; table = table->next()) {
199 masm()->bind(table->label()); 199 masm()->bind(table->label());
200 AssembleJumpTable(table->targets(), table->target_count()); 200 AssembleJumpTable(table->targets(), table->target_count());
201 } 201 }
202 } 202 }
203 203
204 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); 204 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount());
205 205
206 Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue( 206 Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue(
207 masm(), info, Handle<Object>()); 207 masm(), nullptr, info, Handle<Object>());
208 result->set_is_turbofanned(true); 208 result->set_is_turbofanned(true);
209 result->set_stack_slots(frame()->GetTotalFrameSlotCount()); 209 result->set_stack_slots(frame()->GetTotalFrameSlotCount());
210 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); 210 result->set_safepoint_table_offset(safepoints()->GetCodeOffset());
211 Handle<ByteArray> source_positions = 211 Handle<ByteArray> source_positions =
212 source_position_table_builder_.ToSourcePositionTable(); 212 source_position_table_builder_.ToSourcePositionTable();
213 result->set_source_position_table(*source_positions); 213 result->set_source_position_table(*source_positions);
214 source_position_table_builder_.EndJitLogging(AbstractCode::cast(*result)); 214 source_position_table_builder_.EndJitLogging(AbstractCode::cast(*result));
215 215
216 // Emit exception handler table. 216 // Emit exception handler table.
217 if (!handlers_.empty()) { 217 if (!handlers_.empty()) {
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 898 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
899 gen->ools_ = this; 899 gen->ools_ = this;
900 } 900 }
901 901
902 902
903 OutOfLineCode::~OutOfLineCode() {} 903 OutOfLineCode::~OutOfLineCode() {}
904 904
905 } // namespace compiler 905 } // namespace compiler
906 } // namespace internal 906 } // namespace internal
907 } // namespace v8 907 } // namespace v8
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/crankshaft/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698