mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	LibGC+Everywhere: Factor out a LibGC from LibJS
Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
This commit is contained in:
		
							parent
							
								
									ce23efc5f6
								
							
						
					
					
						commit
						f87041bf3a
					
				
				
				Notes:
				
					github-actions[bot]
				
				2024-11-15 13:50:17 +00:00 
				
			
			Author: https://github.com/shannonbooth
Commit: f87041bf3a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2345
			
					 1722 changed files with 9939 additions and 9906 deletions
				
			
		|  | @ -131,7 +131,7 @@ inline JS::Completion clean_up_on_return(JS::Realm& stored_realm, JS::Realm& rel | |||
| 
 | ||||
| // https://webidl.spec.whatwg.org/#call-a-user-objects-operation
 | ||||
| // https://whatpr.org/webidl/1437.html#call-a-user-objects-operation
 | ||||
| JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String const& operation_name, Optional<JS::Value> this_argument, JS::MarkedVector<JS::Value> args) | ||||
| JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String const& operation_name, Optional<JS::Value> this_argument, GC::MarkedVector<JS::Value> args) | ||||
| { | ||||
|     // 1. Let completion be an uninitialized variable.
 | ||||
|     JS::Completion completion; | ||||
|  | @ -207,7 +207,7 @@ JS::Completion call_user_object_operation(WebIDL::CallbackType& callback, String | |||
| 
 | ||||
| // https://webidl.spec.whatwg.org/#invoke-a-callback-function
 | ||||
| // https://whatpr.org/webidl/1437.html#invoke-a-callback-function
 | ||||
| JS::Completion invoke_callback(WebIDL::CallbackType& callback, Optional<JS::Value> this_argument, JS::MarkedVector<JS::Value> args) | ||||
| JS::Completion invoke_callback(WebIDL::CallbackType& callback, Optional<JS::Value> this_argument, GC::MarkedVector<JS::Value> args) | ||||
| { | ||||
|     // 1. Let completion be an uninitialized variable.
 | ||||
|     JS::Completion completion; | ||||
|  | @ -261,7 +261,7 @@ JS::Completion invoke_callback(WebIDL::CallbackType& callback, Optional<JS::Valu | |||
|     return clean_up_on_return(stored_realm, relevant_realm, completion, callback.operation_returns_promise); | ||||
| } | ||||
| 
 | ||||
| JS::Completion construct(WebIDL::CallbackType& callback, JS::MarkedVector<JS::Value> args) | ||||
| JS::Completion construct(WebIDL::CallbackType& callback, GC::MarkedVector<JS::Value> args) | ||||
| { | ||||
|     // 1. Let completion be an uninitialized variable.
 | ||||
|     JS::Completion completion; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Shannon Booth
						Shannon Booth