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/deoptimizer.h" | 5 #include "src/deoptimizer.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1845 | 1845 |
1846 MemoryChunk* chunk = data->deopt_entry_code_[type]; | 1846 MemoryChunk* chunk = data->deopt_entry_code_[type]; |
1847 CHECK(static_cast<int>(Deoptimizer::GetMaxDeoptTableSize()) >= | 1847 CHECK(static_cast<int>(Deoptimizer::GetMaxDeoptTableSize()) >= |
1848 desc.instr_size); | 1848 desc.instr_size); |
1849 if (!chunk->CommitArea(desc.instr_size)) { | 1849 if (!chunk->CommitArea(desc.instr_size)) { |
1850 V8::FatalProcessOutOfMemory( | 1850 V8::FatalProcessOutOfMemory( |
1851 "Deoptimizer::EnsureCodeForDeoptimizationEntry"); | 1851 "Deoptimizer::EnsureCodeForDeoptimizationEntry"); |
1852 } | 1852 } |
1853 CopyBytes(chunk->area_start(), desc.buffer, | 1853 CopyBytes(chunk->area_start(), desc.buffer, |
1854 static_cast<size_t>(desc.instr_size)); | 1854 static_cast<size_t>(desc.instr_size)); |
1855 CpuFeatures::FlushICache(chunk->area_start(), desc.instr_size); | 1855 Assembler::FlushICache(isolate, chunk->area_start(), desc.instr_size); |
1856 | 1856 |
1857 data->deopt_entry_code_entries_[type] = entry_count; | 1857 data->deopt_entry_code_entries_[type] = entry_count; |
1858 } | 1858 } |
1859 | 1859 |
1860 | 1860 |
1861 FrameDescription::FrameDescription(uint32_t frame_size, | 1861 FrameDescription::FrameDescription(uint32_t frame_size, |
1862 JSFunction* function) | 1862 JSFunction* function) |
1863 : frame_size_(frame_size), | 1863 : frame_size_(frame_size), |
1864 function_(function), | 1864 function_(function), |
1865 top_(kZapUint32), | 1865 top_(kZapUint32), |
(...skipping 1546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3412 DCHECK(value_info->IsMaterializedObject()); | 3412 DCHECK(value_info->IsMaterializedObject()); |
3413 | 3413 |
3414 value_info->value_ = | 3414 value_info->value_ = |
3415 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3415 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3416 } | 3416 } |
3417 } | 3417 } |
3418 } | 3418 } |
3419 | 3419 |
3420 } // namespace internal | 3420 } // namespace internal |
3421 } // namespace v8 | 3421 } // namespace v8 |
OLD | NEW |