| 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 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 ? Deoptimizer::LAZY | 1169 ? Deoptimizer::LAZY |
| 1170 : Deoptimizer::EAGER; | 1170 : Deoptimizer::EAGER; |
| 1171 DeoptimizeIf(cc, environment, bailout_type); | 1171 DeoptimizeIf(cc, environment, bailout_type); |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 | 1174 |
| 1175 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { | 1175 void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
| 1176 int length = deoptimizations_.length(); | 1176 int length = deoptimizations_.length(); |
| 1177 if (length == 0) return; | 1177 if (length == 0) return; |
| 1178 Handle<DeoptimizationInputData> data = | 1178 Handle<DeoptimizationInputData> data = |
| 1179 factory()->NewDeoptimizationInputData(length, TENURED); | 1179 DeoptimizationInputData::New(isolate(), length, TENURED); |
| 1180 | 1180 |
| 1181 Handle<ByteArray> translations = | 1181 Handle<ByteArray> translations = |
| 1182 translations_.CreateByteArray(isolate()->factory()); | 1182 translations_.CreateByteArray(isolate()->factory()); |
| 1183 data->SetTranslationByteArray(*translations); | 1183 data->SetTranslationByteArray(*translations); |
| 1184 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 1184 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
| 1185 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 1185 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
| 1186 if (info_->IsOptimizing()) { | 1186 if (info_->IsOptimizing()) { |
| 1187 // Reference to shared function info does not change between phases. | 1187 // Reference to shared function info does not change between phases. |
| 1188 AllowDeferredHandleDereference allow_handle_dereference; | 1188 AllowDeferredHandleDereference allow_handle_dereference; |
| 1189 data->SetSharedFunctionInfo(*info_->shared_info()); | 1189 data->SetSharedFunctionInfo(*info_->shared_info()); |
| (...skipping 5256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6446 __ bind(deferred->exit()); | 6446 __ bind(deferred->exit()); |
| 6447 __ bind(&done); | 6447 __ bind(&done); |
| 6448 } | 6448 } |
| 6449 | 6449 |
| 6450 | 6450 |
| 6451 #undef __ | 6451 #undef __ |
| 6452 | 6452 |
| 6453 } } // namespace v8::internal | 6453 } } // namespace v8::internal |
| 6454 | 6454 |
| 6455 #endif // V8_TARGET_ARCH_IA32 | 6455 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |