| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2053 // r0: argc | 2053 // r0: argc |
| 2054 // r1: constructor function | 2054 // r1: constructor function |
| 2055 // r2: initial map | 2055 // r2: initial map |
| 2056 // r7: undefined | 2056 // r7: undefined |
| 2057 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset)); | 2057 __ ldrb(r3, FieldMemOperand(r2, Map::kInstanceSizeOffset)); |
| 2058 __ AllocateInNewSpace(r3, | 2058 __ AllocateInNewSpace(r3, |
| 2059 r4, | 2059 r4, |
| 2060 r5, | 2060 r5, |
| 2061 r6, | 2061 r6, |
| 2062 &generic_stub_call, | 2062 &generic_stub_call, |
| 2063 NO_ALLOCATION_FLAGS); | 2063 SIZE_IN_WORDS); |
| 2064 | 2064 |
| 2065 // Allocated the JSObject, now initialize the fields. Map is set to initial | 2065 // Allocated the JSObject, now initialize the fields. Map is set to initial |
| 2066 // map and properties and elements are set to empty fixed array. | 2066 // map and properties and elements are set to empty fixed array. |
| 2067 // r0: argc | 2067 // r0: argc |
| 2068 // r1: constructor function | 2068 // r1: constructor function |
| 2069 // r2: initial map | 2069 // r2: initial map |
| 2070 // r3: object size (in words) | 2070 // r3: object size (in words) |
| 2071 // r4: JSObject (not tagged) | 2071 // r4: JSObject (not tagged) |
| 2072 // r7: undefined | 2072 // r7: undefined |
| 2073 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex); | 2073 __ LoadRoot(r6, Heap::kEmptyFixedArrayRootIndex); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2146 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); | 2146 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); |
| 2147 | 2147 |
| 2148 // Return the generated code. | 2148 // Return the generated code. |
| 2149 return GetCode(); | 2149 return GetCode(); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 | 2152 |
| 2153 #undef __ | 2153 #undef __ |
| 2154 | 2154 |
| 2155 } } // namespace v8::internal | 2155 } } // namespace v8::internal |
| OLD | NEW |