| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1325 context()->PlugTOS(); | 1325 context()->PlugTOS(); |
| 1326 } else { | 1326 } else { |
| 1327 context()->Plug(v0); | 1327 context()->Plug(v0); |
| 1328 } | 1328 } |
| 1329 } | 1329 } |
| 1330 | 1330 |
| 1331 | 1331 |
| 1332 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { | 1332 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { |
| 1333 Comment cmnt(masm_, "[ ArrayLiteral"); | 1333 Comment cmnt(masm_, "[ ArrayLiteral"); |
| 1334 | 1334 |
| 1335 Handle<FixedArray> constant_elements = expr->constant_elements(); | 1335 Handle<ConstantElementsPair> constant_elements = expr->constant_elements(); |
| 1336 bool has_fast_elements = | 1336 bool has_fast_elements = |
| 1337 IsFastObjectElementsKind(expr->constant_elements_kind()); | 1337 IsFastObjectElementsKind(expr->constant_elements_kind()); |
| 1338 | 1338 |
| 1339 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; | 1339 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; |
| 1340 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { | 1340 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { |
| 1341 // If the only customer of allocation sites is transitioning, then | 1341 // If the only customer of allocation sites is transitioning, then |
| 1342 // we can turn it off if we don't have anywhere else to transition to. | 1342 // we can turn it off if we don't have anywhere else to transition to. |
| 1343 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; | 1343 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; |
| 1344 } | 1344 } |
| 1345 | 1345 |
| (...skipping 1531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2877 reinterpret_cast<uint32_t>( | 2877 reinterpret_cast<uint32_t>( |
| 2878 isolate->builtins()->OnStackReplacement()->entry())); | 2878 isolate->builtins()->OnStackReplacement()->entry())); |
| 2879 return ON_STACK_REPLACEMENT; | 2879 return ON_STACK_REPLACEMENT; |
| 2880 } | 2880 } |
| 2881 | 2881 |
| 2882 | 2882 |
| 2883 } // namespace internal | 2883 } // namespace internal |
| 2884 } // namespace v8 | 2884 } // namespace v8 |
| 2885 | 2885 |
| 2886 #endif // V8_TARGET_ARCH_MIPS | 2886 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |