Commit 70c60588 authored by andersca@apple.com's avatar andersca@apple.com

Add OVERRIDE and virtual where appropriate

https://bugs.webkit.org/show_bug.cgi?id=122439

Reviewed by Antti Koivisto.

Source/JavaScriptCore:

* API/JSAPIWrapperObject.mm:
* API/JSCallbackObject.h:
(JSC::JSCallbackObjectData::~JSCallbackObjectData):
* API/JSManagedValue.mm:
* API/JSScriptRef.cpp:
(OpaqueJSScript::~OpaqueJSScript):
* bytecode/CodeBlock.h:
* bytecode/StructureStubClearingWatchpoint.h:
* dfg/DFGArrayifySlowPathGenerator.h:
* dfg/DFGCallArrayAllocatorSlowPathGenerator.h:
* dfg/DFGFailedFinalizer.h:
* dfg/DFGJITCode.h:
* dfg/DFGJITFinalizer.h:
* dfg/DFGSaneStringGetByValSlowPathGenerator.h:
* dfg/DFGSlowPathGenerator.h:
* dfg/DFGSpeculativeJIT64.cpp:
* heap/Heap.h:
* heap/IncrementalSweeper.h:
* heap/SuperRegion.h:
* jit/ClosureCallStubRoutine.h:
* jit/ExecutableAllocatorFixedVMPool.cpp:
* jit/GCAwareJITStubRoutine.h:
* jit/JITCode.h:
* jit/JITStubs.cpp:
* jit/JITToDFGDeferredCompilationCallback.h:
* jit/JumpReplacementWatchpoint.h:
* parser/Nodes.h:
* runtime/DataView.h:
* runtime/GCActivityCallback.h:
* runtime/GenericTypedArrayView.h:
* runtime/RegExpCache.h:
* runtime/SimpleTypedArrayController.h:
* runtime/WeakMapData.h:

Source/WebCore:

