| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 6029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6040 | 6040 |
| 6041 // Add dependency on the map that introduced the field. | 6041 // Add dependency on the map that introduced the field. |
| 6042 Map::AddDependentCompilationInfo(GetFieldOwnerFromMap(map), | 6042 Map::AddDependentCompilationInfo(GetFieldOwnerFromMap(map), |
| 6043 DependentCode::kFieldTypeGroup, top_info()); | 6043 DependentCode::kFieldTypeGroup, top_info()); |
| 6044 } | 6044 } |
| 6045 | 6045 |
| 6046 | 6046 |
| 6047 bool HOptimizedGraphBuilder::PropertyAccessInfo::LookupInPrototypes() { | 6047 bool HOptimizedGraphBuilder::PropertyAccessInfo::LookupInPrototypes() { |
| 6048 Handle<Map> map = this->map(); | 6048 Handle<Map> map = this->map(); |
| 6049 | 6049 |
| 6050 if (name_->IsOwn()) { |
| 6051 lookup_.NotFound(); |
| 6052 return true; |
| 6053 } |
| 6050 while (map->prototype()->IsJSObject()) { | 6054 while (map->prototype()->IsJSObject()) { |
| 6051 holder_ = handle(JSObject::cast(map->prototype())); | 6055 holder_ = handle(JSObject::cast(map->prototype())); |
| 6052 if (holder_->map()->is_deprecated()) { | 6056 if (holder_->map()->is_deprecated()) { |
| 6053 JSObject::TryMigrateInstance(holder_); | 6057 JSObject::TryMigrateInstance(holder_); |
| 6054 } | 6058 } |
| 6055 map = Handle<Map>(holder_->map()); | 6059 map = Handle<Map>(holder_->map()); |
| 6056 if (!CanInlinePropertyAccess(ToType(map))) { | 6060 if (!CanInlinePropertyAccess(ToType(map))) { |
| 6057 lookup_.NotFound(); | 6061 lookup_.NotFound(); |
| 6058 return false; | 6062 return false; |
| 6059 } | 6063 } |
| (...skipping 6428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12488 if (ShouldProduceTraceOutput()) { | 12492 if (ShouldProduceTraceOutput()) { |
| 12489 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 12493 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 12490 } | 12494 } |
| 12491 | 12495 |
| 12492 #ifdef DEBUG | 12496 #ifdef DEBUG |
| 12493 graph_->Verify(false); // No full verify. | 12497 graph_->Verify(false); // No full verify. |
| 12494 #endif | 12498 #endif |
| 12495 } | 12499 } |
| 12496 | 12500 |
| 12497 } } // namespace v8::internal | 12501 } } // namespace v8::internal |
| OLD | NEW |