| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(r3, FieldMemOperand(t0, Map::kInstanceAttributesOffset)); | 70 __ ldr(r3, FieldMemOperand(t0, Map::kInstanceAttributesOffset)); |
| 71 __ tst(r3, 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. | 75 // Bail out if we have a JS global proxy object. |
| 76 __ ldrb(r3, FieldMemOperand(t0, Map::kInstanceTypeOffset)); | 76 __ ldrb(r3, FieldMemOperand(t0, Map::kInstanceTypeOffset)); |
| 77 __ cmp(r3, Operand(JS_GLOBAL_OBJECT_TYPE)); | 77 __ cmp(r3, Operand(JS_GLOBAL_PROXY_TYPE)); |
| 78 __ b(eq, miss); | 78 __ b(eq, miss); |
| 79 | 79 |
| 80 // Check that the properties array is a dictionary. | 80 // Check that the properties array is a dictionary. |
| 81 __ ldr(t0, FieldMemOperand(t1, JSObject::kPropertiesOffset)); | 81 __ ldr(t0, FieldMemOperand(t1, JSObject::kPropertiesOffset)); |
| 82 __ ldr(r3, FieldMemOperand(t0, HeapObject::kMapOffset)); | 82 __ ldr(r3, FieldMemOperand(t0, HeapObject::kMapOffset)); |
| 83 __ cmp(r3, Operand(Factory::hash_table_map())); | 83 __ cmp(r3, Operand(Factory::hash_table_map())); |
| 84 __ b(ne, miss); | 84 __ b(ne, miss); |
| 85 | 85 |
| 86 // Compute the capacity mask. | 86 // Compute the capacity mask. |
| 87 const int kCapacityOffset = | 87 const int kCapacityOffset = |
| (...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 | 798 |
| 799 // Perform tail call to the entry. | 799 // Perform tail call to the entry. |
| 800 __ TailCallRuntime(f, 3); | 800 __ TailCallRuntime(f, 3); |
| 801 } | 801 } |
| 802 | 802 |
| 803 | 803 |
| 804 #undef __ | 804 #undef __ |
| 805 | 805 |
| 806 | 806 |
| 807 } } // namespace v8::internal | 807 } } // namespace v8::internal |
| OLD | NEW |