| 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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
| 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 HandlerFrontendFooter(name, &miss); | 988 HandlerFrontendFooter(name, &miss); |
| 989 return reg; | 989 return reg; |
| 990 } | 990 } |
| 991 | 991 |
| 992 | 992 |
| 993 void LoadStubCompiler::GenerateLoadField(Register reg, | 993 void LoadStubCompiler::GenerateLoadField(Register reg, |
| 994 Handle<JSObject> holder, | 994 Handle<JSObject> holder, |
| 995 FieldIndex field, | 995 FieldIndex field, |
| 996 Representation representation) { | 996 Representation representation) { |
| 997 if (!reg.is(receiver())) __ mov(receiver(), reg); | 997 if (!reg.is(receiver())) __ mov(receiver(), reg); |
| 998 if (kind() == Code::LOAD_IC) { | 998 LoadFieldStub stub(isolate(), field); |
| 999 LoadFieldStub stub(isolate(), field); | 999 GenerateTailCall(masm(), stub.GetCode()); |
| 1000 GenerateTailCall(masm(), stub.GetCode()); | |
| 1001 } else { | |
| 1002 KeyedLoadFieldStub stub(isolate(), field); | |
| 1003 GenerateTailCall(masm(), stub.GetCode()); | |
| 1004 } | |
| 1005 } | 1000 } |
| 1006 | 1001 |
| 1007 | 1002 |
| 1008 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { | 1003 void LoadStubCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 1009 // Return the constant value. | 1004 // Return the constant value. |
| 1010 __ li(v0, value); | 1005 __ li(v0, value); |
| 1011 __ Ret(); | 1006 __ Ret(); |
| 1012 } | 1007 } |
| 1013 | 1008 |
| 1014 | 1009 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1501 | 1496 |
| 1502 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1497 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1503 } | 1498 } |
| 1504 | 1499 |
| 1505 | 1500 |
| 1506 #undef __ | 1501 #undef __ |
| 1507 | 1502 |
| 1508 } } // namespace v8::internal | 1503 } } // namespace v8::internal |
| 1509 | 1504 |
| 1510 #endif // V8_TARGET_ARCH_MIPS | 1505 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |