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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1295 context()->PlugTOS(); 1295 context()->PlugTOS();
1296 } else { 1296 } else {
1297 context()->Plug(r3); 1297 context()->Plug(r3);
1298 } 1298 }
1299 } 1299 }
1300 1300
1301 1301
1302 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) { 1302 void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
1303 Comment cmnt(masm_, "[ ArrayLiteral"); 1303 Comment cmnt(masm_, "[ ArrayLiteral");
1304 1304
1305 Handle<FixedArray> constant_elements = expr->constant_elements(); 1305 Handle<ConstantElementsPair> constant_elements = expr->constant_elements();
1306 bool has_fast_elements = 1306 bool has_fast_elements =
1307 IsFastObjectElementsKind(expr->constant_elements_kind()); 1307 IsFastObjectElementsKind(expr->constant_elements_kind());
1308 Handle<FixedArrayBase> constant_elements_values(
1309 FixedArrayBase::cast(constant_elements->get(1)));
1310 1308
1311 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE; 1309 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE;
1312 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { 1310 if (has_fast_elements && !FLAG_allocation_site_pretenuring) {
1313 // If the only customer of allocation sites is transitioning, then 1311 // If the only customer of allocation sites is transitioning, then
1314 // we can turn it off if we don't have anywhere else to transition to. 1312 // we can turn it off if we don't have anywhere else to transition to.
1315 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1313 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1316 } 1314 }
1317 1315
1318 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1316 __ LoadP(r6, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1319 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index())); 1317 __ LoadSmiLiteral(r5, Smi::FromInt(expr->literal_index()));
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 2856
2859 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2857 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2860 2858
2861 DCHECK(interrupt_address == 2859 DCHECK(interrupt_address ==
2862 isolate->builtins()->OnStackReplacement()->entry()); 2860 isolate->builtins()->OnStackReplacement()->entry());
2863 return ON_STACK_REPLACEMENT; 2861 return ON_STACK_REPLACEMENT;
2864 } 2862 }
2865 } // namespace internal 2863 } // namespace internal
2866 } // namespace v8 2864 } // namespace v8
2867 #endif // V8_TARGET_ARCH_PPC 2865 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698