| 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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 ? Deoptimizer::LAZY | 910 ? Deoptimizer::LAZY |
| 911 : Deoptimizer::EAGER; | 911 : Deoptimizer::EAGER; |
| 912 DeoptimizeIf(condition, environment, bailout_type); | 912 DeoptimizeIf(condition, environment, bailout_type); |
| 913 } | 913 } |
| 914 | 914 |
| 915 | 915 |
| 916 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 916 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
| 917 int length = deoptimizations_.length(); | 917 int length = deoptimizations_.length(); |
| 918 if (length == 0) return; | 918 if (length == 0) return; |
| 919 Handle<DeoptimizationInputData> data = | 919 Handle<DeoptimizationInputData> data = |
| 920 factory()->NewDeoptimizationInputData(length, TENURED); | 920 DeoptimizationInputData::New(isolate(), length, TENURED); |
| 921 | 921 |
| 922 Handle<ByteArray> translations = | 922 Handle<ByteArray> translations = |
| 923 translations_.CreateByteArray(isolate()->factory()); | 923 translations_.CreateByteArray(isolate()->factory()); |
| 924 data->SetTranslationByteArray(*translations); | 924 data->SetTranslationByteArray(*translations); |
| 925 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 925 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
| 926 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 926 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
| 927 if (info_->IsOptimizing()) { | 927 if (info_->IsOptimizing()) { |
| 928 // Reference to shared function info does not change between phases. | 928 // Reference to shared function info does not change between phases. |
| 929 AllowDeferredHandleDereference allow_handle_dereference; | 929 AllowDeferredHandleDereference allow_handle_dereference; |
| 930 data->SetSharedFunctionInfo(*info_->shared_info()); | 930 data->SetSharedFunctionInfo(*info_->shared_info()); |
| (...skipping 4928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5859 __ ldr(result, FieldMemOperand(scratch, | 5859 __ ldr(result, FieldMemOperand(scratch, |
| 5860 FixedArray::kHeaderSize - kPointerSize)); | 5860 FixedArray::kHeaderSize - kPointerSize)); |
| 5861 __ bind(deferred->exit()); | 5861 __ bind(deferred->exit()); |
| 5862 __ bind(&done); | 5862 __ bind(&done); |
| 5863 } | 5863 } |
| 5864 | 5864 |
| 5865 | 5865 |
| 5866 #undef __ | 5866 #undef __ |
| 5867 | 5867 |
| 5868 } } // namespace v8::internal | 5868 } } // namespace v8::internal |
| OLD | NEW |