Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: src/deoptimizer.cc

Issue 1332283002: Make FlushICache part of Assembler(Base) and take Isolate as parameter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 PatchingAssembler that initialized its isolate with NULL :) Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698