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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 GenerateSafepointTable(); | 56 GenerateSafepointTable(); |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 void LCodeGen::FinishCode(Handle<Code> code) { | 60 void LCodeGen::FinishCode(Handle<Code> code) { |
61 ASSERT(is_done()); | 61 ASSERT(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); | 64 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
65 PopulateDeoptimizationData(code); | 65 PopulateDeoptimizationData(code); |
66 info()->CommitDependencies(code); | |
67 } | 66 } |
68 | 67 |
69 | 68 |
70 void LCodeGen::Abort(BailoutReason reason) { | 69 void LCodeGen::Abort(BailoutReason reason) { |
71 info()->set_bailout_reason(reason); | 70 info()->set_bailout_reason(reason); |
72 status_ = ABORTED; | 71 status_ = ABORTED; |
73 } | 72 } |
74 | 73 |
75 | 74 |
76 void LCodeGen::SaveCallerDoubles() { | 75 void LCodeGen::SaveCallerDoubles() { |
(...skipping 5759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5836 __ ldr(result, FieldMemOperand(scratch, | 5835 __ ldr(result, FieldMemOperand(scratch, |
5837 FixedArray::kHeaderSize - kPointerSize)); | 5836 FixedArray::kHeaderSize - kPointerSize)); |
5838 __ bind(deferred->exit()); | 5837 __ bind(deferred->exit()); |
5839 __ bind(&done); | 5838 __ bind(&done); |
5840 } | 5839 } |
5841 | 5840 |
5842 | 5841 |
5843 #undef __ | 5842 #undef __ |
5844 | 5843 |
5845 } } // namespace v8::internal | 5844 } } // namespace v8::internal |
OLD | NEW |