OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5630 HValue* context = environment()->LookupContext(); | 5630 HValue* context = environment()->LookupContext(); |
5631 return new(zone()) HLoadNamedGeneric(context, obj, name); | 5631 return new(zone()) HLoadNamedGeneric(context, obj, name); |
5632 } | 5632 } |
5633 | 5633 |
5634 | 5634 |
5635 static void LookupInPrototypes(Handle<Map> map, | 5635 static void LookupInPrototypes(Handle<Map> map, |
5636 Handle<String> name, | 5636 Handle<String> name, |
5637 LookupResult* lookup) { | 5637 LookupResult* lookup) { |
5638 while (map->prototype()->IsJSObject()) { | 5638 while (map->prototype()->IsJSObject()) { |
5639 Handle<JSObject> holder(JSObject::cast(map->prototype())); | 5639 Handle<JSObject> holder(JSObject::cast(map->prototype())); |
| 5640 if (!holder->HasFastProperties()) break; |
5640 map = Handle<Map>(holder->map()); | 5641 map = Handle<Map>(holder->map()); |
5641 map->LookupDescriptor(*holder, *name, lookup); | 5642 map->LookupDescriptor(*holder, *name, lookup); |
5642 if (lookup->IsFound()) return; | 5643 if (lookup->IsFound()) return; |
5643 } | 5644 } |
5644 lookup->NotFound(); | 5645 lookup->NotFound(); |
5645 } | 5646 } |
5646 | 5647 |
5647 | 5648 |
5648 HInstruction* HGraphBuilder::BuildCallGetter(HValue* obj, | 5649 HInstruction* HGraphBuilder::BuildCallGetter(HValue* obj, |
5649 Property* expr, | 5650 Property* expr, |
(...skipping 3916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9566 } | 9567 } |
9567 } | 9568 } |
9568 | 9569 |
9569 #ifdef DEBUG | 9570 #ifdef DEBUG |
9570 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 9571 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
9571 if (allocator_ != NULL) allocator_->Verify(); | 9572 if (allocator_ != NULL) allocator_->Verify(); |
9572 #endif | 9573 #endif |
9573 } | 9574 } |
9574 | 9575 |
9575 } } // namespace v8::internal | 9576 } } // namespace v8::internal |
OLD | NEW |