Changeset 242215 in webkit for trunk/Source/JavaScriptCore/offlineasm/cloop.rb
- Timestamp:
- Feb 28, 2019, 12:48:50 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/offlineasm/cloop.rb
r239940 r242215 1 # Copyright (C) 2012-201 8Apple Inc. All rights reserved.1 # Copyright (C) 2012-2019 Apple Inc. All rights reserved. 2 2 # 3 3 # Redistribution and use in source and binary forms, with or without … … 427 427 truncationFooter = "" 428 428 end 429 $asm.putc "#{dst.clLValue(type)} = #{truncationHeader}#{operands[1].clValue(type)} #{operator} (#{operands[0].clValue(:int)} & 0x1f)#{truncationFooter};" 429 # FIXME: rename :int to :intptr to be match their expected names from C++. Ditto for :uint. 430 # https://bugs.webkit.org/show_bug.cgi?id=195183 431 shiftMask = "((sizeof(uintptr_t) == 8) ? 0x3f : 0x1f)" if type == :int || type == :uint 432 shiftMask = "0x3f" if type == :int64 || type == :uint64 433 shiftMask = "0x1f" if type == :int32 || type == :uint32 434 $asm.putc "#{dst.clLValue(type)} = #{truncationHeader}#{operands[1].clValue(type)} #{operator} (#{operands[0].clValue(:int)} & #{shiftMask})#{truncationFooter};" 430 435 end 431 436
Note:
See TracChangeset
for help on using the changeset viewer.