| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 HandlerFrontendFooter(name, &miss); | 989 HandlerFrontendFooter(name, &miss); |
| 990 return reg; | 990 return reg; |
| 991 } | 991 } |
| 992 | 992 |
| 993 | 993 |
| 994 void LoadStubCompiler::GenerateLoadField(Register reg, | 994 void LoadStubCompiler::GenerateLoadField(Register reg, |
| 995 Handle<JSObject> holder, | 995 Handle<JSObject> holder, |
| 996 FieldIndex field, | 996 FieldIndex field, |
| 997 Representation representation) { | 997 Representation representation) { |
| 998 if (!reg.is(receiver())) __ mov(receiver(), reg); | 998 if (!reg.is(receiver())) __ mov(receiver(), reg); |
| 999 if (kind() == Code::LOAD_IC) { | 999 LoadFieldStub stub(isolate(), field); |
| 1000 LoadFieldStub stub(isolate(), field); | 1000 GenerateTailCall(masm(), stub.GetCode()); |
| 1001 GenerateTailCall(masm(), stub.GetCode()); | |
| 1002 } else { | |
| 1003 KeyedLoadFieldStub stub(isolate(), field); | |
| 1004 GenerateTailCall(masm(), stub.GetCode()); | |
| 1005 } | |
| 1006 } | 1001 } |
| 1007 | 1002 |
| 1008 | 1003 |
| 1009 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { | 1004 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 1010 // Return the constant value. | 1005 // Return the constant value. |
| 1011 __ li(v0, value); | 1006 __ li(v0, value); |
| 1012 __ Ret(); | 1007 __ Ret(); |
| 1013 } | 1008 } |
| 1014 | 1009 |
| 1015 | 1010 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 | 1498 |
| 1504 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1505 } | 1500 } |
| 1506 | 1501 |
| 1507 | 1502 |
| 1508 #undef __ | 1503 #undef __ |
| 1509 | 1504 |
| 1510 } } // namespace v8::internal | 1505 } } // namespace v8::internal |
| 1511 | 1506 |
| 1512 #endif // V8_TARGET_ARCH_MIPS64 | 1507 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |