From: vitalyr@chromium.org Date: Wed, 18 May 2011 09:19:14 +0000 (+0000) Subject: Remove NULL temp operand from ia32 LStoreKeyedSpecializedArrayElement. X-Git-Tag: upstream/4.7.83~19388 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cb0c0a957de66ccdb190ba86ddaf21f0f622c97;p=platform%2Fupstream%2Fv8.git Remove NULL temp operand from ia32 LStoreKeyedSpecializedArrayElement. Review URL: http://codereview.chromium.org/7042006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7924 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc index 76eaec570..29936b2db 100644 --- a/src/ia32/lithium-ia32.cc +++ b/src/ia32/lithium-ia32.cc @@ -2016,7 +2016,6 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( LOperand* external_pointer = UseRegister(instr->external_pointer()); LOperand* key = UseRegisterOrConstant(instr->key()); - LOperand* temp = NULL; LOperand* val = NULL; if (array_type == kExternalByteArray || array_type == kExternalUnsignedByteArray) { @@ -2028,8 +2027,7 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( return new LStoreKeyedSpecializedArrayElement(external_pointer, key, - val, - temp); + val); } diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h index 13139ea2f..694ede8ec 100644 --- a/src/ia32/lithium-ia32.h +++ b/src/ia32/lithium-ia32.h @@ -1813,16 +1813,14 @@ class LStoreKeyedFastElement: public LTemplateInstruction<0, 3, 0> { }; -class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 1> { +class LStoreKeyedSpecializedArrayElement: public LTemplateInstruction<0, 3, 0> { public: LStoreKeyedSpecializedArrayElement(LOperand* external_pointer, LOperand* key, - LOperand* val, - LOperand* temp) { + LOperand* val) { inputs_[0] = external_pointer; inputs_[1] = key; inputs_[2] = val; - temps_[0] = temp; } DECLARE_CONCRETE_INSTRUCTION(StoreKeyedSpecializedArrayElement,