| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/field-index.h" | 8 #include "src/field-index.h" |
| 9 #include "src/hydrogen.h" | 9 #include "src/hydrogen.h" |
| 10 #include "src/lithium.h" | 10 #include "src/lithium.h" |
| (...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 BuildNonGlobalObjectCheck(receiver); | 1625 BuildNonGlobalObjectCheck(receiver); |
| 1626 | 1626 |
| 1627 HValue* properties = Add<HLoadNamedField>( | 1627 HValue* properties = Add<HLoadNamedField>( |
| 1628 receiver, static_cast<HValue*>(NULL), | 1628 receiver, static_cast<HValue*>(NULL), |
| 1629 HObjectAccess::ForPropertiesPointer()); | 1629 HObjectAccess::ForPropertiesPointer()); |
| 1630 | 1630 |
| 1631 HValue* hash = | 1631 HValue* hash = |
| 1632 Add<HLoadNamedField>(key, static_cast<HValue*>(NULL), | 1632 Add<HLoadNamedField>(key, static_cast<HValue*>(NULL), |
| 1633 HObjectAccess::ForNameHashField()); | 1633 HObjectAccess::ForNameHashField()); |
| 1634 | 1634 |
| 1635 hash = AddUncasted<HShr>(hash, Add<HConstant>(Name::kHashShift)); |
| 1636 |
| 1635 HValue* value = BuildUncheckedDictionaryElementLoad(receiver, | 1637 HValue* value = BuildUncheckedDictionaryElementLoad(receiver, |
| 1636 properties, | 1638 properties, |
| 1637 key, | 1639 key, |
| 1638 hash); | 1640 hash); |
| 1639 Push(value); | 1641 Push(value); |
| 1640 } | 1642 } |
| 1641 if_dict_properties.Else(); | 1643 if_dict_properties.Else(); |
| 1642 { | 1644 { |
| 1643 // Key is string, properties are fast mode | 1645 // Key is string, properties are fast mode |
| 1644 HValue* hash = BuildKeyedLookupCacheHash(receiver, key); | 1646 HValue* hash = BuildKeyedLookupCacheHash(receiver, key); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1704 return Pop(); | 1706 return Pop(); |
| 1705 } | 1707 } |
| 1706 | 1708 |
| 1707 | 1709 |
| 1708 Handle<Code> KeyedLoadGenericElementStub::GenerateCode() { | 1710 Handle<Code> KeyedLoadGenericElementStub::GenerateCode() { |
| 1709 return DoGenerateCode(this); | 1711 return DoGenerateCode(this); |
| 1710 } | 1712 } |
| 1711 | 1713 |
| 1712 | 1714 |
| 1713 } } // namespace v8::internal | 1715 } } // namespace v8::internal |
| OLD | NEW |