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/crankshaft/hydrogen-instructions.h" | 5 #include "src/crankshaft/hydrogen-instructions.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/safe_math.h" | 8 #include "src/base/safe_math.h" |
9 #include "src/crankshaft/hydrogen-infer-representation.h" | 9 #include "src/crankshaft/hydrogen-infer-representation.h" |
10 #include "src/double.h" | 10 #include "src/double.h" |
(...skipping 3528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3539 if (names_cache->enumerable() == object()) { | 3539 if (names_cache->enumerable() == object()) { |
3540 HForInCacheArray* index_cache = | 3540 HForInCacheArray* index_cache = |
3541 names_cache->index_cache(); | 3541 names_cache->index_cache(); |
3542 HCheckMapValue* map_check = HCheckMapValue::New( | 3542 HCheckMapValue* map_check = HCheckMapValue::New( |
3543 block()->graph()->isolate(), block()->graph()->zone(), | 3543 block()->graph()->isolate(), block()->graph()->zone(), |
3544 block()->graph()->GetInvalidContext(), object(), | 3544 block()->graph()->GetInvalidContext(), object(), |
3545 names_cache->map()); | 3545 names_cache->map()); |
3546 HInstruction* index = HLoadKeyed::New( | 3546 HInstruction* index = HLoadKeyed::New( |
3547 block()->graph()->isolate(), block()->graph()->zone(), | 3547 block()->graph()->isolate(), block()->graph()->zone(), |
3548 block()->graph()->GetInvalidContext(), index_cache, key_load->key(), | 3548 block()->graph()->GetInvalidContext(), index_cache, key_load->key(), |
3549 key_load->key(), key_load->elements_kind()); | 3549 key_load->key(), nullptr, key_load->elements_kind()); |
3550 map_check->InsertBefore(this); | 3550 map_check->InsertBefore(this); |
3551 index->InsertBefore(this); | 3551 index->InsertBefore(this); |
3552 return Prepend(new(block()->zone()) HLoadFieldByIndex( | 3552 return Prepend(new(block()->zone()) HLoadFieldByIndex( |
3553 object(), index)); | 3553 object(), index)); |
3554 } | 3554 } |
3555 } | 3555 } |
3556 } | 3556 } |
3557 | 3557 |
3558 return this; | 3558 return this; |
3559 } | 3559 } |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4695 case HObjectAccess::kExternalMemory: | 4695 case HObjectAccess::kExternalMemory: |
4696 os << "[external-memory]"; | 4696 os << "[external-memory]"; |
4697 break; | 4697 break; |
4698 } | 4698 } |
4699 | 4699 |
4700 return os << "@" << access.offset(); | 4700 return os << "@" << access.offset(); |
4701 } | 4701 } |
4702 | 4702 |
4703 } // namespace internal | 4703 } // namespace internal |
4704 } // namespace v8 | 4704 } // namespace v8 |
OLD | NEW |