OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "arm64/lithium-codegen-arm64.h" | 7 #include "arm64/lithium-codegen-arm64.h" |
8 #include "arm64/lithium-gap-resolver-arm64.h" | 8 #include "arm64/lithium-gap-resolver-arm64.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 return !is_aborted(); | 885 return !is_aborted(); |
886 } | 886 } |
887 | 887 |
888 | 888 |
889 void LCodeGen::FinishCode(Handle<Code> code) { | 889 void LCodeGen::FinishCode(Handle<Code> code) { |
890 ASSERT(is_done()); | 890 ASSERT(is_done()); |
891 code->set_stack_slots(GetStackSlotCount()); | 891 code->set_stack_slots(GetStackSlotCount()); |
892 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); | 892 code->set_safepoint_table_offset(safepoints_.GetCodeOffset()); |
893 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); | 893 if (code->is_optimized_code()) RegisterWeakObjectsInOptimizedCode(code); |
894 PopulateDeoptimizationData(code); | 894 PopulateDeoptimizationData(code); |
895 info()->CommitDependencies(code); | |
896 } | 895 } |
897 | 896 |
898 | 897 |
899 void LCodeGen::Abort(BailoutReason reason) { | 898 void LCodeGen::Abort(BailoutReason reason) { |
900 info()->set_bailout_reason(reason); | 899 info()->set_bailout_reason(reason); |
901 status_ = ABORTED; | 900 status_ = ABORTED; |
902 } | 901 } |
903 | 902 |
904 | 903 |
905 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 904 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
(...skipping 5043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5949 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5948 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
5950 // Index is equal to negated out of object property index plus 1. | 5949 // Index is equal to negated out of object property index plus 1. |
5951 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5950 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5952 __ Ldr(result, FieldMemOperand(result, | 5951 __ Ldr(result, FieldMemOperand(result, |
5953 FixedArray::kHeaderSize - kPointerSize)); | 5952 FixedArray::kHeaderSize - kPointerSize)); |
5954 __ Bind(deferred->exit()); | 5953 __ Bind(deferred->exit()); |
5955 __ Bind(&done); | 5954 __ Bind(&done); |
5956 } | 5955 } |
5957 | 5956 |
5958 } } // namespace v8::internal | 5957 } } // namespace v8::internal |
OLD | NEW |