Changeset 183962 in webkit
- Timestamp:
- May 7, 2015, 5:20:58 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/jsc.cpp (modified) (3 diffs)
-
Source/JavaScriptCore/tests/exceptionFuzz/3d-cube.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/exceptionFuzz/date-format-xparb.js (modified) (1 diff)
-
Source/JavaScriptCore/tests/exceptionFuzz/earley-boyer.js (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/Scripts/jsc-stress-test-helpers/js-exception-fuzz (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r183961 r183962 1 2015-05-07 Saam Barati <saambarati1@gmail.com> 2 3 exceptionFuzz tests should explicitly initialize the exceptionFuzz boolean in JavaScript code through a function in jsc.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=144753 5 6 Reviewed by Mark Lam. 7 8 This allows the BytecodeGenerator to freely emit startup code that "may" 9 throw exceptions without worrying that this startup code will trigger 10 the exceptionFuzz exception. The exceptionFuzz counter will only begin 11 ticking when the 'enableExceptionFuzz' function is explicitly called in 12 the exceptionFuzz tests. 13 14 * jsc.cpp: 15 (GlobalObject::finishCreation): 16 (functionEnableExceptionFuzz): 17 * tests/exceptionFuzz/3d-cube.js: 18 * tests/exceptionFuzz/date-format-xparb.js: 19 * tests/exceptionFuzz/earley-boyer.js: 20 1 21 2015-05-07 Andreas Kling <akling@apple.com> 2 22 -
trunk/Source/JavaScriptCore/jsc.cpp
r183872 r183962 479 479 static EncodedJSValue JSC_HOST_CALL functionDumpBasicBlockExecutionRanges(ExecState*); 480 480 static EncodedJSValue JSC_HOST_CALL functionHasBasicBlockExecuted(ExecState*); 481 static EncodedJSValue JSC_HOST_CALL functionEnableExceptionFuzz(ExecState*); 481 482 482 483 #if ENABLE(SAMPLING_FLAGS) … … 636 637 addFunction(vm, "dumpBasicBlockExecutionRanges", functionDumpBasicBlockExecutionRanges , 0); 637 638 addFunction(vm, "hasBasicBlockExecuted", functionHasBasicBlockExecuted, 2); 639 640 addFunction(vm, "enableExceptionFuzz", functionEnableExceptionFuzz, 0); 638 641 639 642 JSArray* array = constructEmptyArray(globalExec(), 0); … … 1128 1131 bool hasExecuted = exec->vm().controlFlowProfiler()->hasBasicBlockAtTextOffsetBeenExecuted(offset, executable->sourceID(), exec->vm()); 1129 1132 return JSValue::encode(jsBoolean(hasExecuted)); 1133 } 1134 1135 EncodedJSValue JSC_HOST_CALL functionEnableExceptionFuzz(ExecState*) 1136 { 1137 Options::enableExceptionFuzz() = true; 1138 return JSValue::encode(jsUndefined()); 1130 1139 } 1131 1140 -
trunk/Source/JavaScriptCore/tests/exceptionFuzz/3d-cube.js
r171213 r183962 4 4 // http://www.speich.net/computer/moztesting/3d.htm 5 5 // Created by Simon Speich 6 7 enableExceptionFuzz(); 8 6 9 7 10 var Q = new Array(); -
trunk/Source/JavaScriptCore/tests/exceptionFuzz/date-format-xparb.js
r171213 r183962 13 13 * details. 14 14 */ 15 16 enableExceptionFuzz(); 17 15 18 16 19 Date.parseFunctions = {count:0}; -
trunk/Source/JavaScriptCore/tests/exceptionFuzz/earley-boyer.js
r171213 r183962 39 39 } 40 40 */ 41 42 enableExceptionFuzz(); 41 43 42 44 -
trunk/Tools/ChangeLog
r183954 r183962 1 2015-05-07 Saam Barati <saambarati1@gmail.com> 2 3 exceptionFuzz tests should explicitly initialize the exceptionFuzz boolean in JavaScript code through a function in jsc.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=144753 5 6 Reviewed by Mark Lam. 7 8 * Scripts/jsc-stress-test-helpers/js-exception-fuzz: 9 1 10 2015-05-07 Beth Dakin <bdakin@apple.com> 2 11 -
trunk/Tools/Scripts/jsc-stress-test-helpers/js-exception-fuzz
r175801 r183962 72 72 } 73 73 74 open (my $testInput, "$commandString --enableExceptionFuzz=true|") or fail("Cannot execute initial command when getting check count");74 open (my $testInput, "$commandString |") or fail("Cannot execute initial command when getting check count"); 75 75 while (my $inputLine = <$testInput>) { 76 76 chomp($inputLine); … … 105 105 print "iteration($iteration) target($target): Running.\n"; 106 106 } 107 open ($testInput, "$commandString -- enableExceptionFuzz=true --fireExceptionFuzzAt=$target |") or fail("Cannot execute command on iteration $iteration");107 open ($testInput, "$commandString --fireExceptionFuzzAt=$target |") or fail("Cannot execute command on iteration $iteration"); 108 108 my $state = "waiting"; 109 109 while (my $inputLine = <$testInput>) {
Note:
See TracChangeset
for help on using the changeset viewer.