Revision: 11572
Author: [email protected]
Date: Wed May 16 02:07:57 2012
Log: MIPS: Fix simplification of DoLoadNamedFieldPolymorphic. This is
a commit of https://chromiumcodereview.appspot.com/10391096/ for Akos Palfi
http://code.google.com/p/v8/source/detail?r=11572
Modified:
/branches/bleeding_edge/src/mips/lithium-codegen-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Fri May 11
02:13:02 2012
+++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Wed May 16
02:07:57 2012
@@ -2343,6 +2343,7 @@
Register object = ToRegister(instr->object());
Register result = ToRegister(instr->result());
Register scratch = scratch0();
+
int map_count = instr->hydrogen()->types()->length();
bool need_generic = instr->hydrogen()->need_generic();
@@ -2357,8 +2358,8 @@
bool last = (i == map_count - 1);
Handle<Map> map = instr->hydrogen()->types()->at(i);
if (last && !need_generic) {
- Handle<Map> map = instr->hydrogen()->types()->last();
DeoptimizeIf(ne, instr->environment(), scratch, Operand(map));
+ EmitLoadFieldOrConstantFunction(result, object, map, name);
} else {
Label next;
__ Branch(&next, ne, scratch, Operand(map));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev