From: bmeurer@chromium.org Date: Fri, 28 Jun 2013 12:28:39 +0000 (+0000) Subject: Fix GCC 4.2 errors introduced with revision 15379. X-Git-Tag: upstream/4.7.83~13630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e029039b698670fe7ac2605d823156a53cb38f7f;p=platform%2Fupstream%2Fv8.git Fix GCC 4.2 errors introduced with revision 15379. BUG= R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/18184005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15380 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen.cc b/src/hydrogen.cc index 78b7a04..96d647e 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(Context::ARRAY_FUNCTION_INDEX); + HInstruction* index = + Add(static_cast(Context::ARRAY_FUNCTION_INDEX)); return Add( native_context, index, static_cast(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(Context::JS_ARRAY_MAPS_INDEX); + HInstruction* index = builder()->Add( + static_cast(Context::JS_ARRAY_MAPS_INDEX)); HInstruction* map_array = builder()->Add( native_context, index, static_cast(NULL), FAST_ELEMENTS);