Changeset 292193 in webkit for trunk/Source/JavaScriptCore/bytecompiler
- Timestamp:
- Mar 31, 2022, 6:25:02 PM (3 years ago)
- Location:
- trunk/Source/JavaScriptCore/bytecompiler
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r291779 r292193 4030 4030 } 4031 4031 4032 void BytecodeGenerator::emitThrowReferenceError( const String&message)4032 void BytecodeGenerator::emitThrowReferenceError(ASCIILiteral message) 4033 4033 { 4034 4034 emitThrowStaticError(ErrorTypeWithExtension::ReferenceError, Identifier::fromString(m_vm, message)); 4035 4035 } 4036 4036 4037 void BytecodeGenerator::emitThrowTypeError( const String&message)4037 void BytecodeGenerator::emitThrowTypeError(ASCIILiteral message) 4038 4038 { 4039 4039 emitThrowStaticError(ErrorTypeWithExtension::TypeError, Identifier::fromString(m_vm, message)); … … 4736 4736 } 4737 4737 4738 void BytecodeGenerator::emitRequireObjectCoercible(RegisterID* value, const String&error)4738 void BytecodeGenerator::emitRequireObjectCoercible(RegisterID* value, ASCIILiteral error) 4739 4739 { 4740 4740 Ref<Label> target = newLabel(); -
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r290768 r292193 902 902 RegisterID* emitIsEmpty(RegisterID* dst, RegisterID* src); 903 903 RegisterID* emitIsDerivedArray(RegisterID* dst, RegisterID* src) { return emitIsCellWithType(dst, src, DerivedArrayType); } 904 void emitRequireObjectCoercible(RegisterID* value, const String&error);904 void emitRequireObjectCoercible(RegisterID* value, ASCIILiteral error); 905 905 906 906 void emitIteratorOpen(RegisterID* iterator, RegisterID* nextOrIndex, RegisterID* symbolIterator, CallArguments& iterable, const ThrowableExpressionData*); … … 956 956 void emitThrowStaticError(ErrorTypeWithExtension, RegisterID*); 957 957 void emitThrowStaticError(ErrorTypeWithExtension, const Identifier& message); 958 void emitThrowReferenceError( const String&message);959 void emitThrowTypeError( const String&message);958 void emitThrowReferenceError(ASCIILiteral message); 959 void emitThrowTypeError(ASCIILiteral message); 960 960 void emitThrowTypeError(const Identifier& message); 961 961 void emitThrowRangeError(const Identifier& message); -
trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
r291779 r292193 87 87 // ------------------------------ ThrowableExpressionData -------------------------------- 88 88 89 RegisterID* ThrowableExpressionData::emitThrowReferenceError(BytecodeGenerator& generator, const String&message, RegisterID* dst)89 RegisterID* ThrowableExpressionData::emitThrowReferenceError(BytecodeGenerator& generator, ASCIILiteral message, RegisterID* dst) 90 90 { 91 91 generator.emitExpressionInfo(divot(), divotStart(), divotEnd());
Note:
See TracChangeset
for help on using the changeset viewer.