mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	LibJS: Always allocate ExecutionContext objects on the malloc heap
Instead of allocating these in a mixture of ways, we now always put them on the malloc heap, and keep an intrusive linked list of them that we can iterate for GC marking purposes.
This commit is contained in:
		
							parent
							
								
									845da3901d
								
							
						
					
					
						commit
						3dc5f467a8
					
				
					 38 changed files with 251 additions and 217 deletions
				
			
		|  | @ -46,7 +46,7 @@ void NativeExecutable::run(VM& vm, size_t entry_point) const | |||
|     typedef void (*JITCode)(VM&, Value* registers, Value* locals, FlatPtr entry_point_address, ExecutionContext&); | ||||
|     ((JITCode)m_code)(vm, | ||||
|         vm.bytecode_interpreter().registers().data(), | ||||
|         vm.running_execution_context().local_variables.data(), | ||||
|         vm.running_execution_context().locals.data(), | ||||
|         entry_point_address, | ||||
|         vm.running_execution_context()); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling