Switch int8_t to GPRReg in StructureStubInfo because sizeof(GPRReg) == sizeof(int8_t)
[WebKit-https.git] / Source / JavaScriptCore / bytecode / PolymorphicAccess.cpp
index fc44d4e..b68089d 100644 (file)
@@ -382,7 +382,7 @@ AccessGenerationResult PolymorphicAccess::regenerate(
     state.ident = &ident;
     
     state.baseGPR = stubInfo.baseGPR();
-    state.thisGPR = static_cast<GPRReg>(stubInfo.patch.thisGPR);
+    state.thisGPR = stubInfo.patch.thisGPR;
     state.valueRegs = stubInfo.valueRegs();
 
     ScratchRegisterAllocator allocator(stubInfo.patch.usedRegisters);
@@ -392,7 +392,7 @@ AccessGenerationResult PolymorphicAccess::regenerate(
         allocator.lock(state.thisGPR);
     allocator.lock(state.valueRegs);
 #if USE(JSVALUE32_64)
-    allocator.lock(static_cast<GPRReg>(stubInfo.patch.baseTagGPR));
+    allocator.lock(stubInfo.patch.baseTagGPR);
 #endif
 
     state.scratchGPR = allocator.allocateScratchGPR();