Changeset 239427 in webkit for trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
- Timestamp:
- Dec 19, 2018, 8:41:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
r238543 r239427 695 695 } 696 696 if (const auto* identifier = node.name()) { 697 std::optional<uint32_t> optionalIndex = parseIndex(*identifier);697 Optional<uint32_t> optionalIndex = parseIndex(*identifier); 698 698 if (!optionalIndex) { 699 699 generator.emitDirectPutById(newObj, *identifier, value.get(), node.putType()); … … 2090 2090 2091 2091 if (opcodeID == op_less || opcodeID == op_lesseq || opcodeID == op_greater || opcodeID == op_greatereq) { 2092 auto isUInt32 = [&] (ExpressionNode* node) -> std::optional<UInt32Result> {2092 auto isUInt32 = [&] (ExpressionNode* node) -> Optional<UInt32Result> { 2093 2093 if (node->isBinaryOpNode() && static_cast<BinaryOpNode*>(node)->opcodeID() == op_urshift) 2094 2094 return UInt32Result::UInt32; … … 2098 2098 return UInt32Result::Constant; 2099 2099 } 2100 return std::nullopt;2100 return WTF::nullopt; 2101 2101 }; 2102 2102 auto leftResult = isUInt32(m_expr1); … … 4305 4305 RefPtr<RegisterID> propertyName; 4306 4306 if (!target.propertyExpression) { 4307 std::optional<uint32_t> optionalIndex = parseIndex(target.propertyName);4307 Optional<uint32_t> optionalIndex = parseIndex(target.propertyName); 4308 4308 if (!optionalIndex) 4309 4309 generator.emitGetById(temp.get(), rhs, target.propertyName);
Note:
See TracChangeset
for help on using the changeset viewer.