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

Side by Side Diff: src/ia32/code-stubs-ia32.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/flag-definitions.h ('k') | src/ia32/full-codegen-ia32.cc » ('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 5498 matching lines...) Expand 10 before | Expand all | Expand 10 after
5509 // If we reached this point there is a problem. 5509 // If we reached this point there is a problem.
5510 __ Abort(kUnexpectedElementsKindInArrayConstructor); 5510 __ Abort(kUnexpectedElementsKindInArrayConstructor);
5511 } else { 5511 } else {
5512 UNREACHABLE(); 5512 UNREACHABLE();
5513 } 5513 }
5514 } 5514 }
5515 5515
5516 5516
5517 template<class T> 5517 template<class T>
5518 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { 5518 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
5519 ElementsKind initial_kind = GetInitialFastElementsKind();
5520 ElementsKind initial_holey_kind = GetHoleyElementsKind(initial_kind);
5521
5522 int to_index = GetSequenceIndexFromFastElementsKind( 5519 int to_index = GetSequenceIndexFromFastElementsKind(
5523 TERMINAL_FAST_ELEMENTS_KIND); 5520 TERMINAL_FAST_ELEMENTS_KIND);
5524 for (int i = 0; i <= to_index; ++i) { 5521 for (int i = 0; i <= to_index; ++i) {
5525 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 5522 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
5526 T stub(kind); 5523 T stub(kind);
5527 stub.GetCode(isolate); 5524 stub.GetCode(isolate);
5528 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE || 5525 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
5529 (!FLAG_track_allocation_sites &&
5530 (kind == initial_kind || kind == initial_holey_kind))) {
5531 T stub1(kind, CONTEXT_CHECK_REQUIRED, DISABLE_ALLOCATION_SITES); 5526 T stub1(kind, CONTEXT_CHECK_REQUIRED, DISABLE_ALLOCATION_SITES);
5532 stub1.GetCode(isolate); 5527 stub1.GetCode(isolate);
5533 } 5528 }
5534 } 5529 }
5535 } 5530 }
5536 5531
5537 5532
5538 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { 5533 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) {
5539 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( 5534 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>(
5540 isolate); 5535 isolate);
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
5730 __ bind(&fast_elements_case); 5725 __ bind(&fast_elements_case);
5731 GenerateCase(masm, FAST_ELEMENTS); 5726 GenerateCase(masm, FAST_ELEMENTS);
5732 } 5727 }
5733 5728
5734 5729
5735 #undef __ 5730 #undef __
5736 5731
5737 } } // namespace v8::internal 5732 } } // namespace v8::internal
5738 5733
5739 #endif // V8_TARGET_ARCH_IA32 5734 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698