From 513e71f247614da1aafabc3b0d671e8dc51da1c7 Mon Sep 17 00:00:00 2001 From: commit-queue Date: Sat, 8 Dec 2012 03:54:54 +0000 Subject: Add missing const qualifier to JSC::CodeBlock::getJITType() https://bugs.webkit.org/show_bug.cgi?id=104424 Patch by Jonathan Liu on 2012-12-07 Reviewed by Laszlo Gombos. JSC::CodeBlock::getJITType() has the const qualifier when JIT is enabled but is missing the const qualifier when JIT is disabled. * bytecode/CodeBlock.h: (JSC::CodeBlock::getJITType): Change-Id: I4ef9d10a536aa3094c9e814ee6bcbe1bf120829e git-svn-id: http://svn.webkit.org/repository/webkit/trunk@137010 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Jocelyn Turcotte --- Source/JavaScriptCore/bytecode/CodeBlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/JavaScriptCore/bytecode') diff --git a/Source/JavaScriptCore/bytecode/CodeBlock.h b/Source/JavaScriptCore/bytecode/CodeBlock.h index 20f1e7452..eec95cac1 100644 --- a/Source/JavaScriptCore/bytecode/CodeBlock.h +++ b/Source/JavaScriptCore/bytecode/CodeBlock.h @@ -521,7 +521,7 @@ namespace JSC { return result; } #else - JITCode::JITType getJITType() { return JITCode::BaselineJIT; } + JITCode::JITType getJITType() const { return JITCode::BaselineJIT; } #endif ScriptExecutable* ownerExecutable() const { return m_ownerExecutable.get(); } -- cgit v1.2.1