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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 16206007: Turn off allocation site info for crankshafted array constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
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 7800 matching lines...) Expand 10 before | Expand all | Expand 10 after
7811 __ Abort("Unexpected ElementsKind in array constructor"); 7811 __ Abort("Unexpected ElementsKind in array constructor");
7812 } 7812 }
7813 7813
7814 7814
7815 template<class T> 7815 template<class T>
7816 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { 7816 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
7817 int to_index = GetSequenceIndexFromFastElementsKind( 7817 int to_index = GetSequenceIndexFromFastElementsKind(
7818 TERMINAL_FAST_ELEMENTS_KIND); 7818 TERMINAL_FAST_ELEMENTS_KIND);
7819 for (int i = 0; i <= to_index; ++i) { 7819 for (int i = 0; i <= to_index; ++i) {
7820 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 7820 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
7821 T stub(kind); 7821 T stub(kind, false);
7822 stub.GetCode(isolate)->set_is_pregenerated(true); 7822 stub.GetCode(isolate)->set_is_pregenerated(true);
7823 if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
7824 T stub1(kind, true);
7825 stub1.GetCode(isolate)->set_is_pregenerated(true);
7826 }
7823 } 7827 }
7824 } 7828 }
7825 7829
7826 7830
7827 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { 7831 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) {
7828 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( 7832 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>(
7829 isolate); 7833 isolate);
7830 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>( 7834 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>(
7831 isolate); 7835 isolate);
7832 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>( 7836 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>(
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
7917 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 7921 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
7918 } 7922 }
7919 } 7923 }
7920 7924
7921 7925
7922 #undef __ 7926 #undef __
7923 7927
7924 } } // namespace v8::internal 7928 } } // namespace v8::internal
7925 7929
7926 #endif // V8_TARGET_ARCH_IA32 7930 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/code-stubs.h ('K') | « src/hydrogen.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698