Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 7c2c362d3f0253c8f68169e21a15a50ca3aac7b1..d79d2f458a1620f86478a13827bd7888be2bae97 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -123,7 +123,6 @@ Handle<Code> PlatformCodeStub::GenerateCode() { |
// Create the code object. |
CodeDesc desc; |
masm.GetCode(&desc); |
- |
// Copy the generated code into a heap object. |
Code::Flags flags = Code::ComputeFlags( |
GetCodeKind(), |
@@ -628,7 +627,9 @@ void LoadDictionaryElementStub::InitializeDescriptor( |
void KeyedLoadGenericStub::InitializeDescriptor( |
CodeStubDescriptor* descriptor) { |
descriptor->Initialize( |
- Runtime::FunctionForId(Runtime::kKeyedGetProperty)->entry); |
+ Runtime::FunctionForId(is_strong(language_mode()) |
+ ? Runtime::kKeyedGetPropertyStrong |
+ : Runtime::kKeyedGetProperty)->entry); |
} |