Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 4573da151279d68dab655dbf0cbd587a40c7c892..2749b810e4cb9dfc5bc52b221a4accc5080507d2 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -136,7 +136,8 @@ bool CodeStubGraphBuilderBase::BuildGraph() { |
bool runtime_stack_params = descriptor_.stack_parameter_count().is_valid(); |
HInstruction* stack_parameter_count = NULL; |
for (int i = 0; i < param_count; ++i) { |
- Representation r = descriptor_.GetEnvironmentParameterRepresentation(i); |
+ Representation r = |
+ RepresentationFromType(descriptor_.GetEnvironmentParameterType(i)); |
HParameter* param = Add<HParameter>(i, |
HParameter::REGISTER_PARAMETER, r); |
start_environment->Bind(i, param); |