| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 data->SetTranslationByteArray(*translations); | 816 data->SetTranslationByteArray(*translations); |
| 817 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 817 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
| 818 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 818 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
| 819 if (info_->IsOptimizing()) { | 819 if (info_->IsOptimizing()) { |
| 820 // Reference to shared function info does not change between phases. | 820 // Reference to shared function info does not change between phases. |
| 821 AllowDeferredHandleDereference allow_handle_dereference; | 821 AllowDeferredHandleDereference allow_handle_dereference; |
| 822 data->SetSharedFunctionInfo(*info_->shared_info()); | 822 data->SetSharedFunctionInfo(*info_->shared_info()); |
| 823 } else { | 823 } else { |
| 824 data->SetSharedFunctionInfo(Smi::FromInt(0)); | 824 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
| 825 } | 825 } |
| 826 data->SetWeakCellCache(Smi::FromInt(0)); |
| 826 | 827 |
| 827 Handle<FixedArray> literals = | 828 Handle<FixedArray> literals = |
| 828 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 829 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
| 829 { AllowDeferredHandleDereference copy_handles; | 830 { AllowDeferredHandleDereference copy_handles; |
| 830 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 831 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
| 831 literals->set(i, *deoptimization_literals_[i]); | 832 literals->set(i, *deoptimization_literals_[i]); |
| 832 } | 833 } |
| 833 data->SetLiteralArray(*literals); | 834 data->SetLiteralArray(*literals); |
| 834 } | 835 } |
| 835 | 836 |
| (...skipping 5071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5907 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 5908 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 5908 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5909 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5909 } | 5910 } |
| 5910 | 5911 |
| 5911 | 5912 |
| 5912 #undef __ | 5913 #undef __ |
| 5913 | 5914 |
| 5914 } } // namespace v8::internal | 5915 } } // namespace v8::internal |
| 5915 | 5916 |
| 5916 #endif // V8_TARGET_ARCH_X64 | 5917 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |