Chromium Code Reviews| Index: src/ia32/stub-cache-ia32.cc |
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
| index 2315763b4cd2b8d53adccfd61ddf050e2cab6db5..ee31d6c5b51ac70227b4ec3ba6cd929638d736b4 100644 |
| --- a/src/ia32/stub-cache-ia32.cc |
| +++ b/src/ia32/stub-cache-ia32.cc |
| @@ -818,6 +818,14 @@ void NamedLoadHandlerCompiler::GenerateLoadField( |
| } |
| +void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
| + int constant_index) { |
| + if (!reg.is(receiver())) __ mov(receiver(), reg); |
|
Jakob Kummerow
2014/08/05 13:50:58
nit: use MacroAssembler::Move() to get the equalit
|
| + 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. |