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/v8.h" | 5 #include "src/v8.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/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && | 54 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && |
55 GenerateJumpTable() && GenerateSafepointTable(); | 55 GenerateJumpTable() && GenerateSafepointTable(); |
56 } | 56 } |
57 | 57 |
58 | 58 |
59 void LCodeGen::FinishCode(Handle<Code> code) { | 59 void LCodeGen::FinishCode(Handle<Code> code) { |
60 DCHECK(is_done()); | 60 DCHECK(is_done()); |
61 code->set_stack_slots(GetStackSlotCount()); | 61 code->set_stack_slots(GetStackSlotCount()); |
62 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 62 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
63 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); | |
64 PopulateDeoptimizationData(code); | 63 PopulateDeoptimizationData(code); |
65 } | 64 } |
66 | 65 |
67 | 66 |
68 void LCodeGen::SaveCallerDoubles() { | 67 void LCodeGen::SaveCallerDoubles() { |
69 DCHECK(info()->saves_caller_doubles()); | 68 DCHECK(info()->saves_caller_doubles()); |
70 DCHECK(NeedsEagerFrame()); | 69 DCHECK(NeedsEagerFrame()); |
71 Comment(";;; Save clobbered callee double registers"); | 70 Comment(";;; Save clobbered callee double registers"); |
72 int count = 0; | 71 int count = 0; |
73 BitVector* doubles = chunk()->allocated_double_registers(); | 72 BitVector* doubles = chunk()->allocated_double_registers(); |
(...skipping 5910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5984 __ li(at, scope_info); | 5983 __ li(at, scope_info); |
5985 __ Push(at, ToRegister(instr->function())); | 5984 __ Push(at, ToRegister(instr->function())); |
5986 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5985 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5987 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5986 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5988 } | 5987 } |
5989 | 5988 |
5990 | 5989 |
5991 #undef __ | 5990 #undef __ |
5992 | 5991 |
5993 } } // namespace v8::internal | 5992 } } // namespace v8::internal |
OLD | NEW |