mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	LibJS: Use FlyString for identifiers
This makes variable and property lookups a lot faster since comparing two FlyStrings is O(1).
This commit is contained in:
		
							parent
							
								
									4f72f6b886
								
							
						
					
					
						commit
						cccbe43056
					
				
					 19 changed files with 67 additions and 57 deletions
				
			
		|  | @ -657,7 +657,7 @@ void MemberExpression::dump(int indent) const | |||
|     m_property->dump(indent + 1); | ||||
| } | ||||
| 
 | ||||
| String MemberExpression::computed_property_name(Interpreter& interpreter) const | ||||
| FlyString MemberExpression::computed_property_name(Interpreter& interpreter) const | ||||
| { | ||||
|     if (!is_computed()) { | ||||
|         ASSERT(m_property->is_identifier()); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling