Commit b72cb74a authored by barraclough@apple.com's avatar barraclough@apple.com

Fix a couple of typos in comments that Darin spotted.

* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_not):
* runtime/JSImmediate.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@83212 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent df7df08b
2011-04-07 Gavin Barraclough <barraclough@apple.com>
Fix a couple of typos in comments that Darin spotted.
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_not):
* runtime/JSImmediate.h:
2011-04-06 Gavin Barraclough <barraclough@apple.com>
Reviewed by Geoff Garen.
......
......@@ -696,9 +696,9 @@ void JIT::emit_op_not(Instruction* currentInstruction)
{
emitGetVirtualRegister(currentInstruction[2].u.operand, regT0);
// Invert agains JSValue(false); if the value was tagged as a boolean, when all bits will be
// Invert against JSValue(false); if the value was tagged as a boolean, then all bits will be
// clear other than the low bit (which will be 0 or 1 for false or true inputs respectively).
// Then invert against JSValue(truee), which will add the tag back in, and flip the low bit.
// Then invert against JSValue(true), which will add the tag back in, and flip the low bit.
xorPtr(TrustedImm32(static_cast<int32_t>(JSImmediate::FullTagTypeFalse)), regT0);
addSlowCase(branchTestPtr(NonZero, regT0, TrustedImm32(static_cast<int32_t>(~1))));
xorPtr(TrustedImm32(static_cast<int32_t>(JSImmediate::FullTagTypeTrue)), regT0);
......
......@@ -137,9 +137,9 @@ namespace JSC {
// This value is 2^48, used to encode doubles such that the encoded value will begin
// with a 16-bit pattern within the range 0x0001..0xFFFE.
static const intptr_t DoubleEncodeOffset = 0x1000000000000ll;
// The second bit set indicates immediate other than an number (bool, null, undefined).
// The second bit set indicates an immediate other than a number (bool, null, undefined).
static const intptr_t TagBitTypeOther = 0x2;
// TagMask is used to check for any immediate values (number or other).
// TagMask is used to check for all types of immediate values (either number or 'other').
static const intptr_t TagMask = TagTypeNumber | TagBitTypeOther;
static const intptr_t ExtendedTagBitBool = 0x4;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment