| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 __ CheckAccessGlobalProxy(receiver_reg, scratch, miss_label); | 377 __ CheckAccessGlobalProxy(receiver_reg, scratch, miss_label); |
| 378 } | 378 } |
| 379 | 379 |
| 380 // Stub never generated for non-global objects that require access | 380 // Stub never generated for non-global objects that require access |
| 381 // checks. | 381 // checks. |
| 382 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); | 382 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); |
| 383 | 383 |
| 384 // Perform map transition for the receiver if necessary. | 384 // Perform map transition for the receiver if necessary. |
| 385 if ((transition != NULL) && (object->map()->unused_property_fields() == 0)) { | 385 if ((transition != NULL) && (object->map()->unused_property_fields() == 0)) { |
| 386 // The properties must be extended before we can store the value. | 386 // The properties must be extended before we can store the value. |
| 387 // We jump to a runtime call that extends the propeties array. | 387 // We jump to a runtime call that extends the properties array. |
| 388 __ mov(r2, Operand(Handle<Map>(transition))); | 388 __ mov(r2, Operand(Handle<Map>(transition))); |
| 389 // Please note, if we implement keyed store for arm we need | 389 // Please note, if we implement keyed store for arm we need |
| 390 // to call the Builtins::KeyedStoreIC_ExtendStorage. | 390 // to call the Builtins::KeyedStoreIC_ExtendStorage. |
| 391 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_ExtendStorage)); | 391 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_ExtendStorage)); |
| 392 __ Jump(ic, RelocInfo::CODE_TARGET); | 392 __ Jump(ic, RelocInfo::CODE_TARGET); |
| 393 return; | 393 return; |
| 394 } | 394 } |
| 395 | 395 |
| 396 if (transition != NULL) { | 396 if (transition != NULL) { |
| 397 // Update the map of the object; no write barrier updating is | 397 // Update the map of the object; no write barrier updating is |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1139 __ Jump(ic, RelocInfo::CODE_TARGET); | 1139 __ Jump(ic, RelocInfo::CODE_TARGET); |
| 1140 | 1140 |
| 1141 // Return the generated code. | 1141 // Return the generated code. |
| 1142 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION); | 1142 return GetCode(transition == NULL ? FIELD : MAP_TRANSITION); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 | 1145 |
| 1146 #undef __ | 1146 #undef __ |
| 1147 | 1147 |
| 1148 } } // namespace v8::internal | 1148 } } // namespace v8::internal |
| OLD | NEW |