Index: src/ia32/lithium-ia32.cc |
=================================================================== |
--- src/ia32/lithium-ia32.cc (revision 7299) |
+++ src/ia32/lithium-ia32.cc (working copy) |
@@ -1790,6 +1790,21 @@ |
} |
+LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic( |
+ HLoadNamedFieldPolymorphic* instr) { |
+ ASSERT(instr->representation().IsTagged()); |
+ if (instr->need_generic()) { |
+ LOperand* obj = UseFixed(instr->object(), eax); |
+ LLoadNamedFieldPolymorphic* result = new LLoadNamedFieldPolymorphic(obj); |
+ return MarkAsCall(DefineFixed(result, eax), instr); |
+ } else { |
+ LOperand* obj = UseRegisterAtStart(instr->object()); |
+ LLoadNamedFieldPolymorphic* result = new LLoadNamedFieldPolymorphic(obj); |
+ return AssignEnvironment(DefineAsRegister(result)); |
+ } |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { |
LOperand* context = UseFixed(instr->context(), esi); |
LOperand* object = UseFixed(instr->object(), eax); |