Changeset 213881 in webkit
- Timestamp:
- Mar 13, 2017 5:34:28 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r213876 r213881 1 2017-03-13 SKumarMetro <s.kumar@metrological.com> 2 3 JSC: fix compilation errors for MIPS 4 https://bugs.webkit.org/show_bug.cgi?id=168402 5 6 Reviewed by Mark Lam. 7 8 * assembler/MIPSAssembler.h: 9 (JSC::MIPSAssembler::fillNops): 10 Added. 11 * assembler/MacroAssemblerMIPS.h: 12 Added MacroAssemblerMIPS::numGPRs and MacroAssemblerMIPS::numFPRs . 13 * bytecode/InlineAccess.h: 14 (JSC::InlineAccess::sizeForPropertyAccess): 15 (JSC::InlineAccess::sizeForPropertyReplace): 16 (JSC::InlineAccess::sizeForLengthAccess): 17 Added MIPS cases. 18 1 19 2017-03-13 Filip Pizlo <fpizlo@apple.com> 2 20 -
trunk/Source/JavaScriptCore/assembler/MIPSAssembler.h
r213652 r213881 33 33 #include "AssemblerBuffer.h" 34 34 #include "JITCompilationEffort.h" 35 #include <limits.h> 35 36 #include <wtf/Assertions.h> 36 37 #include <wtf/SegmentedVector.h> … … 192 193 emitInst(0x00000000); 193 194 } 194 195 196 static void fillNops(void* base, size_t size, bool isCopyingToExecutableMemory) 197 { 198 UNUSED_PARAM(isCopyingToExecutableMemory); 199 RELEASE_ASSERT(!(size % sizeof(int32_t))); 200 201 int32_t* ptr = static_cast<int32_t*>(base); 202 const size_t num32s = size / sizeof(int32_t); 203 const int32_t insn = 0x00000000; 204 for (size_t i = 0; i < num32s; i++) 205 *ptr++ = insn; 206 } 207 195 208 void sync() 196 209 { -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.h
r213710 r213881 29 29 #if ENABLE(ASSEMBLER) && CPU(MIPS) 30 30 31 #include "MIPSAssembler.h" 31 32 #include "AbstractMacroAssembler.h" 32 #include "MIPSAssembler.h"33 33 34 34 namespace JSC { … … 37 37 public: 38 38 typedef MIPSRegisters::FPRegisterID FPRegisterID; 39 static const unsigned numGPRs = 32; 40 static const unsigned numFPRs = 32; 39 41 40 42 MacroAssemblerMIPS() -
trunk/Source/JavaScriptCore/bytecode/InlineAccess.h
r206525 r213881 56 56 return 52; 57 57 #endif 58 #elif CPU(MIPS) 59 return 72; 58 60 #else 59 61 #error "unsupported platform" … … 76 78 return 48; 77 79 #endif 80 #elif CPU(MIPS) 81 return 72; 78 82 #else 79 83 #error "unsupported platform" … … 99 103 size_t size = 32; 100 104 #endif 105 #elif CPU(MIPS) 106 size_t size = 56; 101 107 #else 102 108 #error "unsupported platform"
Note: See TracChangeset
for help on using the changeset viewer.