OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && | 77 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && |
78 GenerateJumpTable() && GenerateSafepointTable(); | 78 GenerateJumpTable() && GenerateSafepointTable(); |
79 } | 79 } |
80 | 80 |
81 | 81 |
82 void LCodeGen::FinishCode(Handle<Code> code) { | 82 void LCodeGen::FinishCode(Handle<Code> code) { |
83 DCHECK(is_done()); | 83 DCHECK(is_done()); |
84 code->set_stack_slots(GetTotalFrameSlotCount()); | 84 code->set_stack_slots(GetTotalFrameSlotCount()); |
85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 85 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
86 Handle<ByteArray> source_positions = | |
87 source_position_table_builder_.ToSourcePositionTable(); | |
88 code->set_source_position_table(*source_positions); | |
89 PopulateDeoptimizationData(code); | 86 PopulateDeoptimizationData(code); |
90 } | 87 } |
91 | 88 |
92 | 89 |
93 void LCodeGen::SaveCallerDoubles() { | 90 void LCodeGen::SaveCallerDoubles() { |
94 DCHECK(info()->saves_caller_doubles()); | 91 DCHECK(info()->saves_caller_doubles()); |
95 DCHECK(NeedsEagerFrame()); | 92 DCHECK(NeedsEagerFrame()); |
96 Comment(";;; Save clobbered callee double registers"); | 93 Comment(";;; Save clobbered callee double registers"); |
97 int count = 0; | 94 int count = 0; |
98 BitVector* doubles = chunk()->allocated_double_registers(); | 95 BitVector* doubles = chunk()->allocated_double_registers(); |
(...skipping 5440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5539 __ lw(result, FieldMemOperand(scratch, | 5536 __ lw(result, FieldMemOperand(scratch, |
5540 FixedArray::kHeaderSize - kPointerSize)); | 5537 FixedArray::kHeaderSize - kPointerSize)); |
5541 __ bind(deferred->exit()); | 5538 __ bind(deferred->exit()); |
5542 __ bind(&done); | 5539 __ bind(&done); |
5543 } | 5540 } |
5544 | 5541 |
5545 #undef __ | 5542 #undef __ |
5546 | 5543 |
5547 } // namespace internal | 5544 } // namespace internal |
5548 } // namespace v8 | 5545 } // namespace v8 |
OLD | NEW |