Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 2581683003: Introduce {ConstantElementsPair} struct for type safety. (Closed)
Patch Set: Rebased. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698