Bug 1607175 - Part 1: Remove obsolete class-constructor check when retrieving the function name. r=tcampbell
authorAndré Bargull <andre.bargull@gmail.com>
Mon, 06 Jan 2020 14:54:35 +0000
changeset 508956 83c4915286181d1ceed0a65d5ac1ee50c9d71907
parent 508955 4a7523542f8f2a2e7a69ad41ea0f8040debb2da5
child 508957 3c08fe80b2e49c4aacdeb250c2cd78e2fa98891e
push id104331
push userapavel@mozilla.com
push dateMon, 06 Jan 2020 17:34:52 +0000
treeherderautoland@3c08fe80b2e4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstcampbell
bugs1607175, 1574180
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1607175 - Part 1: Remove obsolete class-constructor check when retrieving the function name. r=tcampbell This check is no longer necessary since bug 1574180. Differential Revision: https://phabricator.services.mozilla.com/D58759
js/src/jit/CodeGenerator.cpp
--- a/js/src/jit/CodeGenerator.cpp
+++ b/js/src/jit/CodeGenerator.cpp
@@ -13751,21 +13751,16 @@ static void BoundFunctionName(MacroAssem
   masm.branchTest32(Assembler::NonZero, targetFlags,
                     Imm32(FunctionFlags::HAS_GUESSED_ATOM), &guessed);
   masm.bind(&loadName);
   masm.loadPtr(Address(target, JSFunction::offsetOfAtom()), output);
   masm.branchTestPtr(Assembler::NonZero, output, output, &hasName);
   {
     masm.bind(&guessed);
 
-    // Unnamed class expression don't have a name property. To avoid
-    // looking it up from the prototype chain, we take the slow path here.
-    masm.branchFunctionKind(Assembler::Equal, FunctionFlags::ClassConstructor,
-                            target, output, slowPath);
-
     // An absent name property defaults to the empty string.
     masm.movePtr(ImmGCPtr(names.empty), output);
   }
   masm.bind(&hasName);
 }
 
 static void BoundFunctionFlags(MacroAssembler& masm, Register targetFlags,
                                Register bound, Register output) {