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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 JSObject* current = object; | 839 JSObject* current = object; |
840 while (current != holder) { | 840 while (current != holder) { |
841 if (current->IsGlobalObject()) { | 841 if (current->IsGlobalObject()) { |
842 // Returns a cell or a failure. | 842 // Returns a cell or a failure. |
843 MaybeObject* result = GenerateCheckPropertyCell( | 843 MaybeObject* result = GenerateCheckPropertyCell( |
844 masm, | 844 masm, |
845 GlobalObject::cast(current), | 845 GlobalObject::cast(current), |
846 name, | 846 name, |
847 scratch, | 847 scratch, |
848 miss); | 848 miss); |
849 if (result->IsFailure()) return t; | 849 if (result->IsFailure()) return result; |
850 } | 850 } |
851 ASSERT(current->IsJSObject()); | 851 ASSERT(current->IsJSObject()); |
852 current = JSObject::cast(current->GetPrototype()); | 852 current = JSObject::cast(current->GetPrototype()); |
853 } | 853 } |
854 return NULL; | 854 return NULL; |
855 } | 855 } |
856 | 856 |
857 | 857 |
858 #undef __ | 858 #undef __ |
859 #define __ ACCESS_MASM(masm()) | 859 #define __ ACCESS_MASM(masm()) |
(...skipping 2232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3092 // Return the generated code. | 3092 // Return the generated code. |
3093 return GetCode(); | 3093 return GetCode(); |
3094 } | 3094 } |
3095 | 3095 |
3096 | 3096 |
3097 #undef __ | 3097 #undef __ |
3098 | 3098 |
3099 } } // namespace v8::internal | 3099 } } // namespace v8::internal |
3100 | 3100 |
3101 #endif // V8_TARGET_ARCH_IA32 | 3101 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |