| 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 3385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3396 // -- r2 : name | 3396 // -- r2 : name |
| 3397 // -- lr : return address | 3397 // -- lr : return address |
| 3398 // -- r0 : receiver | 3398 // -- r0 : receiver |
| 3399 // -- sp[0] : receiver | 3399 // -- sp[0] : receiver |
| 3400 // ----------------------------------- | 3400 // ----------------------------------- |
| 3401 receiver = r0; | 3401 receiver = r0; |
| 3402 } | 3402 } |
| 3403 | 3403 |
| 3404 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss); | 3404 StubCompiler::GenerateLoadFunctionPrototype(masm, receiver, r3, r4, &miss); |
| 3405 __ bind(&miss); | 3405 __ bind(&miss); |
| 3406 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); | 3406 StubCompiler::TailCallBuiltin( |
| 3407 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
| 3407 } | 3408 } |
| 3408 | 3409 |
| 3409 | 3410 |
| 3410 void StringLengthStub::Generate(MacroAssembler* masm) { | 3411 void StringLengthStub::Generate(MacroAssembler* masm) { |
| 3411 Label miss; | 3412 Label miss; |
| 3412 Register receiver; | 3413 Register receiver; |
| 3413 if (kind() == Code::KEYED_LOAD_IC) { | 3414 if (kind() == Code::KEYED_LOAD_IC) { |
| 3414 // ----------- S t a t e ------------- | 3415 // ----------- S t a t e ------------- |
| 3415 // -- lr : return address | 3416 // -- lr : return address |
| 3416 // -- r0 : key | 3417 // -- r0 : key |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3427 // -- r0 : receiver | 3428 // -- r0 : receiver |
| 3428 // -- sp[0] : receiver | 3429 // -- sp[0] : receiver |
| 3429 // ----------------------------------- | 3430 // ----------------------------------- |
| 3430 receiver = r0; | 3431 receiver = r0; |
| 3431 } | 3432 } |
| 3432 | 3433 |
| 3433 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss, | 3434 StubCompiler::GenerateLoadStringLength(masm, receiver, r3, r4, &miss, |
| 3434 support_wrapper_); | 3435 support_wrapper_); |
| 3435 | 3436 |
| 3436 __ bind(&miss); | 3437 __ bind(&miss); |
| 3437 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); | 3438 StubCompiler::TailCallBuiltin( |
| 3439 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
| 3438 } | 3440 } |
| 3439 | 3441 |
| 3440 | 3442 |
| 3441 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { | 3443 void StoreArrayLengthStub::Generate(MacroAssembler* masm) { |
| 3442 // This accepts as a receiver anything JSArray::SetElementsLength accepts | 3444 // This accepts as a receiver anything JSArray::SetElementsLength accepts |
| 3443 // (currently anything except for external arrays which means anything with | 3445 // (currently anything except for external arrays which means anything with |
| 3444 // elements of FixedArray type). Value must be a number, but only smis are | 3446 // elements of FixedArray type). Value must be a number, but only smis are |
| 3445 // accepted as the most common case. | 3447 // accepted as the most common case. |
| 3446 Label miss; | 3448 Label miss; |
| 3447 | 3449 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3497 | 3499 |
| 3498 // Prepare tail call to StoreIC_ArrayLength. | 3500 // Prepare tail call to StoreIC_ArrayLength. |
| 3499 __ Push(receiver, value); | 3501 __ Push(receiver, value); |
| 3500 | 3502 |
| 3501 ExternalReference ref = | 3503 ExternalReference ref = |
| 3502 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); | 3504 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), masm->isolate()); |
| 3503 __ TailCallExternalReference(ref, 2, 1); | 3505 __ TailCallExternalReference(ref, 2, 1); |
| 3504 | 3506 |
| 3505 __ bind(&miss); | 3507 __ bind(&miss); |
| 3506 | 3508 |
| 3507 StubCompiler::TailCallBuiltin(masm, StubCompiler::MissBuiltin(kind())); | 3509 StubCompiler::TailCallBuiltin( |
| 3510 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); |
| 3508 } | 3511 } |
| 3509 | 3512 |
| 3510 | 3513 |
| 3511 Register InstanceofStub::left() { return r0; } | 3514 Register InstanceofStub::left() { return r0; } |
| 3512 | 3515 |
| 3513 | 3516 |
| 3514 Register InstanceofStub::right() { return r1; } | 3517 Register InstanceofStub::right() { return r1; } |
| 3515 | 3518 |
| 3516 | 3519 |
| 3517 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { | 3520 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
| (...skipping 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7196 __ bind(&fast_elements_case); | 7199 __ bind(&fast_elements_case); |
| 7197 GenerateCase(masm, FAST_ELEMENTS); | 7200 GenerateCase(masm, FAST_ELEMENTS); |
| 7198 } | 7201 } |
| 7199 | 7202 |
| 7200 | 7203 |
| 7201 #undef __ | 7204 #undef __ |
| 7202 | 7205 |
| 7203 } } // namespace v8::internal | 7206 } } // namespace v8::internal |
| 7204 | 7207 |
| 7205 #endif // V8_TARGET_ARCH_ARM | 7208 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |