| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/crankshaft/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
| 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && | 53 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && |
| 54 GenerateJumpTable() && GenerateSafepointTable(); | 54 GenerateJumpTable() && GenerateSafepointTable(); |
| 55 } | 55 } |
| 56 | 56 |
| 57 | 57 |
| 58 void LCodeGen::FinishCode(Handle<Code> code) { | 58 void LCodeGen::FinishCode(Handle<Code> code) { |
| 59 DCHECK(is_done()); | 59 DCHECK(is_done()); |
| 60 code->set_stack_slots(GetTotalFrameSlotCount()); | 60 code->set_stack_slots(GetTotalFrameSlotCount()); |
| 61 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 61 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
| 62 Handle<ByteArray> source_positions = | |
| 63 source_position_table_builder_.ToSourcePositionTable(); | |
| 64 code->set_source_position_table(*source_positions); | |
| 65 PopulateDeoptimizationData(code); | 62 PopulateDeoptimizationData(code); |
| 66 } | 63 } |
| 67 | 64 |
| 68 | 65 |
| 69 void LCodeGen::SaveCallerDoubles() { | 66 void LCodeGen::SaveCallerDoubles() { |
| 70 DCHECK(info()->saves_caller_doubles()); | 67 DCHECK(info()->saves_caller_doubles()); |
| 71 DCHECK(NeedsEagerFrame()); | 68 DCHECK(NeedsEagerFrame()); |
| 72 Comment(";;; Save clobbered callee double registers"); | 69 Comment(";;; Save clobbered callee double registers"); |
| 73 int count = 0; | 70 int count = 0; |
| 74 BitVector* doubles = chunk()->allocated_double_registers(); | 71 BitVector* doubles = chunk()->allocated_double_registers(); |
| (...skipping 5671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5746 __ ld(result, FieldMemOperand(scratch, | 5743 __ ld(result, FieldMemOperand(scratch, |
| 5747 FixedArray::kHeaderSize - kPointerSize)); | 5744 FixedArray::kHeaderSize - kPointerSize)); |
| 5748 __ bind(deferred->exit()); | 5745 __ bind(deferred->exit()); |
| 5749 __ bind(&done); | 5746 __ bind(&done); |
| 5750 } | 5747 } |
| 5751 | 5748 |
| 5752 #undef __ | 5749 #undef __ |
| 5753 | 5750 |
| 5754 } // namespace internal | 5751 } // namespace internal |
| 5755 } // namespace v8 | 5752 } // namespace v8 |
| OLD | NEW |