OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 data->SetTranslationByteArray(*translations); | 901 data->SetTranslationByteArray(*translations); |
902 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 902 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
903 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 903 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
904 if (info_->IsOptimizing()) { | 904 if (info_->IsOptimizing()) { |
905 // Reference to shared function info does not change between phases. | 905 // Reference to shared function info does not change between phases. |
906 AllowDeferredHandleDereference allow_handle_dereference; | 906 AllowDeferredHandleDereference allow_handle_dereference; |
907 data->SetSharedFunctionInfo(*info_->shared_info()); | 907 data->SetSharedFunctionInfo(*info_->shared_info()); |
908 } else { | 908 } else { |
909 data->SetSharedFunctionInfo(Smi::FromInt(0)); | 909 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
910 } | 910 } |
| 911 data->SetWeakCellCache(Smi::FromInt(0)); |
911 | 912 |
912 Handle<FixedArray> literals = | 913 Handle<FixedArray> literals = |
913 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 914 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
914 { AllowDeferredHandleDereference copy_handles; | 915 { AllowDeferredHandleDereference copy_handles; |
915 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 916 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
916 literals->set(i, *deoptimization_literals_[i]); | 917 literals->set(i, *deoptimization_literals_[i]); |
917 } | 918 } |
918 data->SetLiteralArray(*literals); | 919 data->SetLiteralArray(*literals); |
919 } | 920 } |
920 | 921 |
(...skipping 5046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5967 __ li(at, scope_info); | 5968 __ li(at, scope_info); |
5968 __ Push(at, ToRegister(instr->function())); | 5969 __ Push(at, ToRegister(instr->function())); |
5969 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5970 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5970 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5971 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5971 } | 5972 } |
5972 | 5973 |
5973 | 5974 |
5974 #undef __ | 5975 #undef __ |
5975 | 5976 |
5976 } } // namespace v8::internal | 5977 } } // namespace v8::internal |
OLD | NEW |