| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 original_code->instruction_start() - code->instruction_start(); | 160 original_code->instruction_start() - code->instruction_start(); |
| 161 return addr + delta; | 161 return addr + delta; |
| 162 } | 162 } |
| 163 #endif | 163 #endif |
| 164 | 164 |
| 165 | 165 |
| 166 static bool HasNormalObjectsInPrototypeChain(Isolate* isolate, | 166 static bool HasNormalObjectsInPrototypeChain(Isolate* isolate, |
| 167 LookupResult* lookup, | 167 LookupResult* lookup, |
| 168 Object* receiver) { | 168 Object* receiver) { |
| 169 Object* end = lookup->IsProperty() | 169 Object* end = lookup->IsProperty() |
| 170 ? lookup->holder() : isolate->heap()->null_value(); | 170 ? lookup->holder() : Object::cast(isolate->heap()->null_value()); |
| 171 for (Object* current = receiver; | 171 for (Object* current = receiver; |
| 172 current != end; | 172 current != end; |
| 173 current = current->GetPrototype()) { | 173 current = current->GetPrototype()) { |
| 174 if (current->IsJSObject() && | 174 if (current->IsJSObject() && |
| 175 !JSObject::cast(current)->HasFastProperties() && | 175 !JSObject::cast(current)->HasFastProperties() && |
| 176 !current->IsJSGlobalProxy() && | 176 !current->IsJSGlobalProxy() && |
| 177 !current->IsJSGlobalObject()) { | 177 !current->IsJSGlobalObject()) { |
| 178 return true; | 178 return true; |
| 179 } | 179 } |
| 180 } | 180 } |
| (...skipping 2327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2508 #undef ADDR | 2508 #undef ADDR |
| 2509 }; | 2509 }; |
| 2510 | 2510 |
| 2511 | 2511 |
| 2512 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2512 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2513 return IC_utilities[id]; | 2513 return IC_utilities[id]; |
| 2514 } | 2514 } |
| 2515 | 2515 |
| 2516 | 2516 |
| 2517 } } // namespace v8::internal | 2517 } } // namespace v8::internal |
| OLD | NEW |