Revision: 15380
Author: [email protected]
Date: Fri Jun 28 05:28:39 2013
Log: Fix GCC 4.2 errors introduced with revision 15379.
BUG=
[email protected]
Review URL: https://codereview.chromium.org/18184005
http://code.google.com/p/v8/source/detail?r=15380
Modified:
/branches/bleeding_edge/src/hydrogen.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen.cc Fri Jun 28 04:44:16 2013
+++ /branches/bleeding_edge/src/hydrogen.cc Fri Jun 28 05:28:39 2013
@@ -1706,7 +1706,8 @@
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 @@
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.