[cleanup] Remove unused runtime error functions/messages
R=gsathya@chromium.org Review-Url: https://codereview.chromium.org/2612373002 Cr-Commit-Position: refs/heads/master@{#42103}
This commit is contained in:
parent
a40b7172fe
commit
b54c825fd1
@ -268,7 +268,6 @@ class ErrorUtils : public AllStatic {
|
||||
"ArrayBuffer subclass returned this from species constructor") \
|
||||
T(ArrayFunctionsOnFrozen, "Cannot modify frozen array elements") \
|
||||
T(ArrayFunctionsOnSealed, "Cannot add/remove sealed array elements") \
|
||||
T(ArrayNotSubclassable, "Subclassing Arrays is not currently supported.") \
|
||||
T(CalledNonCallable, "% is not a function") \
|
||||
T(CalledOnNonObject, "% called on non-object") \
|
||||
T(CalledOnNullOrUndefined, "% called on null or undefined") \
|
||||
@ -486,7 +485,6 @@ class ErrorUtils : public AllStatic {
|
||||
T(VarRedeclaration, "Identifier '%' has already been declared") \
|
||||
T(WrongArgs, "%: Arguments list has wrong type") \
|
||||
/* ReferenceError */ \
|
||||
T(NonMethod, "'super' is referenced from non-method") \
|
||||
T(NotDefined, "% is not defined") \
|
||||
T(UnsupportedSuper, "Unsupported reference to 'super'") \
|
||||
/* RangeError */ \
|
||||
|
@ -20,13 +20,6 @@ namespace v8 {
|
||||
namespace internal {
|
||||
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowNonMethodError) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(0, args.length());
|
||||
THROW_NEW_ERROR_RETURN_FAILURE(
|
||||
isolate, NewReferenceError(MessageTemplate::kNonMethod));
|
||||
}
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowUnsupportedSuperError) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(0, args.length());
|
||||
@ -45,13 +38,6 @@ RUNTIME_FUNCTION(Runtime_ThrowConstructorNonCallableError) {
|
||||
}
|
||||
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowArrayNotSubclassableError) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(0, args.length());
|
||||
THROW_NEW_ERROR_RETURN_FAILURE(
|
||||
isolate, NewTypeError(MessageTemplate::kArrayNotSubclassable));
|
||||
}
|
||||
|
||||
RUNTIME_FUNCTION(Runtime_ThrowStaticPrototypeError) {
|
||||
HandleScope scope(isolate);
|
||||
DCHECK_EQ(0, args.length());
|
||||
|
@ -75,10 +75,8 @@ namespace internal {
|
||||
F(AtomicsNumWaitersForTesting, 2, 1)
|
||||
|
||||
#define FOR_EACH_INTRINSIC_CLASSES(F) \
|
||||
F(ThrowNonMethodError, 0, 1) \
|
||||
F(ThrowUnsupportedSuperError, 0, 1) \
|
||||
F(ThrowConstructorNonCallableError, 1, 1) \
|
||||
F(ThrowArrayNotSubclassableError, 0, 1) \
|
||||
F(ThrowStaticPrototypeError, 0, 1) \
|
||||
F(ThrowNotSuperConstructor, 2, 1) \
|
||||
F(HomeObjectSymbol, 0, 1) \
|
||||
|
@ -88,7 +88,7 @@ bytecodes: [
|
||||
B(TestEqualStrict), R(12), U8(20),
|
||||
B(JumpIfFalse), U8(4),
|
||||
B(Jump), U8(18),
|
||||
B(Wide), B(LdaSmi), U16(130),
|
||||
B(Wide), B(LdaSmi), U16(129),
|
||||
B(Star), R(12),
|
||||
B(LdaConstant), U8(9),
|
||||
B(Star), R(13),
|
||||
@ -233,7 +233,7 @@ bytecodes: [
|
||||
B(TestEqualStrict), R(13), U8(20),
|
||||
B(JumpIfFalse), U8(4),
|
||||
B(Jump), U8(18),
|
||||
B(Wide), B(LdaSmi), U16(130),
|
||||
B(Wide), B(LdaSmi), U16(129),
|
||||
B(Star), R(13),
|
||||
B(LdaConstant), U8(9),
|
||||
B(Star), R(14),
|
||||
@ -391,7 +391,7 @@ bytecodes: [
|
||||
B(TestEqualStrict), R(12), U8(22),
|
||||
B(JumpIfFalse), U8(4),
|
||||
B(Jump), U8(18),
|
||||
B(Wide), B(LdaSmi), U16(130),
|
||||
B(Wide), B(LdaSmi), U16(129),
|
||||
B(Star), R(12),
|
||||
B(LdaConstant), U8(9),
|
||||
B(Star), R(13),
|
||||
@ -539,7 +539,7 @@ bytecodes: [
|
||||
B(TestEqualStrict), R(11), U8(24),
|
||||
B(JumpIfFalse), U8(4),
|
||||
B(Jump), U8(18),
|
||||
B(Wide), B(LdaSmi), U16(130),
|
||||
B(Wide), B(LdaSmi), U16(129),
|
||||
B(Star), R(11),
|
||||
B(LdaConstant), U8(11),
|
||||
B(Star), R(12),
|
||||
|
@ -491,7 +491,7 @@ bytecodes: [
|
||||
B(TestEqualStrict), R(10), U8(20),
|
||||
B(JumpIfFalse), U8(4),
|
||||
B(Jump), U8(18),
|
||||
B(Wide), B(LdaSmi), U16(130),
|
||||
B(Wide), B(LdaSmi), U16(129),
|
||||
B(Star), R(10),
|
||||
B(LdaConstant), U8(14),
|
||||
B(Star), R(11),
|
||||
|
Loading…
Reference in New Issue
Block a user