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 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
6 | 6 |
7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
8 // | 8 // |
9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1327 context()->PlugTOS(); | 1327 context()->PlugTOS(); |
1328 } else { | 1328 } else { |
1329 context()->Plug(v0); | 1329 context()->Plug(v0); |
1330 } | 1330 } |
1331 } | 1331 } |
1332 | 1332 |
1333 | 1333 |
1334 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1334 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
1335 Comment cmnt(masm_, "[ ArrayLiteral"); | 1335 Comment cmnt(masm_, "[ ArrayLiteral"); |
1336 | 1336 |
1337 Handle<FixedArray> constant_elements = expr->constant_elements(); | 1337 Handle<ConstantElementsPair> constant_elements = expr->constant_elements(); |
1338 bool has_fast_elements = | 1338 bool has_fast_elements = |
1339 IsFastObjectElementsKind(expr->constant_elements_kind()); | 1339 IsFastObjectElementsKind(expr->constant_elements_kind()); |
1340 | 1340 |
1341 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; | 1341 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; |
1342 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { | 1342 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { |
1343 // If the only customer of allocation sites is transitioning, then | 1343 // If the only customer of allocation sites is transitioning, then |
1344 // we can turn it off if we don't have anywhere else to transition to. | 1344 // we can turn it off if we don't have anywhere else to transition to. |
1345 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; | 1345 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; |
1346 } | 1346 } |
1347 | 1347 |
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2886 reinterpret_cast<uint64_t>( | 2886 reinterpret_cast<uint64_t>( |
2887 isolate->builtins()->OnStackReplacement()->entry())); | 2887 isolate->builtins()->OnStackReplacement()->entry())); |
2888 return ON_STACK_REPLACEMENT; | 2888 return ON_STACK_REPLACEMENT; |
2889 } | 2889 } |
2890 | 2890 |
2891 | 2891 |
2892 } // namespace internal | 2892 } // namespace internal |
2893 } // namespace v8 | 2893 } // namespace v8 |
2894 | 2894 |
2895 #endif // V8_TARGET_ARCH_MIPS64 | 2895 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |