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

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

Issue 104923010: Remove flag track-allocation-sites. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Included ports this time! Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 ZoneList<Expression*>* subexprs = expr->values(); 1770 ZoneList<Expression*>* subexprs = expr->values();
1771 int length = subexprs->length(); 1771 int length = subexprs->length();
1772 Handle<FixedArray> constant_elements = expr->constant_elements(); 1772 Handle<FixedArray> constant_elements = expr->constant_elements();
1773 ASSERT_EQ(2, constant_elements->length()); 1773 ASSERT_EQ(2, constant_elements->length());
1774 ElementsKind constant_elements_kind = 1774 ElementsKind constant_elements_kind =
1775 static_cast<ElementsKind>(Smi::cast(constant_elements->get(0))->value()); 1775 static_cast<ElementsKind>(Smi::cast(constant_elements->get(0))->value());
1776 bool has_fast_elements = IsFastObjectElementsKind(constant_elements_kind); 1776 bool has_fast_elements = IsFastObjectElementsKind(constant_elements_kind);
1777 Handle<FixedArrayBase> constant_elements_values( 1777 Handle<FixedArrayBase> constant_elements_values(
1778 FixedArrayBase::cast(constant_elements->get(1))); 1778 FixedArrayBase::cast(constant_elements->get(1)));
1779 1779
1780 AllocationSiteMode allocation_site_mode = FLAG_track_allocation_sites 1780 AllocationSiteMode allocation_site_mode = TRACK_ALLOCATION_SITE;
1781 ? TRACK_ALLOCATION_SITE : DONT_TRACK_ALLOCATION_SITE;
1782 if (has_fast_elements && !FLAG_allocation_site_pretenuring) { 1781 if (has_fast_elements && !FLAG_allocation_site_pretenuring) {
1783 // If the only customer of allocation sites is transitioning, then 1782 // If the only customer of allocation sites is transitioning, then
1784 // we can turn it off if we don't have anywhere else to transition to. 1783 // we can turn it off if we don't have anywhere else to transition to.
1785 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE; 1784 allocation_site_mode = DONT_TRACK_ALLOCATION_SITE;
1786 } 1785 }
1787 1786
1788 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 1787 __ ldr(r3, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
1789 __ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset)); 1788 __ ldr(r3, FieldMemOperand(r3, JSFunction::kLiteralsOffset));
1790 __ mov(r2, Operand(Smi::FromInt(expr->literal_index()))); 1789 __ mov(r2, Operand(Smi::FromInt(expr->literal_index())));
1791 __ mov(r1, Operand(constant_elements)); 1790 __ mov(r1, Operand(constant_elements));
(...skipping 3119 matching lines...) Expand 10 before | Expand all | Expand 10 after
4911 ASSERT(Memory::uint32_at(interrupt_address_pointer) == 4910 ASSERT(Memory::uint32_at(interrupt_address_pointer) ==
4912 reinterpret_cast<uint32_t>( 4911 reinterpret_cast<uint32_t>(
4913 isolate->builtins()->OsrAfterStackCheck()->entry())); 4912 isolate->builtins()->OsrAfterStackCheck()->entry()));
4914 return OSR_AFTER_STACK_CHECK; 4913 return OSR_AFTER_STACK_CHECK;
4915 } 4914 }
4916 4915
4917 4916
4918 } } // namespace v8::internal 4917 } } // namespace v8::internal
4919 4918
4920 #endif // V8_TARGET_ARCH_ARM 4919 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698