| 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 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4506 __ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_FUNCTION); | 4506 __ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_FUNCTION); |
| 4507 } | 4507 } |
| 4508 __ cmp(r0, Operand::Zero()); | 4508 __ cmp(r0, Operand::Zero()); |
| 4509 __ LoadRoot(r0, Heap::kTrueValueRootIndex, eq); | 4509 __ LoadRoot(r0, Heap::kTrueValueRootIndex, eq); |
| 4510 __ LoadRoot(r0, Heap::kFalseValueRootIndex, ne); | 4510 __ LoadRoot(r0, Heap::kFalseValueRootIndex, ne); |
| 4511 __ Ret(HasArgsInRegisters() ? 0 : 2); | 4511 __ Ret(HasArgsInRegisters() ? 0 : 2); |
| 4512 } | 4512 } |
| 4513 } | 4513 } |
| 4514 | 4514 |
| 4515 | 4515 |
| 4516 void ArrayLengthStub::Generate(MacroAssembler* masm) { | |
| 4517 Label miss; | |
| 4518 Register receiver; | |
| 4519 if (kind() == Code::KEYED_LOAD_IC) { | |
| 4520 // ----------- S t a t e ------------- | |
| 4521 // -- lr : return address | |
| 4522 // -- r0 : key | |
| 4523 // -- r1 : receiver | |
| 4524 // ----------------------------------- | |
| 4525 __ cmp(r0, Operand(masm->isolate()->factory()->length_string())); | |
| 4526 __ b(ne, &miss); | |
| 4527 receiver = r1; | |
| 4528 } else { | |
| 4529 ASSERT(kind() == Code::LOAD_IC); | |
| 4530 // ----------- S t a t e ------------- | |
| 4531 // -- r2 : name | |
| 4532 // -- lr : return address | |
| 4533 // -- r0 : receiver | |
| 4534 // -- sp[0] : receiver | |
| 4535 // ----------------------------------- | |
| 4536 receiver = r0; | |
| 4537 } | |
| 4538 | |
| 4539 StubCompiler::GenerateLoadArrayLength(masm, receiver, r3, &miss); | |
| 4540 __ bind(&miss); | |
| 4541 StubCompiler::GenerateLoadMiss(masm, kind()); | |
| 4542 } | |
| 4543 | |
| 4544 | |
| 4545 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 4516 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 4546 Label miss; | 4517 Label miss; |
| 4547 Register receiver; | 4518 Register receiver; |
| 4548 if (kind() == Code::KEYED_LOAD_IC) { | 4519 if (kind() == Code::KEYED_LOAD_IC) { |
| 4549 // ----------- S t a t e ------------- | 4520 // ----------- S t a t e ------------- |
| 4550 // -- lr : return address | 4521 // -- lr : return address |
| 4551 // -- r0 : key | 4522 // -- r0 : key |
| 4552 // -- r1 : receiver | 4523 // -- r1 : receiver |
| 4553 // ----------------------------------- | 4524 // ----------------------------------- |
| 4554 __ cmp(r0, Operand(masm->isolate()->factory()->prototype_string())); | 4525 __ cmp(r0, Operand(masm->isolate()->factory()->prototype_string())); |
| (...skipping 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8087 | 8058 |
| 8088 __ Pop(lr, r5, r1); | 8059 __ Pop(lr, r5, r1); |
| 8089 __ Ret(); | 8060 __ Ret(); |
| 8090 } | 8061 } |
| 8091 | 8062 |
| 8092 #undef __ | 8063 #undef __ |
| 8093 | 8064 |
| 8094 } } // namespace v8::internal | 8065 } } // namespace v8::internal |
| 8095 | 8066 |
| 8096 #endif // V8_TARGET_ARCH_ARM | 8067 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |