Changeset 165073 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Mar 4, 2014, 1:30:59 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r164970 r165073 26 26 #include "ButterflyInlines.h" 27 27 #include "BytecodeGenerator.h" 28 #include "CodeCache.h"29 28 #include "Completion.h" 30 29 #include "CopiedSpaceInlines.h" … … 242 241 static EncodedJSValue JSC_HOST_CALL functionFalse(ExecState*); 243 242 static EncodedJSValue JSC_HOST_CALL functionEffectful42(ExecState*); 244 static EncodedJSValue JSC_HOST_CALL functionClearCodeCache(ExecState*);245 243 246 244 #if ENABLE(SAMPLING_FLAGS) … … 380 378 381 379 addFunction(vm, "effectful42", functionEffectful42, 0); 382 addFunction(vm, "clearCodeCache", functionClearCodeCache, 0);383 380 384 381 JSArray* array = constructEmptyArray(globalExec(), 0); … … 750 747 { 751 748 return JSValue::encode(jsNumber(42)); 752 }753 754 EncodedJSValue JSC_HOST_CALL functionClearCodeCache(ExecState* exec)755 {756 if (CodeCache* cache = exec->vm().codeCache())757 cache->clear();758 return JSValue::encode(jsUndefined());759 749 } 760 750
Note:
See TracChangeset
for help on using the changeset viewer.