| OLD | NEW |
| 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 Loading... |
| 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 = | 206 Handle<Code> result = |
| 207 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), nullptr, info); | 207 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), info); |
| 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 Loading... |
| 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 |
| OLD | NEW |