OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 // Check that the key is a smi. | 559 // Check that the key is a smi. |
560 __ tst(r0, Operand(kSmiTagMask)); | 560 __ tst(r0, Operand(kSmiTagMask)); |
561 __ b(ne, &slow); | 561 __ b(ne, &slow); |
562 __ mov(r0, Operand(r0, ASR, kSmiTagSize)); | 562 __ mov(r0, Operand(r0, ASR, kSmiTagSize)); |
563 // Check that the object isn't a smi. | 563 // Check that the object isn't a smi. |
564 __ tst(r1, Operand(kSmiTagMask)); | 564 __ tst(r1, Operand(kSmiTagMask)); |
565 __ b(eq, &slow); | 565 __ b(eq, &slow); |
566 | 566 |
567 // Get the map of the receiver. | 567 // Get the map of the receiver. |
568 __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset)); | 568 __ ldr(r2, FieldMemOperand(r1, HeapObject::kMapOffset)); |
569 // Check that the receiver does not require access checks. We need | 569 |
570 // to check this explicitly since this generic stub does not perform | 570 // Check bit field. |
571 // map checks. | |
572 __ ldrb(r3, FieldMemOperand(r2, Map::kBitFieldOffset)); | 571 __ ldrb(r3, FieldMemOperand(r2, Map::kBitFieldOffset)); |
573 __ tst(r3, Operand(1 << Map::kIsAccessCheckNeeded)); | 572 __ tst(r3, Operand(kSlowCaseBitFieldMask)); |
574 __ b(ne, &slow); | 573 __ b(ne, &slow); |
575 // Check that the object is some kind of JS object EXCEPT JS Value type. | 574 // Check that the object is some kind of JS object EXCEPT JS Value type. |
576 // In the case that the object is a value-wrapper object, | 575 // In the case that the object is a value-wrapper object, |
577 // we enter the runtime system to make sure that indexing into string | 576 // we enter the runtime system to make sure that indexing into string |
578 // objects work as intended. | 577 // objects work as intended. |
579 ASSERT(JS_OBJECT_TYPE > JS_VALUE_TYPE); | 578 ASSERT(JS_OBJECT_TYPE > JS_VALUE_TYPE); |
580 __ ldrb(r2, FieldMemOperand(r2, Map::kInstanceTypeOffset)); | 579 __ ldrb(r2, FieldMemOperand(r2, Map::kInstanceTypeOffset)); |
581 __ cmp(r2, Operand(JS_OBJECT_TYPE)); | 580 __ cmp(r2, Operand(JS_OBJECT_TYPE)); |
582 __ b(lt, &slow); | 581 __ b(lt, &slow); |
583 | 582 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 | 828 |
830 // Perform tail call to the entry. | 829 // Perform tail call to the entry. |
831 __ TailCallRuntime(f, 3, 1); | 830 __ TailCallRuntime(f, 3, 1); |
832 } | 831 } |
833 | 832 |
834 | 833 |
835 #undef __ | 834 #undef __ |
836 | 835 |
837 | 836 |
838 } } // namespace v8::internal | 837 } } // namespace v8::internal |
OLD | NEW |