Index: src/x87/stub-cache-x87.cc |
diff --git a/src/x87/stub-cache-x87.cc b/src/x87/stub-cache-x87.cc |
index 1227f9b887d853d24319baa9957de6edb768a993..ee56f9ab08236ff7c909d5ce86d26671865517e2 100644 |
--- a/src/x87/stub-cache-x87.cc |
+++ b/src/x87/stub-cache-x87.cc |
@@ -817,6 +817,14 @@ void NamedLoadHandlerCompiler::GenerateLoadField( |
} |
+void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
+ int constant_index) { |
+ if (!reg.is(receiver())) __ mov(receiver(), reg); |
+ LoadConstantStub stub(isolate(), constant_index); |
+ GenerateTailCall(masm(), stub.GetCode()); |
+} |
+ |
+ |
void NamedLoadHandlerCompiler::GenerateLoadCallback( |
Register reg, Handle<ExecutableAccessorInfo> callback) { |
// Insert additional parameters into the stack frame above return address. |