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

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

Issue 16226020: MIPS: 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
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.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 7626 matching lines...) Expand 10 before | Expand all | Expand 10 after
7637 7637
7638 7638
7639 template<class T> 7639 template<class T>
7640 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { 7640 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
7641 int to_index = GetSequenceIndexFromFastElementsKind( 7641 int to_index = GetSequenceIndexFromFastElementsKind(
7642 TERMINAL_FAST_ELEMENTS_KIND); 7642 TERMINAL_FAST_ELEMENTS_KIND);
7643 for (int i = 0; i <= to_index; ++i) { 7643 for (int i = 0; i <= to_index; ++i) {
7644 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 7644 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
7645 T stub(kind); 7645 T stub(kind);
7646 stub.GetCode(isolate)->set_is_pregenerated(true); 7646 stub.GetCode(isolate)->set_is_pregenerated(true);
7647 if (AllocationSiteInfo::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
7648 T stub1(kind, true);
7649 stub1.GetCode(isolate)->set_is_pregenerated(true);
7650 }
7647 } 7651 }
7648 } 7652 }
7649 7653
7650 7654
7651 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { 7655 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) {
7652 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( 7656 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>(
7653 isolate); 7657 isolate);
7654 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>( 7658 ArrayConstructorStubAheadOfTimeHelper<ArraySingleArgumentConstructorStub>(
7655 isolate); 7659 isolate);
7656 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>( 7660 ArrayConstructorStubAheadOfTimeHelper<ArrayNArgumentsConstructorStub>(
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
7741 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET); 7745 __ Jump(generic_construct_stub, RelocInfo::CODE_TARGET);
7742 } 7746 }
7743 } 7747 }
7744 7748
7745 7749
7746 #undef __ 7750 #undef __
7747 7751
7748 } } // namespace v8::internal 7752 } } // namespace v8::internal
7749 7753
7750 #endif // V8_TARGET_ARCH_MIPS 7754 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698