Reviewers: danno, Paul Lind, kisg, palfia,
Description:
MIPS: Removed unused variables.
These were found by compilation errors with gcc 4.6.
BUG=
TEST=
Please review this at http://codereview.chromium.org/10253004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/mips/code-stubs-mips.cc
M src/mips/full-codegen-mips.cc
M src/mips/lithium-codegen-mips.cc
M src/mips/lithium-mips.cc
M src/mips/stub-cache-mips.cc
Index: src/mips/code-stubs-mips.cc
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
index
bd353d98c8728aa046b5089d27dab407167b8e65..f3dd95b851453cff69a738b4d7fc52cf0ff89461
100644
--- a/src/mips/code-stubs-mips.cc
+++ b/src/mips/code-stubs-mips.cc
@@ -2754,7 +2754,6 @@ void BinaryOpStub::GenerateSmiCode(
Register left = a1;
Register right = a0;
Register scratch1 = t3;
- Register scratch2 = t5;
// Perform combined smi check on both operands.
__ Or(scratch1, left, Operand(right));
@@ -3459,7 +3458,6 @@ void
TranscendentalCacheStub::Generate(MacroAssembler* masm) {
Label no_update;
Label skip_cache;
- const Register heap_number_map = t2;
// Call C function to calculate the result and update the cache.
// Register a0 holds precalculated cache entry address; preserve
Index: src/mips/full-codegen-mips.cc
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc
index
7456510584eb47a72d29a2183b9021c3792ca0e6..4ffd0ea01163fee05390fcf6e3e50931eadf086b
100644
--- a/src/mips/full-codegen-mips.cc
+++ b/src/mips/full-codegen-mips.cc
@@ -3750,7 +3750,6 @@ void
FullCodeGenerator::EmitFastAsciiArrayJoin(CallRuntime* expr) {
Register scratch1 = t3;
Register scratch2 = t5;
Register scratch3 = t4;
- Register scratch4 = v1;
// Separator operand is on the stack.
__ pop(separator);
Index: src/mips/lithium-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc
b/src/mips/lithium-codegen-mips.cc
index
9514710134592cbc88c08850ec7a087c30dd2793..c0323e3521b7b3602e17422e4ae033ac99a3f701
100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -2832,7 +2832,6 @@ void LCodeGen::DoDeclareGlobals(LDeclareGlobals*
instr) {
void LCodeGen::DoGlobalObject(LGlobalObject* instr) {
- Register context = ToRegister(instr->context());
Register result = ToRegister(instr->result());
__ lw(result, ContextOperand(cp, Context::GLOBAL_INDEX));
}
@@ -4156,7 +4155,6 @@ void LCodeGen::DoDoubleToI(LDoubleToI* instr) {
Register scratch1 = scratch0();
Register scratch2 = ToRegister(instr->TempAt(0));
DoubleRegister double_input = ToDoubleRegister(instr->InputAt(0));
- DoubleRegister double_scratch = double_scratch0();
FPURegister single_scratch = double_scratch0().low();
if (instr->truncating()) {
Index: src/mips/lithium-mips.cc
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
index
6107c0b7fd9dbd79604f223c84e1e7aaf7e8b53f..1eb3ab7a0ed5bf671845c947e0391719670b921b
100644
--- a/src/mips/lithium-mips.cc
+++ b/src/mips/lithium-mips.cc
@@ -1442,7 +1442,6 @@ LInstruction* LChunkBuilder::DoRandom(HRandom* instr)
{
LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
- Representation r = instr->GetInputRepresentation();
ASSERT(instr->left()->representation().IsTagged());
ASSERT(instr->right()->representation().IsTagged());
LOperand* left = UseFixed(instr->left(), a1);
Index: src/mips/stub-cache-mips.cc
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc
index
dc2a35736c6678d227faaf838bef19bc55f3af2f..e2e69c8f52bfa29df06422b31915f0e838f73ad2
100644
--- a/src/mips/stub-cache-mips.cc
+++ b/src/mips/stub-cache-mips.cc
@@ -1176,9 +1176,8 @@ void
StubCompiler::GenerateLoadConstant(Handle<JSObject> object,
__ JumpIfSmi(receiver, miss, scratch1);
// Check that the maps haven't changed.
- Register reg =
- CheckPrototypes(object, receiver, holder,
- scratch1, scratch2, scratch3, name, miss);
+ CheckPrototypes(object, receiver, holder,
+ scratch1, scratch2, scratch3, name, miss);
// Return the constant value.
__ LoadHeapObject(v0, value);
@@ -4273,7 +4272,6 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
Register elements_reg = a3;
Register length_reg = t1;
Register scratch2 = t2;
- Register scratch3 = t3;
// This stub is meant to be tail-jumped to, the receiver must already
// have been verified by the caller to not be a smi.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev