Revision: 18066
Author:   [email protected]
Date:     Mon Nov 25 21:25:15 2013 UTC
Log:      MIPS: Generate TypedArrayInitialize builtin in hydrogen.

Port r18059 (b2849c3)

BUG=
[email protected], [email protected]

Review URL: https://codereview.chromium.org/86053003

Patch from Balazs Kilvady <[email protected]>.
http://code.google.com/p/v8/source/detail?r=18066

Modified:
 /branches/bleeding_edge/src/mips/lithium-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/lithium-mips.cc Fri Nov 22 11:35:39 2013 UTC +++ /branches/bleeding_edge/src/mips/lithium-mips.cc Mon Nov 25 21:25:15 2013 UTC
@@ -1586,6 +1586,15 @@
     if (instr->CheckFlag(HValue::kCanOverflow)) {
       result = AssignEnvironment(result);
     }
+    return result;
+  } else if (instr->representation().IsExternal()) {
+    ASSERT(instr->left()->representation().IsExternal());
+    ASSERT(instr->right()->representation().IsInteger32());
+    ASSERT(!instr->CheckFlag(HValue::kCanOverflow));
+    LOperand* left = UseRegisterAtStart(instr->left());
+    LOperand* right = UseOrConstantAtStart(instr->right());
+    LAddI* add = new(zone()) LAddI(left, right);
+    LInstruction* result = DefineAsRegister(add);
     return result;
   } else if (instr->representation().IsDouble()) {
     if (kArchVariant == kMips32r2) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to