| 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 982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 if (save_at_depth == depth) { | 993 if (save_at_depth == depth) { |
| 994 __ mov(Operand(esp, kPointerSize), reg); | 994 __ mov(Operand(esp, kPointerSize), reg); |
| 995 } | 995 } |
| 996 | 996 |
| 997 // Go to the next object in the prototype chain. | 997 // Go to the next object in the prototype chain. |
| 998 current = prototype; | 998 current = prototype; |
| 999 } | 999 } |
| 1000 ASSERT(current == holder); | 1000 ASSERT(current == holder); |
| 1001 | 1001 |
| 1002 // Log the check depth. | 1002 // Log the check depth. |
| 1003 LOG(IntEvent("check-maps-depth", depth + 1)); | 1003 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
| 1004 | 1004 |
| 1005 // Check the holder map. | 1005 // Check the holder map. |
| 1006 __ cmp(FieldOperand(reg, HeapObject::kMapOffset), | 1006 __ cmp(FieldOperand(reg, HeapObject::kMapOffset), |
| 1007 Immediate(Handle<Map>(holder->map()))); | 1007 Immediate(Handle<Map>(holder->map()))); |
| 1008 __ j(not_equal, miss, not_taken); | 1008 __ j(not_equal, miss, not_taken); |
| 1009 | 1009 |
| 1010 // Perform security check for access to the global object. | 1010 // Perform security check for access to the global object. |
| 1011 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); | 1011 ASSERT(holder->IsJSGlobalProxy() || !holder->IsAccessCheckNeeded()); |
| 1012 if (holder->IsJSGlobalProxy()) { | 1012 if (holder->IsJSGlobalProxy()) { |
| 1013 __ CheckAccessGlobalProxy(reg, scratch1, miss); | 1013 __ CheckAccessGlobalProxy(reg, scratch1, miss); |
| (...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3665 | 3665 |
| 3666 return GetCode(flags); | 3666 return GetCode(flags); |
| 3667 } | 3667 } |
| 3668 | 3668 |
| 3669 | 3669 |
| 3670 #undef __ | 3670 #undef __ |
| 3671 | 3671 |
| 3672 } } // namespace v8::internal | 3672 } } // namespace v8::internal |
| 3673 | 3673 |
| 3674 #endif // V8_TARGET_ARCH_IA32 | 3674 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |