mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	LibJS/JIT: Support the NewString bytecode op
This necessitated making the JIT::Compiler aware of the current Bytecode::Executable, since that's where all the string literals are held, but that seems like a good thing.
This commit is contained in:
		
							parent
							
								
									efe58ebf2f
								
							
						
					
					
						commit
						c2fe7af095
					
				
					 3 changed files with 30 additions and 3 deletions
				
			
		|  | @ -157,6 +157,8 @@ public: | |||
|     ThrowCompletionOr<void> execute_impl(Bytecode::Interpreter&) const; | ||||
|     DeprecatedString to_deprecated_string_impl(Bytecode::Executable const&) const; | ||||
| 
 | ||||
|     StringTableIndex index() const { return m_string; } | ||||
| 
 | ||||
| private: | ||||
|     StringTableIndex m_string; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling