Revision: 14815
Author:   [email protected]
Date:     Mon May 27 01:50:52 2013
Log:      Fix build

[email protected]

Review URL: https://chromiumcodereview.appspot.com/15881004
http://code.google.com/p/v8/source/detail?r=14815

Modified:
 /branches/bleeding_edge/src/code-stubs-hydrogen.cc
 /branches/bleeding_edge/src/hydrogen.cc
 /branches/bleeding_edge/src/hydrogen.h

=======================================
--- /branches/bleeding_edge/src/code-stubs-hydrogen.cc Mon May 27 01:43:58 2013 +++ /branches/bleeding_edge/src/code-stubs-hydrogen.cc Mon May 27 01:50:52 2013
@@ -411,7 +411,7 @@
   HInstruction* load = BuildUncheckedMonomorphicElementAccess(
       GetParameter(0), GetParameter(1), NULL, NULL,
       casted_stub()->is_js_array(), casted_stub()->elements_kind(),
-      false, NEVER_RETURN_HOLE, STANDARD_STORE, Representation::Smi());
+      false, NEVER_RETURN_HOLE, STANDARD_STORE);
   return load;
 }

@@ -456,8 +456,7 @@
   BuildUncheckedMonomorphicElementAccess(
       GetParameter(0), GetParameter(1), GetParameter(2), NULL,
       casted_stub()->is_js_array(), casted_stub()->elements_kind(),
-      true, NEVER_RETURN_HOLE, casted_stub()->store_mode(),
-      Representation::Smi());
+      true, NEVER_RETURN_HOLE, casted_stub()->store_mode());

   return GetParameter(2);
 }
@@ -573,9 +572,8 @@
       new(zone()) HConstant(initial_capacity, Representation::Tagged());
   AddInstruction(initial_capacity_node);

-  HBoundsCheck* checked_arg = AddBoundsCheck(argument, max_alloc_length,
-                                             ALLOW_SMI_KEY,
-                                             Representation::Smi());
+  HBoundsCheck* checked_arg = AddBoundsCheck(
+      argument, max_alloc_length, ALLOW_SMI_KEY);
   IfBuilder if_builder(this);
   if_builder.IfCompare(checked_arg, constant_zero, Token::EQ);
   if_builder.Then();
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Mon May 27 01:43:58 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Mon May 27 01:50:52 2013
@@ -978,10 +978,9 @@

 HBoundsCheck* HGraphBuilder::AddBoundsCheck(HValue* index,
                                             HValue* length,
-                                            BoundsCheckKeyMode key_mode,
-                                            Representation r) {
+                                            BoundsCheckKeyMode key_mode) {
   HBoundsCheck* result = new(graph()->zone()) HBoundsCheck(
-      index, length, key_mode, r);
+      index, length, key_mode);
   AddInstruction(result);
   return result;
 }
@@ -1221,8 +1220,7 @@
     ElementsKind elements_kind,
     bool is_store,
     LoadKeyedHoleMode load_mode,
-    KeyedAccessStoreMode store_mode,
-    Representation checked_index_representation) {
+    KeyedAccessStoreMode store_mode) {
   ASSERT(!IsExternalArrayElementsKind(elements_kind) || !is_js_array);
   Zone* zone = this->zone();
// No GVNFlag is necessary for ElementsKind if there is an explicit dependency
@@ -1278,8 +1276,7 @@
       return result;
     } else {
       ASSERT(store_mode == STANDARD_STORE);
-      checked_key = AddBoundsCheck(
-          key, length, ALLOW_SMI_KEY, checked_index_representation);
+      checked_key = AddBoundsCheck(key, length, ALLOW_SMI_KEY);
       HLoadExternalArrayPointer* external_elements =
           new(zone) HLoadExternalArrayPointer(elements);
       AddInstruction(external_elements);
@@ -1304,8 +1301,7 @@
                                          length, key, is_js_array);
     checked_key = key;
   } else {
-    checked_key = AddBoundsCheck(
-        key, length, ALLOW_SMI_KEY, checked_index_representation);
+    checked_key = AddBoundsCheck(key, length, ALLOW_SMI_KEY);

     if (is_store && (fast_elements || fast_smi_only_elements)) {
       if (store_mode == STORE_NO_TRANSITION_HANDLE_COW) {
@@ -1477,9 +1473,8 @@
   AddInstruction(max_size_constant);
   // Since we're forcing Integer32 representation for this HBoundsCheck,
   // there's no need to Smi-check the index.
-  AddInstruction(new(zone)
-                 HBoundsCheck(length, max_size_constant,
- DONT_ALLOW_SMI_KEY, Representation::Integer32()));
+  AddInstruction(new(zone) HBoundsCheck(
+      length, max_size_constant, DONT_ALLOW_SMI_KEY));
 }


=======================================
--- /branches/bleeding_edge/src/hydrogen.h      Mon May 27 01:43:58 2013
+++ /branches/bleeding_edge/src/hydrogen.h      Mon May 27 01:50:52 2013
@@ -963,8 +963,7 @@
   HBoundsCheck* AddBoundsCheck(
       HValue* index,
       HValue* length,
-      BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY,
-      Representation r = Representation::None());
+      BoundsCheckKeyMode key_mode = DONT_ALLOW_SMI_KEY);

   HReturn* AddReturn(HValue* value);

@@ -1025,8 +1024,7 @@
       ElementsKind elements_kind,
       bool is_store,
       LoadKeyedHoleMode load_mode,
-      KeyedAccessStoreMode store_mode,
- Representation checked_index_representation = Representation::None());
+      KeyedAccessStoreMode store_mode);

   HLoadNamedField* AddLoad(
       HValue *object,

--
--
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