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/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 masm()->Align(kPointerSize); | 198 masm()->Align(kPointerSize); |
199 for (JumpTable* table = jump_tables_; table; table = table->next()) { | 199 for (JumpTable* table = jump_tables_; table; table = table->next()) { |
200 masm()->bind(table->label()); | 200 masm()->bind(table->label()); |
201 AssembleJumpTable(table->targets(), table->target_count()); | 201 AssembleJumpTable(table->targets(), table->target_count()); |
202 } | 202 } |
203 } | 203 } |
204 | 204 |
205 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); | 205 safepoints()->Emit(masm(), frame()->GetTotalFrameSlotCount()); |
206 | 206 |
207 Handle<Code> result = | 207 Handle<Code> result = |
208 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), info); | 208 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), nullptr, info); |
209 result->set_is_turbofanned(true); | 209 result->set_is_turbofanned(true); |
210 result->set_stack_slots(frame()->GetTotalFrameSlotCount()); | 210 result->set_stack_slots(frame()->GetTotalFrameSlotCount()); |
211 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); | 211 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); |
212 | 212 |
213 // Emit exception handler table. | 213 // Emit exception handler table. |
214 if (!handlers_.empty()) { | 214 if (!handlers_.empty()) { |
215 Handle<HandlerTable> table = | 215 Handle<HandlerTable> table = |
216 Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray( | 216 Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray( |
217 HandlerTable::LengthForReturn(static_cast<int>(handlers_.size())), | 217 HandlerTable::LengthForReturn(static_cast<int>(handlers_.size())), |
218 TENURED)); | 218 TENURED)); |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 815 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
816 gen->ools_ = this; | 816 gen->ools_ = this; |
817 } | 817 } |
818 | 818 |
819 | 819 |
820 OutOfLineCode::~OutOfLineCode() {} | 820 OutOfLineCode::~OutOfLineCode() {} |
821 | 821 |
822 } // namespace compiler | 822 } // namespace compiler |
823 } // namespace internal | 823 } // namespace internal |
824 } // namespace v8 | 824 } // namespace v8 |
OLD | NEW |