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

Side by Side Diff: src/objects.h

Issue 198533007: Inline mathematical constants (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.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 5732 matching lines...) Expand 10 before | Expand all | Expand 10 after
5743 kElementsCantBeAddedGroup, 5743 kElementsCantBeAddedGroup,
5744 // Group of code that depends on global property values in property cells 5744 // Group of code that depends on global property values in property cells
5745 // not being changed. 5745 // not being changed.
5746 kPropertyCellChangedGroup, 5746 kPropertyCellChangedGroup,
5747 // Group of code that depends on tenuring information in AllocationSites 5747 // Group of code that depends on tenuring information in AllocationSites
5748 // not being changed. 5748 // not being changed.
5749 kAllocationSiteTenuringChangedGroup, 5749 kAllocationSiteTenuringChangedGroup,
5750 // Group of code that depends on element transition information in 5750 // Group of code that depends on element transition information in
5751 // AllocationSites not being changed. 5751 // AllocationSites not being changed.
5752 kAllocationSiteTransitionChangedGroup, 5752 kAllocationSiteTransitionChangedGroup,
5753 kGroupCount = kAllocationSiteTransitionChangedGroup + 1 5753 // Group of code that depends on the Math global object not being changed
5754 kMathConstantGroup,
5755 kGroupCount = kMathConstantGroup + 1
5754 }; 5756 };
5755 5757
5756 // Array for holding the index of the first code object of each group. 5758 // Array for holding the index of the first code object of each group.
5757 // The last element stores the total number of code objects. 5759 // The last element stores the total number of code objects.
5758 class GroupStartIndexes { 5760 class GroupStartIndexes {
5759 public: 5761 public:
5760 explicit GroupStartIndexes(DependentCode* entries); 5762 explicit GroupStartIndexes(DependentCode* entries);
5761 void Recompute(DependentCode* entries); 5763 void Recompute(DependentCode* entries);
5762 int at(int i) { return start_indexes_[i]; } 5764 int at(int i) { return start_indexes_[i]; }
5763 int number_of_entries() { return start_indexes_[kGroupCount]; } 5765 int number_of_entries() { return start_indexes_[kGroupCount]; }
(...skipping 5037 matching lines...) Expand 10 before | Expand all | Expand 10 after
10801 } else { 10803 } else {
10802 value &= ~(1 << bit_position); 10804 value &= ~(1 << bit_position);
10803 } 10805 }
10804 return value; 10806 return value;
10805 } 10807 }
10806 }; 10808 };
10807 10809
10808 } } // namespace v8::internal 10810 } } // namespace v8::internal
10809 10811
10810 #endif // V8_OBJECTS_H_ 10812 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698