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 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 data->SetTranslationByteArray(*translations); | 906 data->SetTranslationByteArray(*translations); |
907 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 907 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
908 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 908 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
909 if (info_->IsOptimizing()) { | 909 if (info_->IsOptimizing()) { |
910 // Reference to shared function info does not change between phases. | 910 // Reference to shared function info does not change between phases. |
911 AllowDeferredHandleDereference allow_handle_dereference; | 911 AllowDeferredHandleDereference allow_handle_dereference; |
912 data->SetSharedFunctionInfo(*info_->shared_info()); | 912 data->SetSharedFunctionInfo(*info_->shared_info()); |
913 } else { | 913 } else { |
914 data->SetSharedFunctionInfo(Smi::FromInt(0)); | 914 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
915 } | 915 } |
| 916 data->SetWeakCellCache(Smi::FromInt(0)); |
916 | 917 |
917 Handle<FixedArray> literals = | 918 Handle<FixedArray> literals = |
918 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 919 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
919 { AllowDeferredHandleDereference copy_handles; | 920 { AllowDeferredHandleDereference copy_handles; |
920 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 921 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
921 literals->set(i, *deoptimization_literals_[i]); | 922 literals->set(i, *deoptimization_literals_[i]); |
922 } | 923 } |
923 data->SetLiteralArray(*literals); | 924 data->SetLiteralArray(*literals); |
924 } | 925 } |
925 | 926 |
(...skipping 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5749 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5750 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
5750 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5751 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5751 } | 5752 } |
5752 | 5753 |
5753 | 5754 |
5754 #undef __ | 5755 #undef __ |
5755 | 5756 |
5756 } } // namespace v8::internal | 5757 } } // namespace v8::internal |
5757 | 5758 |
5758 #endif // V8_TARGET_ARCH_IA32 | 5759 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |