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

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

Issue 15094018: Create AllocationSite objects, pointed to by AllocationSiteInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some cleanup 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 7855 matching lines...) Expand 10 before | Expand all | Expand 10 after
7866 7866
7867 7867
7868 template<class T> 7868 template<class T>
7869 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { 7869 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
7870 int to_index = GetSequenceIndexFromFastElementsKind( 7870 int to_index = GetSequenceIndexFromFastElementsKind(
7871 TERMINAL_FAST_ELEMENTS_KIND); 7871 TERMINAL_FAST_ELEMENTS_KIND);
7872 for (int i = 0; i <= to_index; ++i) { 7872 for (int i = 0; i <= to_index; ++i) {
7873 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 7873 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
7874 T stub(kind, false); 7874 T stub(kind, false);
7875 stub.GetCode(isolate)->set_is_pregenerated(true); 7875 stub.GetCode(isolate)->set_is_pregenerated(true);
7876 if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) { 7876 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
7877 T stub1(kind, true); 7877 T stub1(kind, true);
7878 stub1.GetCode(isolate)->set_is_pregenerated(true); 7878 stub1.GetCode(isolate)->set_is_pregenerated(true);
7879 } 7879 }
7880 } 7880 }
7881 } 7881 }
7882 7882
7883 7883
7884 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { 7884 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) {
7885 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( 7885 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>(
7886 isolate); 7886 isolate);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
8090 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET); 8090 __ jmp(generic_construct_stub, RelocInfo::CODE_TARGET);
8091 } 8091 }
8092 } 8092 }
8093 8093
8094 8094
8095 #undef __ 8095 #undef __
8096 8096
8097 } } // namespace v8::internal 8097 } } // namespace v8::internal
8098 8098
8099 #endif // V8_TARGET_ARCH_IA32 8099 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698