| 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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1690 // -- esp[(argc + 1) * 4] : receiver | 1690 // -- esp[(argc + 1) * 4] : receiver |
| 1691 // ----------------------------------- | 1691 // ----------------------------------- |
| 1692 | 1692 |
| 1693 // If object is not a string, bail out to regular call. | 1693 // If object is not a string, bail out to regular call. |
| 1694 if (!object->IsString() || cell != NULL) return Heap::undefined_value(); | 1694 if (!object->IsString() || cell != NULL) return Heap::undefined_value(); |
| 1695 | 1695 |
| 1696 const int argc = arguments().immediate(); | 1696 const int argc = arguments().immediate(); |
| 1697 | 1697 |
| 1698 Label miss; | 1698 Label miss; |
| 1699 Label index_out_of_range; | 1699 Label index_out_of_range; |
| 1700 |
| 1700 GenerateNameCheck(name, &miss); | 1701 GenerateNameCheck(name, &miss); |
| 1701 | 1702 |
| 1702 // Check that the maps starting from the prototype haven't changed. | 1703 // Check that the maps starting from the prototype haven't changed. |
| 1703 GenerateDirectLoadGlobalFunctionPrototype(masm(), | 1704 GenerateDirectLoadGlobalFunctionPrototype(masm(), |
| 1704 Context::STRING_FUNCTION_INDEX, | 1705 Context::STRING_FUNCTION_INDEX, |
| 1705 eax, | 1706 eax, |
| 1706 &miss); | 1707 &miss); |
| 1707 ASSERT(object != holder); | 1708 ASSERT(object != holder); |
| 1708 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder, | 1709 CheckPrototypes(JSObject::cast(object->GetPrototype()), eax, holder, |
| 1709 ebx, edx, edi, name, &miss); | 1710 ebx, edx, edi, name, &miss); |
| (...skipping 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3295 // Return the generated code. | 3296 // Return the generated code. |
| 3296 return GetCode(); | 3297 return GetCode(); |
| 3297 } | 3298 } |
| 3298 | 3299 |
| 3299 | 3300 |
| 3300 #undef __ | 3301 #undef __ |
| 3301 | 3302 |
| 3302 } } // namespace v8::internal | 3303 } } // namespace v8::internal |
| 3303 | 3304 |
| 3304 #endif // V8_TARGET_ARCH_IA32 | 3305 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |