Changeset 169092 in webkit
- Timestamp:
- May 19, 2014, 6:53:56 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
PerformanceTests/SunSpider/ChangeLog (modified) (1 diff)
-
PerformanceTests/SunSpider/profiler-test.yaml (modified) (2 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/assembler/MacroAssembler.h (modified) (4 diffs)
-
Source/JavaScriptCore/assembler/MacroAssemblerARM64.h (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/run-jsc-stress-tests (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/SunSpider/ChangeLog
r165676 r169092 1 2014-05-19 Filip Pizlo <fpizlo@apple.com> 2 3 Take care of some ARM64 test failures 4 https://bugs.webkit.org/show_bug.cgi?id=133090 5 6 Reviewed by Geoffrey Garen. 7 8 * profiler-test.yaml: Skip these on not-x86. 9 1 10 2014-03-14 Maciej Stachowiak <mjs@apple.com> 2 11 -
trunk/PerformanceTests/SunSpider/profiler-test.yaml
r155383 r169092 1 # Copyright (C) 2013 Apple Inc. All rights reserved.1 # Copyright (C) 2013, 2014 Apple Inc. All rights reserved. 2 2 # 3 3 # Redistribution and use in source and binary forms, with or without … … 26 26 27 27 - path: tests/sunspider-1.0 28 cmd: runProfiler 28 cmd: | 29 if $architecture =~ /x86/ 30 runProfiler 31 else 32 skip 33 end -
trunk/Source/JavaScriptCore/ChangeLog
r169040 r169092 1 2014-05-19 Filip Pizlo <fpizlo@apple.com> 2 3 Take care of some ARM64 test failures 4 https://bugs.webkit.org/show_bug.cgi?id=133090 5 6 Reviewed by Geoffrey Garen. 7 8 Constant blinding on ARM64 cannot use the scratch register. 9 10 * assembler/MacroAssembler.h: 11 (JSC::MacroAssembler::convertInt32ToDouble): 12 (JSC::MacroAssembler::branchPtr): 13 (JSC::MacroAssembler::storePtr): 14 (JSC::MacroAssembler::store64): 15 * assembler/MacroAssemblerARM64.h: 16 (JSC::MacroAssemblerARM64::scratchRegisterForBlinding): 17 1 18 2014-05-19 Tanay C <tanay.c@samsung.com> 2 19 -
trunk/Source/JavaScriptCore/assembler/MacroAssembler.h
r167557 r169092 1141 1141 void convertInt32ToDouble(Imm32 imm, FPRegisterID dest) 1142 1142 { 1143 if (shouldBlind(imm) ) {1143 if (shouldBlind(imm) && haveScratchRegisterForBlinding()) { 1144 1144 RegisterID scratchRegister = scratchRegisterForBlinding(); 1145 1145 loadXorBlindedConstant(xorBlindConstant(imm), scratchRegister); … … 1177 1177 Jump branchPtr(RelationalCondition cond, RegisterID left, ImmPtr right) 1178 1178 { 1179 if (shouldBlind(right) ) {1179 if (shouldBlind(right) && haveScratchRegisterForBlinding()) { 1180 1180 RegisterID scratchRegister = scratchRegisterForBlinding(); 1181 1181 loadRotationBlindedConstant(rotationBlindConstant(right), scratchRegister); … … 1187 1187 void storePtr(ImmPtr imm, Address dest) 1188 1188 { 1189 if (shouldBlind(imm) ) {1189 if (shouldBlind(imm) && haveScratchRegisterForBlinding()) { 1190 1190 RegisterID scratchRegister = scratchRegisterForBlinding(); 1191 1191 loadRotationBlindedConstant(rotationBlindConstant(imm), scratchRegister); … … 1197 1197 void store64(Imm64 imm, Address dest) 1198 1198 { 1199 if (shouldBlind(imm) ) {1199 if (shouldBlind(imm) && haveScratchRegisterForBlinding()) { 1200 1200 RegisterID scratchRegister = scratchRegisterForBlinding(); 1201 1201 loadRotationBlindedConstant(rotationBlindConstant(imm), scratchRegister); -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM64.h
r168776 r169092 2409 2409 } 2410 2410 2411 RegisterID scratchRegisterForBlinding() { return getCachedDataTempRegisterIDAndInvalidate(); } 2411 RegisterID scratchRegisterForBlinding() 2412 { 2413 // We *do not* have a scratch register for blinding. 2414 RELEASE_ASSERT_NOT_REACHED(); 2415 return getCachedDataTempRegisterIDAndInvalidate(); 2416 } 2412 2417 2413 2418 static bool canJumpReplacePatchableBranchPtrWithPatch() { return false; } -
trunk/Tools/ChangeLog
r169088 r169092 1 2014-05-19 Filip Pizlo <fpizlo@apple.com> 2 3 Take care of some ARM64 test failures 4 https://bugs.webkit.org/show_bug.cgi?id=133090 5 6 Reviewed by Geoffrey Garen. 7 8 * Scripts/run-jsc-stress-tests: Make it easier to conditionally skip things. 9 1 10 2014-05-19 David Kilzer <ddkilzer@apple.com> 2 11 -
trunk/Tools/Scripts/run-jsc-stress-tests
r168083 r169092 177 177 end 178 178 179 # Try to determine architecture. Return nil on failure. 180 def machOArchitectureCode 181 otoolLines = `otool -aSfh #{Shellwords.shellescape($jscPath.to_s)}`.split("\n") 182 otoolLines.each_with_index { 183 | value, index | 184 if value =~ /magic/ and value =~ /cputype/ 185 return otoolLines[index + 1].split[1].to_i 186 end 187 } 188 $stderr.puts "Warning: unable to determine architecture." 189 nil 190 end 191 192 def determineArchitecture 193 code = machOArchitectureCode 194 return nil unless code 195 is64BitFlag = 0x01000000 196 case code 197 when 7 198 "x86" 199 when 7 | is64BitFlag 200 "x86-64" 201 when 12 202 "arm" 203 when 12 | is64BitFlag 204 "arm64" 205 else 206 $stderr.puts "Warning: unable to determine architecture from code: #{code}" 207 nil 208 end 209 end 210 211 $architecture = determineArchitecture 212 179 213 $numFailures = 0 180 214 … … 479 513 480 514 def addRunCommand(kind, command, outputHandler, errorHandler) 515 $didAddRunCommand = true 481 516 plan = Plan.new($benchmarkDirectory, command, baseOutputName(kind), outputHandler, errorHandler) 482 517 if $numProcessors > 1 and $runCommandOptions[:isSlow] … … 491 526 # returns false, in which case you're supposed to add your own run commands. 492 527 def parseRunCommands 493 didRun = false 528 oldDidAddRunCommand = $didAddRunCommand 529 $didAddRunCommand = false 494 530 495 531 Dir.chdir($outputDir) { … … 507 543 next unless doesMatch 508 544 eval $~.post_match 509 didRun = true510 545 } 511 546 } 512 547 } 513 548 514 didRun 549 result = $didAddRunCommand 550 $didAddRunCommand = result or oldDidAddRunCommand 551 result 515 552 end 516 553 … … 798 835 799 836 def skip 837 $didAddRunCommand = true 800 838 puts "Skipping #{$collectionName}/#{$benchmark}" 801 839 end
Note:
See TracChangeset
for help on using the changeset viewer.