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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1188 data->SetTranslationByteArray(*translations); | 1188 data->SetTranslationByteArray(*translations); |
1189 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); | 1189 data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
1190 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); | 1190 data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
1191 if (info_->IsOptimizing()) { | 1191 if (info_->IsOptimizing()) { |
1192 // Reference to shared function info does not change between phases. | 1192 // Reference to shared function info does not change between phases. |
1193 AllowDeferredHandleDereference allow_handle_dereference; | 1193 AllowDeferredHandleDereference allow_handle_dereference; |
1194 data->SetSharedFunctionInfo(*info_->shared_info()); | 1194 data->SetSharedFunctionInfo(*info_->shared_info()); |
1195 } else { | 1195 } else { |
1196 data->SetSharedFunctionInfo(Smi::FromInt(0)); | 1196 data->SetSharedFunctionInfo(Smi::FromInt(0)); |
1197 } | 1197 } |
| 1198 data->SetWeakCellCache(Smi::FromInt(0)); |
1198 | 1199 |
1199 Handle<FixedArray> literals = | 1200 Handle<FixedArray> literals = |
1200 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); | 1201 factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
1201 { AllowDeferredHandleDereference copy_handles; | 1202 { AllowDeferredHandleDereference copy_handles; |
1202 for (int i = 0; i < deoptimization_literals_.length(); i++) { | 1203 for (int i = 0; i < deoptimization_literals_.length(); i++) { |
1203 literals->set(i, *deoptimization_literals_[i]); | 1204 literals->set(i, *deoptimization_literals_[i]); |
1204 } | 1205 } |
1205 data->SetLiteralArray(*literals); | 1206 data->SetLiteralArray(*literals); |
1206 } | 1207 } |
1207 | 1208 |
(...skipping 5121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6329 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6330 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6330 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6331 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6331 } | 6332 } |
6332 | 6333 |
6333 | 6334 |
6334 #undef __ | 6335 #undef __ |
6335 | 6336 |
6336 } } // namespace v8::internal | 6337 } } // namespace v8::internal |
6337 | 6338 |
6338 #endif // V8_TARGET_ARCH_X87 | 6339 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |