OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 5537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5548 if (lookup_.IsFound()) { | 5548 if (lookup_.IsFound()) { |
5549 if (IsLoad()) return true; | 5549 if (IsLoad()) return true; |
5550 return !lookup_.IsReadOnly() && lookup_.IsCacheable(); | 5550 return !lookup_.IsReadOnly() && lookup_.IsCacheable(); |
5551 } | 5551 } |
5552 if (!LookupInPrototypes()) return false; | 5552 if (!LookupInPrototypes()) return false; |
5553 if (IsLoad()) return true; | 5553 if (IsLoad()) return true; |
5554 | 5554 |
5555 if (lookup_.IsPropertyCallbacks()) return true; | 5555 if (lookup_.IsPropertyCallbacks()) return true; |
5556 Handle<Map> map = this->map(); | 5556 Handle<Map> map = this->map(); |
5557 map->LookupTransition(NULL, *name_, &lookup_); | 5557 map->LookupTransition(NULL, *name_, &lookup_); |
5558 if (lookup_.IsTransitionToField(*map) && map->unused_property_fields() > 0) { | 5558 if (lookup_.IsTransitionToField() && map->unused_property_fields() > 0) { |
5559 transition_ = handle(lookup_.GetTransitionMapFromMap(*map)); | |
5560 return true; | 5559 return true; |
5561 } | 5560 } |
5562 return false; | 5561 return false; |
5563 } | 5562 } |
5564 | 5563 |
5565 | 5564 |
5566 bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( | 5565 bool HOptimizedGraphBuilder::PropertyAccessInfo::CanAccessAsMonomorphic( |
5567 SmallMapList* types) { | 5566 SmallMapList* types) { |
5568 ASSERT(type_->Is(ToType(types->first()))); | 5567 ASSERT(type_->Is(ToType(types->first()))); |
5569 if (!CanAccessMonomorphic()) return false; | 5568 if (!CanAccessMonomorphic()) return false; |
(...skipping 5721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11291 if (ShouldProduceTraceOutput()) { | 11290 if (ShouldProduceTraceOutput()) { |
11292 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 11291 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
11293 } | 11292 } |
11294 | 11293 |
11295 #ifdef DEBUG | 11294 #ifdef DEBUG |
11296 graph_->Verify(false); // No full verify. | 11295 graph_->Verify(false); // No full verify. |
11297 #endif | 11296 #endif |
11298 } | 11297 } |
11299 | 11298 |
11300 } } // namespace v8::internal | 11299 } } // namespace v8::internal |
OLD | NEW |