Upstream version 11.39.258.0
[platform/framework/web/crosswalk.git] / src / v8 / src / ia32 / lithium-ia32.h
index ec29698..6ade815 100644 (file)
@@ -1409,15 +1409,20 @@ class LInstanceOfKnownGlobal FINAL : public LTemplateInstruction<1, 2, 1> {
 };
 
 
-class LBoundsCheck FINAL : public LTemplateInstruction<0, 2, 0> {
+class LBoundsCheck FINAL : public LTemplateInstruction<0, 2, 2> {
  public:
-  LBoundsCheck(LOperand* index, LOperand* length) {
+  LBoundsCheck(LOperand* index, LOperand* length,
+               LOperand* temp0, LOperand* temp1) {
     inputs_[0] = index;
     inputs_[1] = length;
+    temps_[0] = temp0;
+    temps_[1] = temp1;
   }
 
   LOperand* index() { return inputs_[0]; }
   LOperand* length() { return inputs_[1]; }
+  LOperand* temp0() { return temps_[0]; }
+  LOperand* temp1() { return temps_[1]; }
 
   DECLARE_CONCRETE_INSTRUCTION(BoundsCheck, "bounds-check")
   DECLARE_HYDROGEN_ACCESSOR(BoundsCheck)