* Modules/encryptedmedia/MediaKeys.h:
* Modules/webaudio/AnalyserNode.h:
* Modules/webaudio/AudioBasicInspectorNode.h:
* Modules/webaudio/AudioBasicProcessorNode.h:
* Modules/webaudio/AudioBufferSourceNode.h:
* Modules/webaudio/AudioContext.h:
* Modules/webaudio/AudioDestinationNode.h:
* Modules/webaudio/AudioProcessingEvent.h:
* Modules/webaudio/BiquadDSPKernel.h:
* Modules/webaudio/BiquadProcessor.h:
* Modules/webaudio/ChannelMergerNode.h:
* Modules/webaudio/ChannelSplitterNode.h:
* Modules/webaudio/ConvolverNode.h:
* Modules/webaudio/DelayDSPKernel.h:
* Modules/webaudio/DelayProcessor.h:
* Modules/webaudio/DynamicsCompressorNode.h:
* Modules/webaudio/GainNode.h:
* Modules/webaudio/MediaElementAudioSourceNode.h:
* Modules/webaudio/OfflineAudioCompletionEvent.h:
* Modules/webaudio/OfflineAudioDestinationNode.h:
* Modules/webaudio/OscillatorNode.h:
* Modules/webaudio/PannerNode.h:
* Modules/webaudio/ScriptProcessorNode.h:
* Modules/webaudio/WaveShaperProcessor.h:
* accessibility/AccessibilityARIAGrid.h:
* accessibility/AccessibilityARIAGridCell.h:
* accessibility/AccessibilityARIAGridRow.h:
* accessibility/AccessibilityImageMapLink.h:
* accessibility/AccessibilityList.h:
* accessibility/AccessibilityListBox.h:
* accessibility/AccessibilityListBoxOption.h:
* accessibility/AccessibilityMediaControls.h:
* accessibility/AccessibilityMenuList.h:
* accessibility/AccessibilityMenuListOption.h:
* accessibility/AccessibilityMenuListPopup.h:
* accessibility/AccessibilityMockObject.h:
* accessibility/AccessibilityNodeObject.h:
* accessibility/AccessibilityProgressIndicator.h:
* accessibility/AccessibilityRenderObject.h:
* accessibility/AccessibilitySVGRoot.h:
* accessibility/AccessibilityScrollView.h:
* accessibility/AccessibilityScrollbar.h:
* accessibility/AccessibilitySlider.h:
* accessibility/AccessibilitySpinButton.h:
* accessibility/AccessibilityTable.h:
* accessibility/AccessibilityTableCell.h:
* accessibility/AccessibilityTableColumn.h:
* accessibility/AccessibilityTableHeaderContainer.h:
* accessibility/AccessibilityTableRow.h:
* bindings/js/JSEventListener.h:
* bindings/js/WebCoreTypedArrayController.h:
* bridge/c/c_class.h:
* bridge/c/c_instance.h:
* bridge/c/c_runtime.h:
* bridge/runtime_root.h:
* css/CSSBasicShapes.h:
* css/CSSComputedStyleDeclaration.h:
* css/CSSStyleSheet.h:
* dom/Attr.h:
* dom/BeforeTextInsertedEvent.h:
* dom/CDATASection.h:
* dom/ChildNodeList.h:
* dom/DatasetDOMStringMap.h:
* dom/Document.h:
* dom/DocumentEventQueue.h:
* dom/DocumentFragment.h:
* dom/Element.h:
* dom/ErrorEvent.h:
* dom/KeyboardEvent.h:
* dom/Node.h:
* dom/PageTransitionEvent.h:
* dom/ProgressEvent.h:
* dom/PseudoElement.h:
* dom/ScriptExecutionContext.h:
* dom/ShadowRoot.h:
* dom/StyledElement.h:
* dom/TagNodeList.h:
* dom/Text.h:
* dom/TextEvent.h:
* dom/TransitionEvent.h:
* dom/UIEvent.h:
* dom/WebKitAnimationEvent.h:
* dom/WebKitTransitionEvent.h:
* editing/ApplyBlockElementCommand.h:
* editing/ApplyStyleCommand.h:
* editing/BreakBlockquoteCommand.h:
* editing/CompositeEditCommand.h:
* editing/SpellingCorrectionCommand.h:
* fileapi/File.h:
* fileapi/FileThreadTask.h:
* history/BackForwardList.h:
* html/BaseCheckableInputType.h:
* html/HTMLAnchorElement.h:
* html/HTMLAreaElement.h:
* html/HTMLCanvasElement.h:
* html/HTMLCollection.h:
* html/HTMLElement.h:
* html/HTMLFieldSetElement.h:
* html/HTMLFormControlElement.h:
* html/HTMLFormControlElementWithState.h:
* html/HTMLFormElement.h:
* html/HTMLFrameElementBase.h:
* html/HTMLImageElement.h:
* html/HTMLImageLoader.h:
* html/HTMLInputElement.h:
* html/HTMLLabelElement.h:
* html/HTMLLegendElement.h:
* html/HTMLMediaElement.h:
* html/HTMLMeterElement.h:
* html/HTMLOptGroupElement.h:
* html/HTMLOptionElement.h:
* html/HTMLPlugInElement.h:
* html/HTMLPlugInImageElement.h:
* html/HTMLProgressElement.h:
* html/HTMLSelectElement.h:
* html/HTMLTableElement.h:
* html/HTMLTextAreaElement.h:
* html/HTMLTextFormControlElement.h:
* html/HTMLVideoElement.h:
* html/canvas/CanvasRenderingContext2D.cpp:
* html/shadow/MediaControlElementTypes.h:
* html/shadow/MediaControlElements.h:
* html/shadow/SpinButtonElement.h:
* html/shadow/TextControlInnerElements.h:
* html/track/AudioTrackList.h:
* html/track/TextTrackList.h:
* html/track/TrackListBase.h:
* inspector/InspectorValues.h:
* loader/EmptyClients.h:
* loader/ImageLoader.h:
* loader/ResourceLoader.h:
* loader/SubresourceLoader.h:
* loader/appcache/ApplicationCacheGroup.cpp:
* loader/appcache/ApplicationCacheGroup.h:
* loader/appcache/DOMApplicationCache.h:
* loader/archive/cf/LegacyWebArchive.h:
* loader/cache/CachedCSSStyleSheet.h:
* loader/cache/CachedFont.h:
* loader/cache/CachedFontClient.h:
* loader/cache/CachedImageClient.h:
* loader/cache/CachedSVGDocumentClient.h:
* loader/cache/CachedStyleSheetClient.h:
* loader/cache/CachedXSLStyleSheet.h:
* page/Chrome.h:
* page/DOMWindow.h:
* page/FrameView.h:
* page/animation/ImplicitAnimation.h:
* platform/PODIntervalTree.h:
* platform/PODRedBlackTree.h:
* platform/ScrollView.h:
* platform/Scrollbar.h:
* platform/Timer.h:
* platform/animation/TimingFunction.h:
(WebCore::LinearTimingFunction::~LinearTimingFunction):
(WebCore::CubicBezierTimingFunction::~CubicBezierTimingFunction):
(WebCore::StepsTimingFunction::~StepsTimingFunction):
* platform/audio/AudioDSPKernelProcessor.h:
* platform/audio/HRTFPanner.h:
* platform/audio/mac/AudioDestinationMac.h:
* platform/graphics/SimpleFontData.h:
* platform/graphics/avfoundation/InbandTextTrackPrivateAVF.h:
* platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h:
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h:
* platform/graphics/filters/FilterOperation.h:
* platform/network/ResourceHandle.h:
* rendering/AutoTableLayout.h:
* rendering/ClipPathOperation.h:
* rendering/InlineFlowBox.h:
* rendering/RenderBlock.h:
* rendering/RenderBox.h:
* rendering/RenderBoxModelObject.h:
* rendering/RenderButton.h:
* rendering/RenderFieldset.h:
* rendering/RenderFileUploadControl.h:
* rendering/RenderFlexibleBox.h:
* rendering/RenderFlowThread.h:
* rendering/RenderFullScreen.h:
* rendering/RenderImage.h:
* rendering/RenderLayer.h:
* rendering/RenderLineBreak.h:
* rendering/RenderListBox.h:
* rendering/RenderListItem.h:
* rendering/RenderListMarker.h:
* rendering/RenderMenuList.h:
* rendering/RenderMeter.h:
* rendering/RenderObject.h:
* rendering/RenderReplaced.h:
* rendering/RenderSlider.h:
* rendering/RenderTable.h:
* rendering/RenderTableCell.h:
* rendering/RenderText.h:
* rendering/RenderTextControl.h:
* rendering/RenderTextControlSingleLine.h:
* rendering/RenderTextFragment.h:
* rendering/RenderView.h:
* rendering/RootInlineBox.h:
* rendering/mathml/RenderMathMLBlock.h:
* rendering/mathml/RenderMathMLFraction.h:
* rendering/mathml/RenderMathMLOperator.h:
* rendering/style/BasicShapes.h:
* rendering/svg/RenderSVGModelObject.h:
* rendering/svg/RenderSVGShape.h:
* svg/SVGAnimatedBoolean.h:
* svg/SVGAnimatedString.h:
* svg/SVGAnimatedTransformList.h:
* svg/SVGDocument.h:
* svg/SVGElement.h:
* svg/SVGElementInstance.h:
* svg/SVGFontElement.h:
* svg/SVGGElement.h:
* svg/SVGGraphicsElement.h:
* svg/SVGTransformable.h:
* svg/properties/SVGAnimatedListPropertyTearOff.h:
* svg/properties/SVGAnimatedPropertyMacros.h:
* svg/properties/SVGAnimatedTransformListPropertyTearOff.h:
* svg/properties/SVGListPropertyTearOff.h:
* svg/properties/SVGPropertyTearOff.h:
* workers/WorkerGlobalScope.h:

