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/arm/lithium-codegen-arm.h" | 7 #include "src/arm/lithium-codegen-arm.h" |
8 #include "src/arm/lithium-gap-resolver-arm.h" | 8 #include "src/arm/lithium-gap-resolver-arm.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && | 55 return GeneratePrologue() && GenerateBody() && GenerateDeferredCode() && |
56 GenerateJumpTable() && GenerateSafepointTable(); | 56 GenerateJumpTable() && GenerateSafepointTable(); |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 void LCodeGen::FinishCode(Handle<Code> code) { | 60 void LCodeGen::FinishCode(Handle<Code> code) { |
61 DCHECK(is_done()); | 61 DCHECK(is_done()); |
62 code->set_stack_slots(GetStackSlotCount()); | 62 code->set_stack_slots(GetStackSlotCount()); |
63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 63 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
64 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); | |
65 PopulateDeoptimizationData(code); | 64 PopulateDeoptimizationData(code); |
66 } | 65 } |
67 | 66 |
68 | 67 |
69 void LCodeGen::SaveCallerDoubles() { | 68 void LCodeGen::SaveCallerDoubles() { |
70 DCHECK(info()->saves_caller_doubles()); | 69 DCHECK(info()->saves_caller_doubles()); |
71 DCHECK(NeedsEagerFrame()); | 70 DCHECK(NeedsEagerFrame()); |
72 Comment(";;; Save clobbered callee double registers"); | 71 Comment(";;; Save clobbered callee double registers"); |
73 int count = 0; | 72 int count = 0; |
74 BitVector* doubles = chunk()->allocated_double_registers(); | 73 BitVector* doubles = chunk()->allocated_double_registers(); |
(...skipping 5881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5956 __ Push(scope_info); | 5955 __ Push(scope_info); |
5957 __ push(ToRegister(instr->function())); | 5956 __ push(ToRegister(instr->function())); |
5958 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5957 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5959 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5958 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5960 } | 5959 } |
5961 | 5960 |
5962 | 5961 |
5963 #undef __ | 5962 #undef __ |
5964 | 5963 |
5965 } } // namespace v8::internal | 5964 } } // namespace v8::internal |
OLD | NEW |