mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	LibJS/Bytecode: Leave GlobalDeclarationInstantiation in C++
Don't try to implement this AO in bytecode. Instead, the bytecode Interpreter class now has a run() API with the same inputs as the AST interpreter. It sets up the necessary environments etc, including invoking the GlobalDeclarationInstantiation AO.
This commit is contained in:
		
							parent
							
								
									32d9c8e3ca
								
							
						
					
					
						commit
						d063f35afd
					
				
					 12 changed files with 172 additions and 284 deletions
				
			
		|  | @ -246,6 +246,7 @@ public: | |||
| 
 | ||||
|     // Do not call this method unless you are sure this is the only and first module to be loaded in this vm.
 | ||||
|     ThrowCompletionOr<void> link_and_eval_module(Badge<Interpreter>, SourceTextModule& module); | ||||
|     ThrowCompletionOr<void> link_and_eval_module(Badge<Bytecode::Interpreter>, SourceTextModule& module); | ||||
| 
 | ||||
|     ScriptOrModule get_active_script_or_module() const; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling