| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 | 952 |
| 953 // Go to the next object in the prototype chain. | 953 // Go to the next object in the prototype chain. |
| 954 current = prototype; | 954 current = prototype; |
| 955 } | 955 } |
| 956 | 956 |
| 957 // Check the holder map. | 957 // Check the holder map. |
| 958 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset), Handle<Map>(holder->map())); | 958 __ Cmp(FieldOperand(reg, HeapObject::kMapOffset), Handle<Map>(holder->map())); |
| 959 __ j(not_equal, miss); | 959 __ j(not_equal, miss); |
| 960 | 960 |
| 961 // Log the check depth. | 961 // Log the check depth. |
| 962 LOG(IntEvent("check-maps-depth", depth + 1)); | 962 LOG(isolate(), IntEvent("check-maps-depth", depth + 1)); |
| 963 | 963 |
| 964 // Perform security check for access to the global object and return | 964 // Perform security check for access to the global object and return |
| 965 // the holder register. | 965 // the holder register. |
| 966 ASSERT(current == holder); | 966 ASSERT(current == holder); |
| 967 ASSERT(current->IsJSGlobalProxy() || !current->IsAccessCheckNeeded()); | 967 ASSERT(current->IsJSGlobalProxy() || !current->IsAccessCheckNeeded()); |
| 968 if (current->IsJSGlobalProxy()) { | 968 if (current->IsJSGlobalProxy()) { |
| 969 __ CheckAccessGlobalProxy(reg, scratch1, miss); | 969 __ CheckAccessGlobalProxy(reg, scratch1, miss); |
| 970 } | 970 } |
| 971 | 971 |
| 972 // If we've skipped any global objects, it's not enough to verify | 972 // If we've skipped any global objects, it's not enough to verify |
| (...skipping 2460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3433 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); | 3433 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); |
| 3434 | 3434 |
| 3435 return GetCode(flags); | 3435 return GetCode(flags); |
| 3436 } | 3436 } |
| 3437 | 3437 |
| 3438 #undef __ | 3438 #undef __ |
| 3439 | 3439 |
| 3440 } } // namespace v8::internal | 3440 } } // namespace v8::internal |
| 3441 | 3441 |
| 3442 #endif // V8_TARGET_ARCH_X64 | 3442 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |