X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/6fe7ccc865dc7d7541b93c5bcaf6368d2c98a174..8b637bb680022adfddad653280734877951535a9:/assembler/AssemblerBuffer.h diff --git a/assembler/AssemblerBuffer.h b/assembler/AssemblerBuffer.h index d1deef2..d82c0b9 100644 --- a/assembler/AssemblerBuffer.h +++ b/assembler/AssemblerBuffer.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Apple Inc. All rights reserved. + * Copyright (C) 2008, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,11 +28,11 @@ #if ENABLE(ASSEMBLER) +#include "ExecutableAllocator.h" #include "JITCompilationEffort.h" -#include "JSGlobalData.h" +#include "VM.h" #include "stdint.h" #include -#include #include #include #include @@ -130,12 +130,12 @@ namespace JSC { return AssemblerLabel(m_index); } - PassRefPtr executableCopy(JSGlobalData& globalData, void* ownerUID, JITCompilationEffort effort) + PassRefPtr executableCopy(VM& vm, void* ownerUID, JITCompilationEffort effort) { if (!m_index) return 0; - RefPtr result = globalData.executableAllocator.allocate(globalData, m_index, ownerUID, effort); + RefPtr result = vm.executableAllocator.allocate(vm, m_index, ownerUID, effort); if (!result) return 0; @@ -168,7 +168,7 @@ namespace JSC { } private: - Vector m_storage; + Vector m_storage; char* m_buffer; int m_capacity; int m_index;