Changeset 206147 in webkit
- Timestamp:
- Sep 20, 2016 8:45:43 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r206136 r206147 1 2016-09-20 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 [JSC] Add `typeof value === "symbol"` handling to bytecode compiler 4 https://bugs.webkit.org/show_bug.cgi?id=162253 5 6 Reviewed by Sam Weinig. 7 8 * microbenchmarks/is-symbol-mixed.js: Added. 9 (isSymbol): 10 (i.let.pair.of.list.String): 11 * microbenchmarks/is-symbol.js: Added. 12 (isSymbol): 13 1 14 2016-09-19 Saam Barati <sbarati@apple.com> 2 15 -
trunk/Source/JavaScriptCore/ChangeLog
r206136 r206147 1 2016-09-20 Yusuke Suzuki <utatane.tea@gmail.com> 2 3 [JSC] Add `typeof value === "symbol"` handling to bytecode compiler 4 https://bugs.webkit.org/show_bug.cgi?id=162253 5 6 Reviewed by Sam Weinig. 7 8 Add `typeof value === "symbol"` handling to the bytecode compiler. 9 The effect is tiny, but it keeps consistency since the bytecode compiler 10 already has the similar optimization for "string" case. 11 12 * bytecode/SpeculatedType.cpp: 13 (JSC::speculationFromJSType): 14 * bytecompiler/BytecodeGenerator.cpp: 15 (JSC::BytecodeGenerator::emitEqualityOp): 16 1 17 2016-09-19 Saam Barati <sbarati@apple.com> 2 18 -
trunk/Source/JavaScriptCore/bytecode/SpeculatedType.cpp
r206104 r206147 477 477 case StringType: 478 478 return SpecString; 479 case SymbolType: 480 return SpecSymbol; 479 481 case ArrayType: 480 482 return SpecArray; -
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r206098 r206147 1664 1664 instructions().append(srcIndex); 1665 1665 instructions().append(StringType); 1666 return dst; 1667 } 1668 if (value == "symbol") { 1669 rewindUnaryOp(); 1670 emitOpcode(op_is_cell_with_type); 1671 instructions().append(dst->index()); 1672 instructions().append(srcIndex); 1673 instructions().append(SymbolType); 1666 1674 return dst; 1667 1675 }
Note: See TracChangeset
for help on using the changeset viewer.