Changeset 227898 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- Jan 31, 2018, 2:18:28 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r226338 r227898 342 342 static EncodedJSValue JSC_HOST_CALL functionHeapCapacity(ExecState*); 343 343 static EncodedJSValue JSC_HOST_CALL functionFlashHeapAccess(ExecState*); 344 static EncodedJSValue JSC_HOST_CALL functionDisableRichSourceInfo(ExecState*); 344 345 345 346 struct Script { … … 597 598 addFunction(vm, "heapCapacity", functionHeapCapacity, 0); 598 599 addFunction(vm, "flashHeapAccess", functionFlashHeapAccess, 0); 600 601 addFunction(vm, "disableRichSourceInfo", functionDisableRichSourceInfo, 0); 599 602 } 600 603 … … 616 619 }; 617 620 621 static bool supportsRichSourceInfo = true; 622 static bool shellSupportsRichSourceInfo(const JSGlobalObject*) 623 { 624 return supportsRichSourceInfo; 625 } 626 618 627 const ClassInfo GlobalObject::s_info = { "global", &JSGlobalObject::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(GlobalObject) }; 619 628 const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { 620 &s upportsRichSourceInfo,629 &shellSupportsRichSourceInfo, 621 630 &shouldInterruptScript, 622 631 &javaScriptRuntimeFlags, … … 1734 1743 } 1735 1744 1745 EncodedJSValue JSC_HOST_CALL functionDisableRichSourceInfo(ExecState*) 1746 { 1747 supportsRichSourceInfo = false; 1748 return JSValue::encode(jsUndefined()); 1749 } 1750 1736 1751 template<typename ValueType> 1737 1752 typename std::enable_if<!std::is_fundamental<ValueType>::value>::type addOption(VM&, JSObject*, Identifier, ValueType) { }
Note:
See TracChangeset
for help on using the changeset viewer.