Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 5e0ee443385681cce4ad8acf69741856d03c7c56..18a032f9a241e920976639d89fa139f5cda68e4c 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -1236,10 +1236,17 @@ void BaseLoadStubCompiler::NonexistentHandlerFrontend( |
void BaseLoadStubCompiler::GenerateLoadField(Register reg, |
Handle<JSObject> holder, |
- PropertyIndex index) { |
- // Get the value from the properties. |
- GenerateFastPropertyLoad(masm(), eax, reg, holder, index); |
- __ ret(0); |
+ PropertyIndex field) { |
+ if (!reg.is(receiver())) __ mov(receiver(), reg); |
+ if (kind() == Code::LOAD_IC) { |
+ LoadFieldStub stub(field.is_inobject(holder), |
+ field.translate(holder)); |
+ GenerateTailCall(masm(), stub.GetCode(isolate())); |
+ } else { |
+ KeyedLoadFieldStub stub(field.is_inobject(holder), |
+ field.translate(holder)); |
+ GenerateTailCall(masm(), stub.GetCode(isolate())); |
+ } |
} |