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

Side by Side Diff: src/code-stubs.h

Issue 109303006: Revert "Remove flag track-allocation-sites." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/flag-definitions.h » ('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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 }; 1900 };
1901 1901
1902 1902
1903 class ArrayConstructorStubBase : public HydrogenCodeStub { 1903 class ArrayConstructorStubBase : public HydrogenCodeStub {
1904 public: 1904 public:
1905 ArrayConstructorStubBase(ElementsKind kind, ContextCheckMode context_mode, 1905 ArrayConstructorStubBase(ElementsKind kind, ContextCheckMode context_mode,
1906 AllocationSiteOverrideMode override_mode) { 1906 AllocationSiteOverrideMode override_mode) {
1907 // It only makes sense to override local allocation site behavior 1907 // It only makes sense to override local allocation site behavior
1908 // if there is a difference between the global allocation site policy 1908 // if there is a difference between the global allocation site policy
1909 // for an ElementsKind and the desired usage of the stub. 1909 // for an ElementsKind and the desired usage of the stub.
1910 ASSERT(override_mode != DISABLE_ALLOCATION_SITES || 1910 ASSERT(!(FLAG_track_allocation_sites &&
1911 override_mode == DISABLE_ALLOCATION_SITES) ||
1911 AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE); 1912 AllocationSite::GetMode(kind) == TRACK_ALLOCATION_SITE);
1912 bit_field_ = ElementsKindBits::encode(kind) | 1913 bit_field_ = ElementsKindBits::encode(kind) |
1913 AllocationSiteOverrideModeBits::encode(override_mode) | 1914 AllocationSiteOverrideModeBits::encode(override_mode) |
1914 ContextCheckModeBits::encode(context_mode); 1915 ContextCheckModeBits::encode(context_mode);
1915 } 1916 }
1916 1917
1917 ElementsKind elements_kind() const { 1918 ElementsKind elements_kind() const {
1918 return ElementsKindBits::decode(bit_field_); 1919 return ElementsKindBits::decode(bit_field_);
1919 } 1920 }
1920 1921
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
2359 int MinorKey() { return 0; } 2360 int MinorKey() { return 0; }
2360 2361
2361 void Generate(MacroAssembler* masm); 2362 void Generate(MacroAssembler* masm);
2362 2363
2363 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); 2364 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub);
2364 }; 2365 };
2365 2366
2366 } } // namespace v8::internal 2367 } } // namespace v8::internal
2367 2368
2368 #endif // V8_CODE_STUBS_H_ 2369 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698