| 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 "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #include "arm64/lithium-codegen-arm64.h" | 7 #include "arm64/lithium-codegen-arm64.h" |
| 8 #include "arm64/lithium-gap-resolver-arm64.h" | 8 #include "arm64/lithium-gap-resolver-arm64.h" |
| 9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
| 10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
| (...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2125 Register map_reg = ToRegister(instr->temp()); | 2125 Register map_reg = ToRegister(instr->temp()); |
| 2126 | 2126 |
| 2127 __ Ldr(map_reg, FieldMemOperand(object, HeapObject::kMapOffset)); | 2127 __ Ldr(map_reg, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 2128 | 2128 |
| 2129 DeferredCheckMaps* deferred = NULL; | 2129 DeferredCheckMaps* deferred = NULL; |
| 2130 if (instr->hydrogen()->has_migration_target()) { | 2130 if (instr->hydrogen()->has_migration_target()) { |
| 2131 deferred = new(zone()) DeferredCheckMaps(this, instr, object); | 2131 deferred = new(zone()) DeferredCheckMaps(this, instr, object); |
| 2132 __ Bind(deferred->check_maps()); | 2132 __ Bind(deferred->check_maps()); |
| 2133 } | 2133 } |
| 2134 | 2134 |
| 2135 const UniqueSet<Map>* map_set = instr->hydrogen()->map_set(); | 2135 const UniqueSet<Map>* maps = instr->hydrogen()->maps(); |
| 2136 Label success; | 2136 Label success; |
| 2137 for (int i = 0; i < map_set->size() - 1; i++) { | 2137 for (int i = 0; i < maps->size() - 1; i++) { |
| 2138 Handle<Map> map = map_set->at(i).handle(); | 2138 Handle<Map> map = maps->at(i).handle(); |
| 2139 __ CompareMap(map_reg, map); | 2139 __ CompareMap(map_reg, map); |
| 2140 __ B(eq, &success); | 2140 __ B(eq, &success); |
| 2141 } | 2141 } |
| 2142 Handle<Map> map = map_set->at(map_set->size() - 1).handle(); | 2142 Handle<Map> map = maps->at(maps->size() - 1).handle(); |
| 2143 __ CompareMap(map_reg, map); | 2143 __ CompareMap(map_reg, map); |
| 2144 | 2144 |
| 2145 // We didn't match a map. | 2145 // We didn't match a map. |
| 2146 if (instr->hydrogen()->has_migration_target()) { | 2146 if (instr->hydrogen()->has_migration_target()) { |
| 2147 __ B(ne, deferred->entry()); | 2147 __ B(ne, deferred->entry()); |
| 2148 } else { | 2148 } else { |
| 2149 DeoptimizeIf(ne, instr->environment()); | 2149 DeoptimizeIf(ne, instr->environment()); |
| 2150 } | 2150 } |
| 2151 | 2151 |
| 2152 __ Bind(&success); | 2152 __ Bind(&success); |
| (...skipping 3790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5943 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5943 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5944 // Index is equal to negated out of object property index plus 1. | 5944 // Index is equal to negated out of object property index plus 1. |
| 5945 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5945 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5946 __ Ldr(result, FieldMemOperand(result, | 5946 __ Ldr(result, FieldMemOperand(result, |
| 5947 FixedArray::kHeaderSize - kPointerSize)); | 5947 FixedArray::kHeaderSize - kPointerSize)); |
| 5948 __ Bind(deferred->exit()); | 5948 __ Bind(deferred->exit()); |
| 5949 __ Bind(&done); | 5949 __ Bind(&done); |
| 5950 } | 5950 } |
| 5951 | 5951 |
| 5952 } } // namespace v8::internal | 5952 } } // namespace v8::internal |
| OLD | NEW |