Source/WTF:

* wtf/Compiler.h:
* wtf/FilePrintStream.h:
* wtf/StringPrintStream.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e8a55280
......@@ -38,8 +38,8 @@
class JSAPIWrapperObjectHandleOwner : public JSC::WeakHandleOwner {
public:
virtual void finalize(JSC::Handle<JSC::Unknown>, void*);
virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
virtual void finalize(JSC::Handle<JSC::Unknown>, void*) OVERRIDE;
virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&) OVERRIDE;
};
static JSAPIWrapperObjectHandleOwner* jsAPIWrapperObjectHandleOwner()
......
......@@ -42,7 +42,7 @@ struct JSCallbackObjectData : WeakHandleOwner {
JSClassRetain(jsClass);
}
~JSCallbackObjectData()
virtual ~JSCallbackObjectData()
{
JSClassRelease(jsClass);
}
......@@ -110,7 +110,7 @@ struct JSCallbackObjectData : WeakHandleOwner {
PrivatePropertyMap m_propertyMap;
};
OwnPtr<JSPrivatePropertyMap> m_privateProperties;
virtual void finalize(Handle<Unknown>, void*);
virtual void finalize(Handle<Unknown>, void*) OVERRIDE;
};
......
......@@ -40,8 +40,8 @@
class JSManagedValueHandleOwner : public JSC::WeakHandleOwner {
public:
virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
virtual void finalize(JSC::Handle<JSC::Unknown>, void* context) OVERRIDE;
virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&) OVERRIDE;
};
static JSManagedValueHandleOwner* managedValueHandleOwner()
......
......@@ -46,7 +46,7 @@ public:
return WTF::adoptRef(new OpaqueJSScript(vm, url, startingLineNumber, source));
}
const String& source() const OVERRIDE
virtual const String& source() const OVERRIDE
{
return m_source;
}
......@@ -61,7 +61,7 @@ private:
{
}
~OpaqueJSScript() { }
virtual ~OpaqueJSScript() { }
VM* m_vm;
String m_source;
......
2013-10-06 Anders Carlsson <andersca@apple.com>
Add OVERRIDE and virtual where appropriate
https://bugs.webkit.org/show_bug.cgi?id=122439
Reviewed by Antti Koivisto.
* API/JSAPIWrapperObject.mm:
* API/JSCallbackObject.h:
(JSC::JSCallbackObjectData::~JSCallbackObjectData):
* API/JSManagedValue.mm:
* API/JSScriptRef.cpp:
(OpaqueJSScript::~OpaqueJSScript):
* bytecode/CodeBlock.h:
* bytecode/StructureStubClearingWatchpoint.h:
* dfg/DFGArrayifySlowPathGenerator.h:
* dfg/DFGCallArrayAllocatorSlowPathGenerator.h:
* dfg/DFGFailedFinalizer.h:
* dfg/DFGJITCode.h:
* dfg/DFGJITFinalizer.h:
* dfg/DFGSaneStringGetByValSlowPathGenerator.h:
* dfg/DFGSlowPathGenerator.h:
* dfg/DFGSpeculativeJIT64.cpp:
* heap/Heap.h:
* heap/IncrementalSweeper.h:
* heap/SuperRegion.h:
* jit/ClosureCallStubRoutine.h:
* jit/ExecutableAllocatorFixedVMPool.cpp:
* jit/GCAwareJITStubRoutine.h:
* jit/JITCode.h:
* jit/JITStubs.cpp:
* jit/JITToDFGDeferredCompilationCallback.h:
* jit/JumpReplacementWatchpoint.h:
* parser/Nodes.h:
* runtime/DataView.h:
* runtime/GCActivityCallback.h:
* runtime/GenericTypedArrayView.h:
* runtime/RegExpCache.h:
* runtime/SimpleTypedArrayController.h:
* runtime/WeakMapData.h:
2013-10-07 Filip Pizlo <fpizlo@apple.com>
Trap 5 (most likely int $3) in jsc-layout-tests.yaml/js/script-tests/integer-division-neg2tothe32-by-neg1.js.layout-dfg-eager-no-cjit
......@@ -901,8 +901,8 @@ public:
bool m_didFailFTLCompilation;
protected:
virtual void visitWeakReferences(SlotVisitor&);
virtual void finalizeUnconditionally();
virtual void visitWeakReferences(SlotVisitor&) OVERRIDE;
virtual void finalizeUnconditionally() OVERRIDE;
#if ENABLE(DFG_JIT)
void tallyFrequentExitSites();
......@@ -1127,8 +1127,8 @@ public:
#if ENABLE(JIT)
protected:
virtual CodeBlock* replacement();
virtual DFG::CapabilityLevel capabilityLevelInternal();
virtual CodeBlock* replacement() OVERRIDE;
virtual DFG::CapabilityLevel capabilityLevelInternal() OVERRIDE;
#endif
};
......@@ -1149,8 +1149,8 @@ public:
#if ENABLE(JIT)
protected:
virtual CodeBlock* replacement();
virtual DFG::CapabilityLevel capabilityLevelInternal();
virtual CodeBlock* replacement() OVERRIDE;
virtual DFG::CapabilityLevel capabilityLevelInternal() OVERRIDE;
#endif
private:
......@@ -1171,8 +1171,8 @@ public:
#if ENABLE(JIT)
protected:
virtual CodeBlock* replacement();
virtual DFG::CapabilityLevel capabilityLevelInternal();
virtual CodeBlock* replacement() OVERRIDE;
virtual DFG::CapabilityLevel capabilityLevelInternal() OVERRIDE;
#endif
};
......
......@@ -69,7 +69,7 @@ public:
OwnPtr<StructureStubClearingWatchpoint>& head);
protected:
void fireInternal();
virtual void fireInternal() OVERRIDE;
private:
WatchpointsOnStructureStubInfo& m_holder;
......
......@@ -73,7 +73,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
linkFrom(jit);
......
......@@ -54,7 +54,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
linkFrom(jit);
for (unsigned i = 0; i < m_plans.size(); ++i)
......@@ -92,7 +92,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
linkFrom(jit);
for (unsigned i = 0; i < m_plans.size(); ++i)
......
......@@ -39,8 +39,8 @@ public:
FailedFinalizer(Plan&);
virtual ~FailedFinalizer();
bool finalize();
bool finalizeFunction();
virtual bool finalize() OVERRIDE;
virtual bool finalizeFunction() OVERRIDE;
};
} } // namespace JSC::DFG
......
......@@ -48,10 +48,10 @@ class JITCompiler;
class JITCode : public DirectJITCode {
public:
JITCode();
~JITCode();
virtual ~JITCode();
CommonData* dfgCommon();
JITCode* dfg();
virtual CommonData* dfgCommon() OVERRIDE;
virtual JITCode* dfg() OVERRIDE;
OSREntryData* appendOSREntryData(unsigned bytecodeIndex, unsigned machineCodeOffset)
{
......
......@@ -42,8 +42,8 @@ public:
JITFinalizer(Plan&, PassRefPtr<JITCode>, PassOwnPtr<LinkBuffer>, MacroAssembler::Label arityCheck = MacroAssembler::Label());
virtual ~JITFinalizer();
bool finalize();
bool finalizeFunction();
virtual bool finalize() OVERRIDE;
virtual bool finalizeFunction() OVERRIDE;
private:
void finalizeCommon();
......
......@@ -52,7 +52,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
linkFrom(jit);
......
......@@ -110,7 +110,7 @@ public:
jit->silentSpillAllRegistersImpl(false, m_plans, extractResult(result));
}
virtual MacroAssembler::Call call() const
virtual MacroAssembler::Call call() const OVERRIDE
{
return m_call;
}
......@@ -160,7 +160,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->setUp(jit);
this->recordCall(jit->callOperation(this->m_function, extractResult(this->m_result)));
......@@ -184,7 +184,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->setUp(jit);
this->recordCall(jit->callOperation(this->m_function, extractResult(this->m_result), m_argument1));
......@@ -212,7 +212,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->setUp(jit);
this->recordCall(jit->callOperation(this->m_function, extractResult(this->m_result), m_argument1, m_argument2));
......@@ -242,7 +242,7 @@ public:
}
protected:
void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->setUp(jit);
this->recordCall(
......@@ -441,7 +441,7 @@ public:
}
protected:
virtual void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->linkFrom(jit);
for (unsigned i = numberOfAssignments; i--;)
......
......@@ -512,7 +512,7 @@ public:
}
protected:
virtual void generateInternal(SpeculativeJIT* jit)
virtual void generateInternal(SpeculativeJIT* jit) OVERRIDE
{
this->setUp(jit);
this->recordCall(jit->callOperation(this->m_function, this->m_result, m_arg1, m_arg2));
......
......@@ -216,7 +216,7 @@ namespace JSC {
static const size_t maxExtraCost = 1024 * 1024;
class FinalizerOwner : public WeakHandleOwner {
virtual void finalize(Handle<Unknown>, void* context);
virtual void finalize(Handle<Unknown>, void* context) OVERRIDE;
};
JS_EXPORT_PRIVATE bool isValidAllocation(size_t);
......
......@@ -41,7 +41,7 @@ class IncrementalSweeper : public HeapTimer {
public:
static PassOwnPtr<IncrementalSweeper> create(Heap*);
void startSweeping(Vector<MarkedBlock*>&);
virtual void doWork();
virtual void doWork() OVERRIDE;
void sweepNextBlock();
void willFinishSweeping();
......
......@@ -40,9 +40,9 @@ public:
virtual ~SuperRegion();
protected:
virtual void* allocateNewSpace(size_t&);
virtual void notifyNeedPage(void*);
virtual void notifyPageIsFree(void*);
virtual void* allocateNewSpace(size_t&) OVERRIDE;
virtual void notifyNeedPage(void*) OVERRIDE;
virtual void notifyPageIsFree(void*) OVERRIDE;
private:
static const uint64_t s_fixedHeapMemoryPoolSize;
......
......@@ -48,7 +48,7 @@ public:
const CodeOrigin& codeOrigin() const { return m_codeOrigin; }
protected:
virtual void markRequiredObjectsInternal(SlotVisitor&);
virtual void markRequiredObjectsInternal(SlotVisitor&) OVERRIDE;
private:
WriteBarrier<Structure> m_structure;
......
......@@ -76,13 +76,13 @@ public:
virtual ~FixedVMPoolExecutableAllocator();
protected:
virtual void* allocateNewSpace(size_t&)
virtual void* allocateNewSpace(size_t&) OVERRIDE
{
// We're operating in a fixed pool, so new allocation is always prohibited.
return 0;
}
virtual void notifyNeedPage(void* page)
virtual void notifyNeedPage(void* page) OVERRIDE
{
#if USE(MADV_FREE_FOR_JIT_MEMORY)
UNUSED_PARAM(page);
......@@ -91,7 +91,7 @@ protected:
#endif
}
virtual void notifyPageIsFree(void* page)
virtual void notifyPageIsFree(void* page) OVERRIDE
{
#if USE(MADV_FREE_FOR_JIT_MEMORY)
for (;;) {
......
......@@ -67,7 +67,7 @@ public:
bool isClosureCall() const { return m_isClosureCall; }
protected:
virtual void observeZeroRefCount();
virtual void observeZeroRefCount() OVERRIDE;
virtual void markRequiredObjectsInternal(SlotVisitor&);
......@@ -88,7 +88,7 @@ public:
virtual ~MarkingGCAwareJITStubRoutineWithOneObject();
protected:
virtual void markRequiredObjectsInternal(SlotVisitor&);
virtual void markRequiredObjectsInternal(SlotVisitor&) OVERRIDE;
private:
WriteBarrier<JSCell> m_object;
......
......@@ -195,16 +195,16 @@ class DirectJITCode : public JITCode {
public:
DirectJITCode(JITType);
DirectJITCode(const CodeRef, JITType);
~DirectJITCode();
virtual ~DirectJITCode();
void initializeCodeRef(CodeRef ref);
CodePtr addressForCall();
void* executableAddressAtOffset(size_t offset);
void* dataAddressAtOffset(size_t offset);
unsigned offsetOf(void* pointerIntoCode);
size_t size();
bool contains(void*);
virtual CodePtr addressForCall() OVERRIDE;
virtual void* executableAddressAtOffset(size_t offset) OVERRIDE;
virtual void* dataAddressAtOffset(size_t offset) OVERRIDE;
virtual unsigned offsetOf(void* pointerIntoCode) OVERRIDE;
virtual size_t size() OVERRIDE;
virtual bool contains(void*) OVERRIDE;
private:
CodeRef m_ref;
......
......@@ -375,7 +375,8 @@ public:
: m_factory(factory)
{
}
JSValue operator()(ExecState* exec)
virtual JSValue operator()(ExecState* exec) OVERRIDE
{
return m_factory(exec);
}
......@@ -392,7 +393,8 @@ public:
: m_factory(factory), m_callee(callee)
{
}
JSValue operator()(ExecState* exec)
virtual JSValue operator()(ExecState* exec) OVERRIDE
{
return m_factory(exec, m_callee);
}
......
......@@ -46,8 +46,8 @@ public:
static PassRefPtr<JITToDFGDeferredCompilationCallback> create();
virtual void compilationDidBecomeReadyAsynchronously(CodeBlock*);
virtual void compilationDidComplete(CodeBlock*, CompilationResult);
virtual void compilationDidBecomeReadyAsynchronously(CodeBlock*) OVERRIDE;
virtual void compilationDidComplete(CodeBlock*, CompilationResult) OVERRIDE;
};
} // namespace JSC
......
......@@ -65,7 +65,7 @@ public:
void correctLabels(LinkBuffer&);
protected:
void fireInternal();
virtual void fireInternal() OVERRIDE;
private:
uintptr_t m_source;
......
This diff is collapsed.
......@@ -39,17 +39,17 @@ protected:
public:
JS_EXPORT_PRIVATE static PassRefPtr<DataView> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
virtual unsigned byteLength() const
virtual unsigned byteLength() const OVERRIDE
{
return m_byteLength;
}
virtual TypedArrayType getType() const
virtual TypedArrayType getType() const OVERRIDE
{
return TypeDataView;
}
virtual JSArrayBufferView* wrap(ExecState*, JSGlobalObject*);
virtual JSArrayBufferView* wrap(ExecState*, JSGlobalObject*) OVERRIDE;
template<typename T>
T get(unsigned offset, bool littleEndian, bool* status = 0)
......
......@@ -80,11 +80,11 @@ public:
DefaultGCActivityCallback(Heap*);
virtual void didAllocate(size_t);
virtual void willCollect();
virtual void cancel();
virtual void didAllocate(size_t) OVERRIDE;
virtual void willCollect() OVERRIDE;
virtual void cancel() OVERRIDE;
virtual void doWork();
virtual void doWork() OVERRIDE;
#if USE(CF)
protected:
......
......@@ -72,7 +72,7 @@ public:
return m_length;
}
virtual unsigned byteLength() const
virtual unsigned byteLength() const OVERRIDE
{
return length() * sizeof(typename Adaptor::Type);
}
......@@ -101,12 +101,12 @@ public:
PassRefPtr<GenericTypedArrayView> subarray(int start) const;
PassRefPtr<GenericTypedArrayView> subarray(int start, int end) const;
virtual TypedArrayType getType() const
virtual TypedArrayType getType() const OVERRIDE
{
return Adaptor::typeValue;
}
virtual JSArrayBufferView* wrap(ExecState*, JSGlobalObject*);
virtual JSArrayBufferView* wrap(ExecState*, JSGlobalObject*) OVERRIDE;