Reviewers: Jakob, danno,

Description:
Fix GCC 4.2 errors introduced with revision 15379.

BUG=

Please review this at https://codereview.chromium.org/18184005/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/hydrogen.cc


Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index 78b7a04d58ff1f21ce4f285264b836983599e70b..96d647ee125951168572aa5e5c365cd7cf4702d6 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -1706,7 +1706,8 @@ HInstruction* HGraphBuilder::BuildGetNativeContext(HValue* context) {

 HInstruction* HGraphBuilder::BuildGetArrayFunction(HValue* context) {
   HInstruction* native_context = BuildGetNativeContext(context);
-  HInstruction* index = Add<HConstant>(Context::ARRAY_FUNCTION_INDEX);
+  HInstruction* index =
+      Add<HConstant>(static_cast<int32_t>(Context::ARRAY_FUNCTION_INDEX));
   return Add<HLoadKeyed>(
       native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS);
 }
@@ -1740,7 +1741,8 @@ HGraphBuilder::JSArrayBuilder::JSArrayBuilder(HGraphBuilder* builder,
 HValue* HGraphBuilder::JSArrayBuilder::EmitMapCode(HValue* context) {
   HInstruction* native_context = builder()->BuildGetNativeContext(context);

- HInstruction* index = builder()->Add<HConstant>(Context::JS_ARRAY_MAPS_INDEX);
+  HInstruction* index = builder()->Add<HConstant>(
+      static_cast<int32_t>(Context::JS_ARRAY_MAPS_INDEX));

   HInstruction* map_array = builder()->Add<HLoadKeyed>(
       native_context, index, static_cast<HValue*>(NULL), FAST_ELEMENTS);


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