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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1415 __ bind(&miss); | 1415 __ bind(&miss); |
1416 TailCallBuiltin(masm(), MissBuiltin(kind())); | 1416 TailCallBuiltin(masm(), MissBuiltin(kind())); |
1417 | 1417 |
1418 // Return the generated code. | 1418 // Return the generated code. |
1419 InlineCacheState state = | 1419 InlineCacheState state = |
1420 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC; | 1420 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC; |
1421 return GetICCode(kind(), type, name, state); | 1421 return GetICCode(kind(), type, name, state); |
1422 } | 1422 } |
1423 | 1423 |
1424 | 1424 |
| 1425 void StoreStubCompiler::GenerateStoreArrayLength() { |
| 1426 // Prepare tail call to StoreIC_ArrayLength. |
| 1427 __ Push(receiver(), value()); |
| 1428 |
| 1429 ExternalReference ref = |
| 1430 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), |
| 1431 masm()->isolate()); |
| 1432 __ TailCallExternalReference(ref, 2, 1); |
| 1433 } |
| 1434 |
| 1435 |
1425 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( | 1436 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( |
1426 MapHandleList* receiver_maps, | 1437 MapHandleList* receiver_maps, |
1427 CodeHandleList* handler_stubs, | 1438 CodeHandleList* handler_stubs, |
1428 MapHandleList* transitioned_maps) { | 1439 MapHandleList* transitioned_maps) { |
1429 Label miss; | 1440 Label miss; |
1430 __ JumpIfSmi(receiver(), &miss); | 1441 __ JumpIfSmi(receiver(), &miss); |
1431 | 1442 |
1432 int receiver_count = receiver_maps->length(); | 1443 int receiver_count = receiver_maps->length(); |
1433 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); | 1444 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); |
1434 for (int i = 0; i < receiver_count; ++i) { | 1445 for (int i = 0; i < receiver_count; ++i) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1498 // ----------------------------------- | 1509 // ----------------------------------- |
1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1510 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1500 } | 1511 } |
1501 | 1512 |
1502 | 1513 |
1503 #undef __ | 1514 #undef __ |
1504 | 1515 |
1505 } } // namespace v8::internal | 1516 } } // namespace v8::internal |
1506 | 1517 |
1507 #endif // V8_TARGET_ARCH_MIPS | 1518 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |