OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 data->SetTranslationByteArray(*translations); | 851 data->SetTranslationByteArray(*translations); |
852 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 852 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
853 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 853 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
854 if (info_->IsOptimizing()) { | 854 if (info_->IsOptimizing()) { |
855 // Reference to shared function info does not change between phases. | 855 // Reference to shared function info does not change between phases. |
856 AllowDeferredHandleDereference allow_handle_dereference; | 856 AllowDeferredHandleDereference allow_handle_dereference; |
857 data->SetSharedFunctionInfo(*info_->shared_info()); | 857 data->SetSharedFunctionInfo(*info_->shared_info()); |
858 } else { | 858 } else { |
859 data->SetSharedFunctionInfo(Smi::FromInt(0)); | 859 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
860 } | 860 } |
| 861 data->SetWeakCellCache(Smi::FromInt(0)); |
861 | 862 |
862 Handle<FixedArray> literals = | 863 Handle<FixedArray> literals = |
863 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 864 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
864 { AllowDeferredHandleDereference copy_handles; | 865 { AllowDeferredHandleDereference copy_handles; |
865 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 866 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
866 literals->set(i, *deoptimization_literals_[i]); | 867 literals->set(i, *deoptimization_literals_[i]); |
867 } | 868 } |
868 data->SetLiteralArray(*literals); | 869 data->SetLiteralArray(*literals); |
869 } | 870 } |
870 | 871 |
(...skipping 5112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5983 __ li(at, scope_info); | 5984 __ li(at, scope_info); |
5984 __ Push(at, ToRegister(instr->function())); | 5985 __ Push(at, ToRegister(instr->function())); |
5985 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5986 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5986 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5987 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5987 } | 5988 } |
5988 | 5989 |
5989 | 5990 |
5990 #undef __ | 5991 #undef __ |
5991 | 5992 |
5992 } } // namespace v8::internal | 5993 } } // namespace v8::internal |
OLD | NEW |