| 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1679 // -- esp[(argc + 1) * 4] : receiver | 1679 // -- esp[(argc + 1) * 4] : receiver |
| 1680 // ----------------------------------- | 1680 // ----------------------------------- |
| 1681 | 1681 |
| 1682 // If object is not a string, bail out to regular call. | 1682 // If object is not a string, bail out to regular call. |
| 1683 if (!object->IsString() || cell != NULL) return Heap::undefined_value(); | 1683 if (!object->IsString() || cell != NULL) return Heap::undefined_value(); |
| 1684 | 1684 |
| 1685 const int argc = arguments().immediate(); | 1685 const int argc = arguments().immediate(); |
| 1686 | 1686 |
| 1687 Label miss; | 1687 Label miss; |
| 1688 Label index_out_of_range; | 1688 Label index_out_of_range; |
| 1689 |
| 1689 GenerateNameCheck(name, &miss); | 1690 GenerateNameCheck(name, &miss); |
| 1690 | 1691 |
| 1691 // Check that the maps starting from the prototype haven't changed. | 1692 // Check that the maps starting from the prototype haven't changed. |
| 1692 GenerateDirectLoadGlobalFunctionPrototype(masm(), | 1693 GenerateDirectLoadGlobalFunctionPrototype(masm(), |
| 1693 Context::STRING_FUNCTION_INDEX, | 1694 Context::STRING_FUNCTION_INDEX, |
| 1694 eax, | 1695 eax, |
| 1695 &miss); | 1696 &miss); |
| 1696 ASSERT(object != holder); | 1697 ASSERT(object != holder); |
| 1697 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder, | 1698 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder, |
| 1698 ebx, edx, edi, name, &miss); | 1699 ebx, edx, edi, name, &miss); |
| (...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3282 // Return the generated code. | 3283 // Return the generated code. |
| 3283 return GetCode(); | 3284 return GetCode(); |
| 3284 } | 3285 } |
| 3285 | 3286 |
| 3286 | 3287 |
| 3287 #undef __ | 3288 #undef __ |
| 3288 | 3289 |
| 3289 } } // namespace v8::internal | 3290 } } // namespace v8::internal |
| 3290 | 3291 |
| 3291 #endif // V8_TARGET_ARCH_IA32 | 3292 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |