Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 859310db4a6406ebf1cef80d11892d115054215a..27e7c3bc2a588f1e1dac6267c0718e6c87f018eb 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -595,7 +595,7 @@ HValue* CodeStubGraphBuilder<LoadConstantStub>::BuildCodeStub() { |
HValue* descriptors = |
Add<HLoadNamedField>(map, static_cast<HValue*>(NULL), descriptors_access); |
HObjectAccess value_access = HObjectAccess::ForObservableJSObjectOffset( |
- DescriptorArray::GetValueOffset(casted_stub()->descriptor())); |
+ DescriptorArray::GetValueOffset(casted_stub()->constant_index())); |
return Add<HLoadNamedField>(descriptors, static_cast<HValue*>(NULL), |
value_access); |
} |