| 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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 6 | 6 |
| 7 #include "src/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
| 8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 context()->PlugTOS(); | 1311 context()->PlugTOS(); |
| 1312 } else { | 1312 } else { |
| 1313 context()->Plug(x0); | 1313 context()->Plug(x0); |
| 1314 } | 1314 } |
| 1315 } | 1315 } |
| 1316 | 1316 |
| 1317 | 1317 |
| 1318 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1318 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 1319 Comment cmnt(masm_, "[ ArrayLiteral"); | 1319 Comment cmnt(masm_, "[ ArrayLiteral"); |
| 1320 | 1320 |
| 1321 Handle<FixedArray> constant_elements = expr->constant_elements(); | 1321 Handle<ConstantElementsPair> constant_elements = expr->constant_elements(); |
| 1322 bool has_fast_elements = | 1322 bool has_fast_elements = |
| 1323 IsFastObjectElementsKind(expr->constant_elements_kind()); | 1323 IsFastObjectElementsKind(expr->constant_elements_kind()); |
| 1324 | 1324 |
| 1325 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; | 1325 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; |
| 1326 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { | 1326 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { |
| 1327 // If the only customer of allocation sites is transitioning, then | 1327 // If the only customer of allocation sites is transitioning, then |
| 1328 // we can turn it off if we don't have anywhere else to transition to. | 1328 // we can turn it off if we don't have anywhere else to transition to. |
| 1329 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; | 1329 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; |
| 1330 } | 1330 } |
| 1331 | 1331 |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2918 } | 2918 } |
| 2919 | 2919 |
| 2920 return INTERRUPT; | 2920 return INTERRUPT; |
| 2921 } | 2921 } |
| 2922 | 2922 |
| 2923 | 2923 |
| 2924 } // namespace internal | 2924 } // namespace internal |
| 2925 } // namespace v8 | 2925 } // namespace v8 |
| 2926 | 2926 |
| 2927 #endif // V8_TARGET_ARCH_ARM64 | 2927 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |