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

Side by Side Diff: src/x64/code-stubs-x64.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/objects-inl.h ('k') | src/x64/full-codegen-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5303 matching lines...) Expand 10 before | Expand all | Expand 10 after
5314 // If we reached this point there is a problem. 5314 // If we reached this point there is a problem.
5315 __ Abort(kUnexpectedElementsKindInArrayConstructor); 5315 __ Abort(kUnexpectedElementsKindInArrayConstructor);
5316 } else { 5316 } else {
5317 UNREACHABLE(); 5317 UNREACHABLE();
5318 } 5318 }
5319 } 5319 }
5320 5320
5321 5321
5322 template<class T> 5322 template<class T>
5323 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) { 5323 static void ArrayConstructorStubAheadOfTimeHelper(Isolate* isolate) {
5324 ElementsKind initial_kind = GetInitialFastElementsKind();
5325 ElementsKind initial_holey_kind = GetHoleyElementsKind(initial_kind);
5326
5327 int to_index = GetSequenceIndexFromFastElementsKind( 5324 int to_index = GetSequenceIndexFromFastElementsKind(
5328 TERMINAL_FAST_ELEMENTS_KIND); 5325 TERMINAL_FAST_ELEMENTS_KIND);
5329 for (int i = 0; i <= to_index; ++i) { 5326 for (int i = 0; i <= to_index; ++i) {
5330 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i); 5327 ElementsKind kind = GetFastElementsKindFromSequenceIndex(i);
5331 T stub(kind); 5328 T stub(kind);
5332 stub.GetCode(isolate); 5329 stub.GetCode(isolate);
5333 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE || 5330 if (AllocationSite::GetMode(kind) != DONT_TRACK_ALLOCATION_SITE) {
5334 (!FLAG_track_allocation_sites &&
5335 (kind == initial_kind || kind == initial_holey_kind))) {
5336 T stub1(kind, CONTEXT_CHECK_REQUIRED, DISABLE_ALLOCATION_SITES); 5331 T stub1(kind, CONTEXT_CHECK_REQUIRED, DISABLE_ALLOCATION_SITES);
5337 stub1.GetCode(isolate); 5332 stub1.GetCode(isolate);
5338 } 5333 }
5339 } 5334 }
5340 } 5335 }
5341 5336
5342 5337
5343 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) { 5338 void ArrayConstructorStubBase::GenerateStubsAheadOfTime(Isolate* isolate) {
5344 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>( 5339 ArrayConstructorStubAheadOfTimeHelper<ArrayNoArgumentConstructorStub>(
5345 isolate); 5340 isolate);
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
5538 __ bind(&fast_elements_case); 5533 __ bind(&fast_elements_case);
5539 GenerateCase(masm, FAST_ELEMENTS); 5534 GenerateCase(masm, FAST_ELEMENTS);
5540 } 5535 }
5541 5536
5542 5537
5543 #undef __ 5538 #undef __
5544 5539
5545 } } // namespace v8::internal 5540 } } // namespace v8::internal
5546 5541
5547 #endif // V8_TARGET_ARCH_X64 5542 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698