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

Side by Side Diff: src/objects.h

Issue 16756013: Add verification code to dependent code. (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 | « src/compiler.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 5011 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 }; 5022 };
5023 5023
5024 // Array for holding the index of the first code object of each group. 5024 // Array for holding the index of the first code object of each group.
5025 // The last element stores the total number of code objects. 5025 // The last element stores the total number of code objects.
5026 class GroupStartIndexes { 5026 class GroupStartIndexes {
5027 public: 5027 public:
5028 explicit GroupStartIndexes(DependentCode* entries); 5028 explicit GroupStartIndexes(DependentCode* entries);
5029 void Recompute(DependentCode* entries); 5029 void Recompute(DependentCode* entries);
5030 int at(int i) { return start_indexes_[i]; } 5030 int at(int i) { return start_indexes_[i]; }
5031 int number_of_entries() { return start_indexes_[kGroupCount]; } 5031 int number_of_entries() { return start_indexes_[kGroupCount]; }
5032 int number_of_code_entries() {
5033 return start_indexes_[kGroupCount];
5034 }
5035 private: 5032 private:
5036 int start_indexes_[kGroupCount + 1]; 5033 int start_indexes_[kGroupCount + 1];
5037 }; 5034 };
5038 5035
5039 bool Contains(DependencyGroup group, Code* code); 5036 bool Contains(DependencyGroup group, Code* code);
5040 static Handle<DependentCode> Insert(Handle<DependentCode> entries, 5037 static Handle<DependentCode> Insert(Handle<DependentCode> entries,
5041 DependencyGroup group, 5038 DependencyGroup group,
5042 Handle<Object> object); 5039 Handle<Object> object);
5043 void UpdateToFinishedCode(DependencyGroup group, 5040 void UpdateToFinishedCode(DependencyGroup group,
5044 CompilationInfo* info, 5041 CompilationInfo* info,
(...skipping 4636 matching lines...) Expand 10 before | Expand all | Expand 10 after
9681 } else { 9678 } else {
9682 value &= ~(1 << bit_position); 9679 value &= ~(1 << bit_position);
9683 } 9680 }
9684 return value; 9681 return value;
9685 } 9682 }
9686 }; 9683 };
9687 9684
9688 } } // namespace v8::internal 9685 } } // namespace v8::internal
9689 9686
9690 #endif // V8_OBJECTS_H_ 9687 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698