Changeset 207542 in webkit
- Timestamp:
- Oct 19, 2016 10:18:27 AM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSClassRef.cpp
r197467 r207542 175 175 } 176 176 177 /*!178 // Doc here in case we make this public. (Hopefully we won't.)179 @function180 @abstract Returns the prototype that will be used when constructing an object with a given class.181 @param ctx The execution context to use.182 @param jsClass A JSClass whose prototype you want to get.183 @result The JSObject prototype that was automatically generated for jsClass, or NULL if no prototype was automatically generated. This is the prototype that will be used when constructing an object using jsClass.184 */185 177 JSObject* OpaqueJSClass::prototype(ExecState* exec) 186 178 { -
trunk/Source/JavaScriptCore/API/JSContext.h
r191230 r207542 126 126 127 127 /*! 128 @methodgroup Global Properties 129 */ 128 @functiongroup Global Properties 129 */ 130 130 131 /*! 131 132 @property … … 198 199 199 200 /*! 200 method201 @method 201 202 @abstract Get a particular property on the global object. 202 @param key203 203 @result The JSValue for the global object's property. 204 204 */ … … 206 206 207 207 /*! 208 method208 @method 209 209 @abstract Set a particular property on the global object. 210 @param object211 @param key212 210 */ 213 211 - (void)setObject:(id)object forKeyedSubscript:(NSObject <NSCopying> *)key; … … 224 222 @method 225 223 @abstract Create a JSContext, wrapping its C API counterpart. 226 @param jsGlobalContextRef227 224 @result The JSContext equivalent of the provided JSGlobalContextRef. 228 225 */ -
trunk/Source/JavaScriptCore/API/JSContextRefInternal.h
r170589 r207542 51 51 @param runLoop The new value of the setting for the context. 52 52 */ 53 JS_EXPORT void JSGlobalContextSetDebuggerRunLoop(JSGlobalContextRef ctx, CFRunLoopRef ) CF_AVAILABLE(10_10, 8_0);53 JS_EXPORT void JSGlobalContextSetDebuggerRunLoop(JSGlobalContextRef ctx, CFRunLoopRef runLoop) CF_AVAILABLE(10_10, 8_0); 54 54 #endif 55 55 -
trunk/Source/JavaScriptCore/API/JSContextRefPrivate.h
r170589 r207542 86 86 any scripts. 87 87 */ 88 JS_EXPORT void JSContextGroupSetExecutionTimeLimit(JSContextGroupRef , double limit, JSShouldTerminateCallback, void* context) CF_AVAILABLE(10_6, 7_0);88 JS_EXPORT void JSContextGroupSetExecutionTimeLimit(JSContextGroupRef group, double limit, JSShouldTerminateCallback callback, void* context) CF_AVAILABLE(10_6, 7_0); 89 89 90 90 /*! … … 93 93 @param group The JavaScript context group that the time limit is cleared on. 94 94 */ 95 JS_EXPORT void JSContextGroupClearExecutionTimeLimit(JSContextGroupRef ) CF_AVAILABLE(10_6, 7_0);95 JS_EXPORT void JSContextGroupClearExecutionTimeLimit(JSContextGroupRef group) CF_AVAILABLE(10_6, 7_0); 96 96 97 97 /*! … … 125 125 @abstract Sets the include native call stack when reporting exceptions setting for a context. 126 126 @param ctx The JSGlobalContext that you want to change. 127 @param include NativeCallStack The new value of the setting for the context.127 @param includesNativeCallStack The new value of the setting for the context. 128 128 */ 129 129 JS_EXPORT void JSGlobalContextSetIncludesNativeCallStackWhenReportingExceptions(JSGlobalContextRef ctx, bool includesNativeCallStack) CF_AVAILABLE(10_10, 8_0); -
trunk/Source/JavaScriptCore/API/JSManagedValue.h
r191230 r207542 55 55 @method 56 56 @abstract Create a JSManagedValue from a JSValue. 57 @param value58 57 @result The new JSManagedValue. 59 58 */ … … 64 63 @method 65 64 @abstract Create a JSManagedValue. 66 @param value67 65 @result The new JSManagedValue. 68 66 */ -
trunk/Source/JavaScriptCore/API/JSObjectRef.h
r165676 r207542 187 187 @param ctx The execution context to use. 188 188 @param object The JSObject whose property names are being collected. 189 @param accumulatorA JavaScript property name accumulator in which to accumulate the names of object's properties.189 @param propertyNames A JavaScript property name accumulator in which to accumulate the names of object's properties. 190 190 @discussion If you named your function GetPropertyNames, you would declare it like this: 191 191 -
trunk/Source/JavaScriptCore/API/JSTypedArray.h
r197983 r207542 157 157 @function 158 158 @abstract Returns a pointer to the data buffer that serves as the backing store for a JavaScript Typed Array object. 159 @param bufferThe Array Buffer object whose internal backing store pointer to return.159 @param object The Array Buffer object whose internal backing store pointer to return. 160 160 @param exception A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception. 161 161 @result A pointer to the raw data buffer that serves as object's backing store or NULL if object is not an Array Buffer object. -
trunk/Source/JavaScriptCore/API/JSValue.h
r191230 r207542 69 69 @method 70 70 @abstract Create a JavaScript value from a BOOL primitive. 71 @param value72 71 @param context The JSContext in which the resulting JSValue will be created. 73 72 @result The new JSValue representing the equivalent boolean value. … … 78 77 @method 79 78 @abstract Create a JavaScript value from a double primitive. 80 @param value81 79 @param context The JSContext in which the resulting JSValue will be created. 82 80 @result The new JSValue representing the equivalent boolean value. … … 87 85 @method 88 86 @abstract Create a JavaScript value from an <code>int32_t</code> primitive. 89 @param value90 87 @param context The JSContext in which the resulting JSValue will be created. 91 88 @result The new JSValue representing the equivalent boolean value. … … 96 93 @method 97 94 @abstract Create a JavaScript value from a <code>uint32_t</code> primitive. 98 @param value99 95 @param context The JSContext in which the resulting JSValue will be created. 100 96 @result The new JSValue representing the equivalent boolean value. … … 365 361 366 362 /*! 367 @methodgroup Checking JavaScript Types 368 */ 369 /*! 370 @method 363 @functiongroup Checking JavaScript Types 364 */ 365 366 /*! 367 @property 371 368 @abstract Check if a JSValue corresponds to the JavaScript value <code>undefined</code>. 372 369 */ … … 374 371 375 372 /*! 376 @ method373 @property 377 374 @abstract Check if a JSValue corresponds to the JavaScript value <code>null</code>. 378 375 */ … … 380 377 381 378 /*! 382 @ method379 @property 383 380 @abstract Check if a JSValue is a boolean. 384 381 */ … … 386 383 387 384 /*! 388 @ method385 @property 389 386 @abstract Check if a JSValue is a number. 390 387 @discussion In JavaScript, there is no differentiation between types of numbers. … … 395 392 396 393 /*! 397 @ method394 @property 398 395 @abstract Check if a JSValue is a string. 399 396 */ … … 401 398 402 399 /*! 403 @ method400 @property 404 401 @abstract Check if a JSValue is an object. 405 402 */ … … 407 404 408 405 /*! 409 @ method406 @property 410 407 @abstract Check if a JSValue is an array. 411 408 */ … … 413 410 414 411 /*! 415 @ method412 @property 416 413 @abstract Check if a JSValue is a date. 417 414 */ … … 593 590 @method 594 591 @abstract Creates a JSValue, wrapping its C API counterpart. 595 @param value596 @param context597 592 @result The Objective-C API equivalent of the specified JSValueRef. 598 593 */ -
trunk/Source/JavaScriptCore/API/JSValueRef.h
r197983 r207542 94 94 @result A value of type JSType that identifies value's type. 95 95 */ 96 JS_EXPORT JSType JSValueGetType(JSContextRef ctx, JSValueRef );96 JS_EXPORT JSType JSValueGetType(JSContextRef ctx, JSValueRef value); 97 97 98 98 /*! -
trunk/Source/JavaScriptCore/API/JSWeakObjectMapRefPrivate.h
r95901 r207542 65 65 @param object The user defined object to associate with the key. 66 66 */ 67 JS_EXPORT void JSWeakObjectMapSet(JSContextRef ctx, JSWeakObjectMapRef map, void* key, JSObjectRef );67 JS_EXPORT void JSWeakObjectMapSet(JSContextRef ctx, JSWeakObjectMapRef map, void* key, JSObjectRef object); 68 68 69 69 /*! -
trunk/Source/JavaScriptCore/ChangeLog
r207532 r207542 1 2016-10-19 Dan Bernstein <mitz@apple.com> 2 3 [Xcode] JavaScriptCore fails to build when CLANG_WARN_DOCUMENTATION_COMMENTS is enabled 4 https://bugs.webkit.org/show_bug.cgi?id=163642 5 6 Reviewed by Darin Adler. 7 8 * API/JSClassRef.cpp: Removed a bad headerdoc comment inside an implementation file. 9 * API/JSContext.h: Changed @methodgroup to @functiongroup, because the compiler requires the 10 former to be followed by a method (and we have a property), but not the latter. Changed 11 a couple of instances of “method” to “@method”. Removed empty @param entries. 12 * API/JSContextRefInternal.h: Named a parameter referenced in a @param entry. 13 * API/JSContextRefPrivate.h: Ditto. 14 * API/JSManagedValue.h: Removed empty @param entries. 15 * API/JSObjectRef.h: Corrected parameter name in @param entry. 16 * API/JSTypedArray.h: Ditto. 17 * API/JSValue.h: Removed empty @param entries, changed @methodgroup to @functiongroup, and 18 changed @method to @property where appropriate. Removed empty @param entries. 19 * API/JSValueRef.h: Named a parameter referenced in a @param entry. 20 * API/JSWeakObjectMapRefPrivate.h: Ditto. 21 * Configurations/Base.xcconfig: Enabled CLANG_WARN_DOCUMENTATION_COMMENTS. Made the compiler 22 treat the icu headers as system headers, to stop it from emitting warnings about headers 23 we don’t want to change. 24 * Configurations/ToolExecutable.xcconfig: Made the compiler treat the icu headers as system 25 headers. 26 1 27 2016-10-19 Csaba Osztrogonác <ossy@webkit.org> 2 28 -
trunk/Source/JavaScriptCore/Configurations/Base.xcconfig
r205528 r207542 78 78 GCC_WARN_UNUSED_FUNCTION = YES; 79 79 GCC_WARN_UNUSED_VARIABLE = YES; 80 CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 80 81 PREBINDING = NO; 81 82 WARNING_CFLAGS = -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough; … … 87 88 LLVM_SYSTEM_HEADER_PATH[sdk=iphoneos*] = /usr/local/include; 88 89 89 HEADER_SEARCH_PATHS = . icu$(LLVM_LOCAL_HEADER_PATH) "${BUILT_PRODUCTS_DIR}/ExtraIncludesForLocalLLVMBuild" $(LLVM_SYSTEM_HEADER_PATH) "${BUILT_PRODUCTS_DIR}/usr/local/include" $(HEADER_SEARCH_PATHS);90 HEADER_SEARCH_PATHS = . $(LLVM_LOCAL_HEADER_PATH) "${BUILT_PRODUCTS_DIR}/ExtraIncludesForLocalLLVMBuild" $(LLVM_SYSTEM_HEADER_PATH) "${BUILT_PRODUCTS_DIR}/usr/local/include" $(HEADER_SEARCH_PATHS); 90 91 91 92 TARGET_MAC_OS_X_VERSION_MAJOR = $(TARGET_MAC_OS_X_VERSION_MAJOR$(MACOSX_DEPLOYMENT_TARGET:suffix:identifier)); … … 138 139 SDKROOT = macosx.internal; 139 140 140 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) ;141 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) ;141 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) -isystem icu; 142 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) -isystem icu; 142 143 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS); 143 144 -
trunk/Source/JavaScriptCore/Configurations/ToolExecutable.xcconfig
r207453 r207542 48 48 CLANG_ENABLE_OBJC_ARC_arm64 = YES; 49 49 50 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) ;51 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) ;50 OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS) -isystem icu; 51 OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS) -isystem icu; 52 52 OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS); 53 53
Note: See TracChangeset
for help on using the changeset viewer.