| 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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 argument_count); | 1254 argument_count); |
| 1255 if (save_doubles_ == kSaveFPRegs) { | 1255 if (save_doubles_ == kSaveFPRegs) { |
| 1256 __ MultiPopFPU(kCallerSavedFPU); | 1256 __ MultiPopFPU(kCallerSavedFPU); |
| 1257 } | 1257 } |
| 1258 | 1258 |
| 1259 __ MultiPop(kJSCallerSaved | ra.bit()); | 1259 __ MultiPop(kJSCallerSaved | ra.bit()); |
| 1260 __ Ret(); | 1260 __ Ret(); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 | 1263 |
| 1264 void BinaryOpStub::InitializeInterfaceDescriptor( | 1264 void BinaryOpICStub::InitializeInterfaceDescriptor( |
| 1265 Isolate* isolate, | 1265 Isolate* isolate, |
| 1266 CodeStubInterfaceDescriptor* descriptor) { | 1266 CodeStubInterfaceDescriptor* descriptor) { |
| 1267 static Register registers[] = { a1, a0 }; | 1267 static Register registers[] = { a1, a0 }; |
| 1268 descriptor->register_param_count_ = 2; | 1268 descriptor->register_param_count_ = 2; |
| 1269 descriptor->register_params_ = registers; | 1269 descriptor->register_params_ = registers; |
| 1270 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); | 1270 descriptor->deoptimization_handler_ = FUNCTION_ADDR(BinaryOpIC_Miss); |
| 1271 descriptor->SetMissHandler( | 1271 descriptor->SetMissHandler( |
| 1272 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate)); | 1272 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate)); |
| 1273 } | 1273 } |
| 1274 | 1274 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1728 } | 1728 } |
| 1729 | 1729 |
| 1730 | 1730 |
| 1731 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { | 1731 void CodeStub::GenerateStubsAheadOfTime(Isolate* isolate) { |
| 1732 CEntryStub::GenerateAheadOfTime(isolate); | 1732 CEntryStub::GenerateAheadOfTime(isolate); |
| 1733 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); | 1733 WriteInt32ToHeapNumberStub::GenerateFixedRegStubsAheadOfTime(isolate); |
| 1734 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); | 1734 StoreBufferOverflowStub::GenerateFixedRegStubsAheadOfTime(isolate); |
| 1735 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); | 1735 StubFailureTrampolineStub::GenerateAheadOfTime(isolate); |
| 1736 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 1736 ArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 1737 CreateAllocationSiteStub::GenerateAheadOfTime(isolate); | 1737 CreateAllocationSiteStub::GenerateAheadOfTime(isolate); |
| 1738 BinaryOpStub::GenerateAheadOfTime(isolate); | 1738 BinaryOpICStub::GenerateAheadOfTime(isolate); |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 | 1741 |
| 1742 void CodeStub::GenerateFPStubs(Isolate* isolate) { | 1742 void CodeStub::GenerateFPStubs(Isolate* isolate) { |
| 1743 SaveFPRegsMode mode = kSaveFPRegs; | 1743 SaveFPRegsMode mode = kSaveFPRegs; |
| 1744 CEntryStub save_doubles(1, mode); | 1744 CEntryStub save_doubles(1, mode); |
| 1745 StoreBufferOverflowStub stub(mode); | 1745 StoreBufferOverflowStub stub(mode); |
| 1746 // These stubs might already be in the snapshot, detect that and don't | 1746 // These stubs might already be in the snapshot, detect that and don't |
| 1747 // regenerate, which would lead to code stub initialization state being messed | 1747 // regenerate, which would lead to code stub initialization state being messed |
| 1748 // up. | 1748 // up. |
| (...skipping 4429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6178 __ bind(&fast_elements_case); | 6178 __ bind(&fast_elements_case); |
| 6179 GenerateCase(masm, FAST_ELEMENTS); | 6179 GenerateCase(masm, FAST_ELEMENTS); |
| 6180 } | 6180 } |
| 6181 | 6181 |
| 6182 | 6182 |
| 6183 #undef __ | 6183 #undef __ |
| 6184 | 6184 |
| 6185 } } // namespace v8::internal | 6185 } } // namespace v8::internal |
| 6186 | 6186 |
| 6187 #endif // V8_TARGET_ARCH_MIPS | 6187 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |