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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 // dictionary. | 60 // dictionary. |
61 // | 61 // |
62 // r2 - holds the name of the property and is unchanges. | 62 // r2 - holds the name of the property and is unchanges. |
63 | 63 |
64 Label done; | 64 Label done; |
65 | 65 |
66 // Check for the absence of an interceptor. | 66 // Check for the absence of an interceptor. |
67 // Load the map into t0. | 67 // Load the map into t0. |
68 __ ldr(t0, FieldMemOperand(t1, JSObject::kMapOffset)); | 68 __ ldr(t0, FieldMemOperand(t1, JSObject::kMapOffset)); |
69 // Test the has_named_interceptor bit in the map. | 69 // Test the has_named_interceptor bit in the map. |
70 __ ldr(t0, FieldMemOperand(t1, Map::kInstanceAttributesOffset)); | 70 __ ldr(r3, FieldMemOperand(t0, Map::kInstanceAttributesOffset)); |
71 __ tst(t0, Operand(1 << (Map::kHasNamedInterceptor + (3 * 8)))); | 71 __ tst(r3, Operand(1 << (Map::kHasNamedInterceptor + (3 * 8)))); |
72 // Jump to miss if the interceptor bit is set. | 72 // Jump to miss if the interceptor bit is set. |
73 __ b(ne, miss); | 73 __ b(ne, miss); |
74 | 74 |
| 75 // Bail out if we have a JS global object. |
| 76 __ ldrb(r3, FieldMemOperand(t0, Map::kInstanceTypeOffset)); |
| 77 __ cmp(r3, Operand(JS_GLOBAL_OBJECT_TYPE)); |
| 78 __ b(eq, miss); |
75 | 79 |
76 // Check that the properties array is a dictionary. | 80 // Check that the properties array is a dictionary. |
77 __ ldr(t0, FieldMemOperand(t1, JSObject::kPropertiesOffset)); | 81 __ ldr(t0, FieldMemOperand(t1, JSObject::kPropertiesOffset)); |
78 __ ldr(r3, FieldMemOperand(t0, HeapObject::kMapOffset)); | 82 __ ldr(r3, FieldMemOperand(t0, HeapObject::kMapOffset)); |
79 __ cmp(r3, Operand(Factory::hash_table_map())); | 83 __ cmp(r3, Operand(Factory::hash_table_map())); |
80 __ b(ne, miss); | 84 __ b(ne, miss); |
81 | 85 |
82 // Compute the capacity mask. | 86 // Compute the capacity mask. |
83 const int kCapacityOffset = | 87 const int kCapacityOffset = |
84 Array::kHeaderSize + Dictionary::kCapacityIndex * kPointerSize; | 88 Array::kHeaderSize + Dictionary::kCapacityIndex * kPointerSize; |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 | 798 |
795 // Perform tail call to the entry. | 799 // Perform tail call to the entry. |
796 __ TailCallRuntime(f, 3); | 800 __ TailCallRuntime(f, 3); |
797 } | 801 } |
798 | 802 |
799 | 803 |
800 #undef __ | 804 #undef __ |
801 | 805 |
802 | 806 |
803 } } // namespace v8::internal | 807 } } // namespace v8::internal |
OLD | NEW |