| Index: src/mips/code-stubs-mips.cc
|
| ===================================================================
|
| --- src/mips/code-stubs-mips.cc (revision 10404)
|
| +++ src/mips/code-stubs-mips.cc (working copy)
|
| @@ -157,13 +157,13 @@
|
| // Load the function from the stack.
|
| __ lw(a3, MemOperand(sp, 0));
|
|
|
| - // Setup the object header.
|
| + // Set up the object header.
|
| __ LoadRoot(a2, Heap::kFunctionContextMapRootIndex);
|
| __ sw(a2, FieldMemOperand(v0, HeapObject::kMapOffset));
|
| __ li(a2, Operand(Smi::FromInt(length)));
|
| __ sw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset));
|
|
|
| - // Setup the fixed slots.
|
| + // Set up the fixed slots.
|
| __ li(a1, Operand(Smi::FromInt(0)));
|
| __ sw(a3, MemOperand(v0, Context::SlotOffset(Context::CLOSURE_INDEX)));
|
| __ sw(cp, MemOperand(v0, Context::SlotOffset(Context::PREVIOUS_INDEX)));
|
| @@ -208,7 +208,7 @@
|
| // Load the serialized scope info from the stack.
|
| __ lw(a1, MemOperand(sp, 1 * kPointerSize));
|
|
|
| - // Setup the object header.
|
| + // Set up the object header.
|
| __ LoadRoot(a2, Heap::kBlockContextMapRootIndex);
|
| __ sw(a2, FieldMemOperand(v0, HeapObject::kMapOffset));
|
| __ li(a2, Operand(Smi::FromInt(length)));
|
| @@ -229,7 +229,7 @@
|
| __ lw(a3, ContextOperand(a3, Context::CLOSURE_INDEX));
|
| __ bind(&after_sentinel);
|
|
|
| - // Setup the fixed slots.
|
| + // Set up the fixed slots.
|
| __ sw(a3, ContextOperand(v0, Context::CLOSURE_INDEX));
|
| __ sw(cp, ContextOperand(v0, Context::PREVIOUS_INDEX));
|
| __ sw(a1, ContextOperand(v0, Context::EXTENSION_INDEX));
|
| @@ -726,7 +726,7 @@
|
| __ Subu(int_scratch, zero_reg, int_scratch);
|
| __ bind(&skip_sub);
|
|
|
| - // Get mantisssa[51:20].
|
| + // Get mantissa[51:20].
|
|
|
| // Get the position of the first set bit.
|
| __ clz(dst1, int_scratch);
|
| @@ -971,7 +971,7 @@
|
| // non zero bits left. So we need the (30 - exponent) last bits of the
|
| // 31 higher bits of the mantissa to be null.
|
| // Because bits [21:0] are null, we can check instead that the
|
| - // (32 - exponent) last bits of the 32 higher bits of the mantisssa are null.
|
| + // (32 - exponent) last bits of the 32 higher bits of the mantissa are null.
|
|
|
| // Get the 32 higher bits of the mantissa in dst.
|
| __ Ext(dst,
|
| @@ -4005,7 +4005,7 @@
|
| FrameScope scope(masm, StackFrame::MANUAL);
|
| __ EnterExitFrame(save_doubles_);
|
|
|
| - // Setup argc and the builtin function in callee-saved registers.
|
| + // Set up argc and the builtin function in callee-saved registers.
|
| __ mov(s0, a0);
|
| __ mov(s2, a1);
|
|
|
| @@ -4097,7 +4097,7 @@
|
| isolate)));
|
| __ lw(t0, MemOperand(t0));
|
| __ Push(t3, t2, t1, t0);
|
| - // Setup frame pointer for the frame to be pushed.
|
| + // Set up frame pointer for the frame to be pushed.
|
| __ addiu(fp, sp, -EntryFrameConstants::kCallerFPOffset);
|
|
|
| // Registers:
|
| @@ -4584,7 +4584,7 @@
|
| __ sw(a3, FieldMemOperand(v0, i));
|
| }
|
|
|
| - // Setup the callee in-object property.
|
| + // Set up the callee in-object property.
|
| STATIC_ASSERT(Heap::kArgumentsCalleeIndex == 1);
|
| __ lw(a3, MemOperand(sp, 2 * kPointerSize));
|
| const int kCalleeOffset = JSObject::kHeaderSize +
|
| @@ -4597,7 +4597,7 @@
|
| Heap::kArgumentsLengthIndex * kPointerSize;
|
| __ sw(a2, FieldMemOperand(v0, kLengthOffset));
|
|
|
| - // Setup the elements pointer in the allocated arguments object.
|
| + // Set up the elements pointer in the allocated arguments object.
|
| // If we allocated a parameter map, t0 will point there, otherwise
|
| // it will point to the backing store.
|
| __ Addu(t0, v0, Operand(Heap::kArgumentsObjectSize));
|
| @@ -4699,7 +4699,7 @@
|
| __ Ret();
|
|
|
| // Do the runtime call to allocate the arguments object.
|
| - // a2 = argument count (taggged)
|
| + // a2 = argument count (tagged)
|
| __ bind(&runtime);
|
| __ sw(a2, MemOperand(sp, 0 * kPointerSize)); // Patch argument count.
|
| __ TailCallRuntime(Runtime::kNewArgumentsFast, 3, 1);
|
| @@ -4774,7 +4774,7 @@
|
| // Get the parameters pointer from the stack.
|
| __ lw(a2, MemOperand(sp, 1 * kPointerSize));
|
|
|
| - // Setup the elements pointer in the allocated arguments object and
|
| + // Set up the elements pointer in the allocated arguments object and
|
| // initialize the header in the elements fixed array.
|
| __ Addu(t0, v0, Operand(Heap::kArgumentsObjectSizeStrict));
|
| __ sw(t0, FieldMemOperand(v0, JSObject::kElementsOffset));
|
| @@ -4786,7 +4786,7 @@
|
|
|
| // Copy the fixed array slots.
|
| Label loop;
|
| - // Setup t0 to point to the first array slot.
|
| + // Set up t0 to point to the first array slot.
|
| __ Addu(t0, t0, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
|
| __ bind(&loop);
|
| // Pre-decrement a2 with kPointerSize on each iteration.
|
| @@ -5425,7 +5425,7 @@
|
| // of the original receiver from the call site).
|
| __ bind(&non_function);
|
| __ sw(a1, MemOperand(sp, argc_ * kPointerSize));
|
| - __ li(a0, Operand(argc_)); // Setup the number of arguments.
|
| + __ li(a0, Operand(argc_)); // Set up the number of arguments.
|
| __ mov(a2, zero_reg);
|
| __ GetBuiltinEntry(a3, Builtins::CALL_NON_FUNCTION);
|
| __ SetCallKind(t1, CALL_AS_METHOD);
|
| @@ -5927,7 +5927,7 @@
|
| Register hash,
|
| Register character) {
|
| // hash = seed + character + ((seed + character) << 10);
|
| - __ LoadRoot(hash, Heap::kStringHashSeedRootIndex);
|
| + __ LoadRoot(hash, Heap::kHashSeedRootIndex);
|
| // Untag smi seed and add the character.
|
| __ SmiUntag(hash);
|
| __ addu(hash, hash, character);
|
| @@ -5954,7 +5954,7 @@
|
|
|
|
|
| void StringHelper::GenerateHashGetHash(MacroAssembler* masm,
|
| - Register hash) {
|
| + Register hash) {
|
| // hash += hash << 3;
|
| __ sll(at, hash, 3);
|
| __ addu(hash, hash, at);
|
| @@ -5965,12 +5965,11 @@
|
| __ sll(at, hash, 15);
|
| __ addu(hash, hash, at);
|
|
|
| - uint32_t kHashShiftCutOffMask = (1 << (32 - String::kHashShift)) - 1;
|
| - __ li(at, Operand(kHashShiftCutOffMask));
|
| + __ li(at, Operand(String::kHashBitMask));
|
| __ and_(hash, hash, at);
|
|
|
| // if (hash == 0) hash = 27;
|
| - __ ori(at, zero_reg, 27);
|
| + __ ori(at, zero_reg, StringHasher::kZeroHash);
|
| __ movz(hash, at, hash);
|
| }
|
|
|
|
|