| 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/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
| 10 #include "src/frames-inl.h" | 10 #include "src/frames-inl.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 if (jump_tables_) { | 160 if (jump_tables_) { |
| 161 masm()->Align(kPointerSize); | 161 masm()->Align(kPointerSize); |
| 162 for (JumpTable* table = jump_tables_; table; table = table->next()) { | 162 for (JumpTable* table = jump_tables_; table; table = table->next()) { |
| 163 masm()->bind(table->label()); | 163 masm()->bind(table->label()); |
| 164 AssembleJumpTable(table->targets(), table->target_count()); | 164 AssembleJumpTable(table->targets(), table->target_count()); |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 | 167 |
| 168 safepoints()->Emit(masm(), frame()->GetSpillSlotCount()); | 168 safepoints()->Emit(masm(), frame()->GetSpillSlotCount()); |
| 169 | 169 |
| 170 Handle<Code> result = v8::internal::CodeGenerator::MakeCodeEpilogue( | 170 Handle<Code> result = |
| 171 masm(), info->flags(), info); | 171 v8::internal::CodeGenerator::MakeCodeEpilogue(masm(), info); |
| 172 result->set_is_turbofanned(true); | 172 result->set_is_turbofanned(true); |
| 173 result->set_stack_slots(frame()->GetSpillSlotCount()); | 173 result->set_stack_slots(frame()->GetSpillSlotCount()); |
| 174 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); | 174 result->set_safepoint_table_offset(safepoints()->GetCodeOffset()); |
| 175 | 175 |
| 176 // Emit exception handler table. | 176 // Emit exception handler table. |
| 177 if (!handlers_.empty()) { | 177 if (!handlers_.empty()) { |
| 178 Handle<HandlerTable> table = | 178 Handle<HandlerTable> table = |
| 179 Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray( | 179 Handle<HandlerTable>::cast(isolate()->factory()->NewFixedArray( |
| 180 HandlerTable::LengthForReturn(static_cast<int>(handlers_.size())), | 180 HandlerTable::LengthForReturn(static_cast<int>(handlers_.size())), |
| 181 TENURED)); | 181 TENURED)); |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 : masm_(gen->masm()), next_(gen->ools_) { | 668 : masm_(gen->masm()), next_(gen->ools_) { |
| 669 gen->ools_ = this; | 669 gen->ools_ = this; |
| 670 } | 670 } |
| 671 | 671 |
| 672 | 672 |
| 673 OutOfLineCode::~OutOfLineCode() {} | 673 OutOfLineCode::~OutOfLineCode() {} |
| 674 | 674 |
| 675 } // namespace compiler | 675 } // namespace compiler |
| 676 } // namespace internal | 676 } // namespace internal |
| 677 } // namespace v8 | 677 } // namespace v8 |
| OLD | NEW |