OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 Isolate* isolate, | 43 Isolate* isolate, |
44 CodeStubInterfaceDescriptor* descriptor) { | 44 CodeStubInterfaceDescriptor* descriptor) { |
45 static Register registers[] = { a1, a0 }; | 45 static Register registers[] = { a1, a0 }; |
46 descriptor->register_param_count_ = 2; | 46 descriptor->register_param_count_ = 2; |
47 descriptor->register_params_ = registers; | 47 descriptor->register_params_ = registers; |
48 descriptor->deoptimization_handler_ = | 48 descriptor->deoptimization_handler_ = |
49 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); | 49 FUNCTION_ADDR(KeyedLoadIC_MissFromStubFailure); |
50 } | 50 } |
51 | 51 |
52 | 52 |
| 53 void TransitionElementsKindStub::InitializeInterfaceDescriptor( |
| 54 Isolate* isolate, |
| 55 CodeStubInterfaceDescriptor* descriptor) { |
| 56 static Register registers[] = { a0, a1 }; |
| 57 descriptor->register_param_count_ = 2; |
| 58 descriptor->register_params_ = registers; |
| 59 Address entry = |
| 60 Runtime::FunctionForId(Runtime::kTransitionElementsKind)->entry; |
| 61 descriptor->deoptimization_handler_ = FUNCTION_ADDR(entry); |
| 62 } |
| 63 |
| 64 |
53 #define __ ACCESS_MASM(masm) | 65 #define __ ACCESS_MASM(masm) |
54 | 66 |
55 static void EmitIdenticalObjectComparison(MacroAssembler* masm, | 67 static void EmitIdenticalObjectComparison(MacroAssembler* masm, |
56 Label* slow, | 68 Label* slow, |
57 Condition cc); | 69 Condition cc); |
58 static void EmitSmiNonsmiComparison(MacroAssembler* masm, | 70 static void EmitSmiNonsmiComparison(MacroAssembler* masm, |
59 Register lhs, | 71 Register lhs, |
60 Register rhs, | 72 Register rhs, |
61 Label* rhs_not_nan, | 73 Label* rhs_not_nan, |
62 Label* slow, | 74 Label* slow, |
(...skipping 7982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8045 __ Pop(ra, t1, a1); | 8057 __ Pop(ra, t1, a1); |
8046 __ Ret(); | 8058 __ Ret(); |
8047 } | 8059 } |
8048 | 8060 |
8049 | 8061 |
8050 #undef __ | 8062 #undef __ |
8051 | 8063 |
8052 } } // namespace v8::internal | 8064 } } // namespace v8::internal |
8053 | 8065 |
8054 #endif // V8_TARGET_ARCH_MIPS | 8066 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |