| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 int length = deoptimizations_.length(); | 901 int length = deoptimizations_.length(); |
| 902 if (length == 0) return; | 902 if (length == 0) return; |
| 903 Handle<DeoptimizationInputData> data = | 903 Handle<DeoptimizationInputData> data = |
| 904 factory()->NewDeoptimizationInputData(length, TENURED); | 904 factory()->NewDeoptimizationInputData(length, TENURED); |
| 905 | 905 |
| 906 Handle<ByteArray> translations = | 906 Handle<ByteArray> translations = |
| 907 translations_.CreateByteArray(isolate()->factory()); | 907 translations_.CreateByteArray(isolate()->factory()); |
| 908 data->SetTranslationByteArray(*translations); | 908 data->SetTranslationByteArray(*translations); |
| 909 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 909 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
| 910 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 910 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
| 911 if (info_->IsOptimizing()) { |
| 912 data->SetSharedFunctionInfo(*info_->shared_info()); |
| 913 } else { |
| 914 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
| 915 } |
| 911 | 916 |
| 912 Handle<FixedArray> literals = | 917 Handle<FixedArray> literals = |
| 913 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 918 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
| 914 { AllowDeferredHandleDereference copy_handles; | 919 { AllowDeferredHandleDereference copy_handles; |
| 915 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 920 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
| 916 literals->set(i, *deoptimization_literals_[i]); | 921 literals->set(i, *deoptimization_literals_[i]); |
| 917 } | 922 } |
| 918 data->SetLiteralArray(*literals); | 923 data->SetLiteralArray(*literals); |
| 919 } | 924 } |
| 920 | 925 |
| (...skipping 4825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5746 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5751 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5747 __ ldr(result, FieldMemOperand(scratch, | 5752 __ ldr(result, FieldMemOperand(scratch, |
| 5748 FixedArray::kHeaderSize - kPointerSize)); | 5753 FixedArray::kHeaderSize - kPointerSize)); |
| 5749 __ bind(&done); | 5754 __ bind(&done); |
| 5750 } | 5755 } |
| 5751 | 5756 |
| 5752 | 5757 |
| 5753 #undef __ | 5758 #undef __ |
| 5754 | 5759 |
| 5755 } } // namespace v8::internal | 5760 } } // namespace v8::internal |
| OLD | NEW |