| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 masm()->Align(kPointerSize); | 196 masm()->Align(kPointerSize); |
| 197 for (JumpTable* table = jump_tables_; table; table = table->next()) { | 197 for (JumpTable* table = jump_tables_; table; table = table->next()) { |
| 198 masm()->bind(table->label()); | 198 masm()->bind(table->label()); |
| 199 AssembleJumpTable(table->targets(), table->target_count()); | 199 AssembleJumpTable(table->targets(), table->target_count()); |
| 200 } | 200 } |
| 201 } | 201 } |
| 202 | 202 |
| 203 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); | 203 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); |
| 204 | 204 |
| 205 Handle<Code> result = | 205 Handle<Code> result = |
| 206 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), info); | 206 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), nullptr, info); |
| 207 result->set_is_turbofanned(true); | 207 result->set_is_turbofanned(true); |
| 208 result->set_stack_slots(frame()->GetTotalFrameSlotCount()); | 208 result->set_stack_slots(frame()->GetTotalFrameSlotCount()); |
| 209 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); | 209 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); |
| 210 Handle<ByteArray> source_positions = | 210 Handle<ByteArray> source_positions = |
| 211 source_position_table_builder_.ToSourcePositionTable(); | 211 source_position_table_builder_.ToSourcePositionTable(); |
| 212 result->set_source_position_table(*source_positions); | 212 result->set_source_position_table(*source_positions); |
| 213 source_position_table_builder_.EndJitLogging(AbstractCode::cast(*result)); | 213 source_position_table_builder_.EndJitLogging(AbstractCode::cast(*result)); |
| 214 | 214 |
| 215 // Emit exception handler table. | 215 // Emit exception handler table. |
| 216 if (!handlers_.empty()) { | 216 if (!handlers_.empty()) { |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 897 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 898 gen->ools_ = this; | 898 gen->ools_ = this; |
| 899 } | 899 } |
| 900 | 900 |
| 901 | 901 |
| 902 OutOfLineCode::~OutOfLineCode() {} | 902 OutOfLineCode::~OutOfLineCode() {} |
| 903 | 903 |
| 904 } // namespace compiler | 904 } // namespace compiler |
| 905 } // namespace internal | 905 } // namespace internal |
| 906 } // namespace v8 | 906 } // namespace v8 |
| OLD | NEW |