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

Side by Side Diff: src/objects.h

Issue 2254193002: Explicitly initialize Code::builtin_index (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/factory.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5163 // level of loop nesting we are willing to do on-stack replacement 5163 // level of loop nesting we are willing to do on-stack replacement
5164 // for. 5164 // for.
5165 inline void set_allow_osr_at_loop_nesting_level(int level); 5165 inline void set_allow_osr_at_loop_nesting_level(int level);
5166 inline int allow_osr_at_loop_nesting_level(); 5166 inline int allow_osr_at_loop_nesting_level();
5167 5167
5168 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks 5168 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks
5169 // the code object was seen on the stack with no IC patching going on. 5169 // the code object was seen on the stack with no IC patching going on.
5170 inline int profiler_ticks(); 5170 inline int profiler_ticks();
5171 inline void set_profiler_ticks(int ticks); 5171 inline void set_profiler_ticks(int ticks);
5172 5172
5173 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. 5173 // [builtin_index]: For builtins, tells which builtin index the code object
5174 // For builtins, tells which builtin index it has. 5174 // has. Note that builtins can have a code kind other than BUILTIN. The
5175 // Note that builtins can have a code kind other than BUILTIN, which means 5175 // builtin index is a non-negative integer for builtins, and -1 otherwise.
5176 // that for arbitrary code objects, this index value may be random garbage.
5177 // To verify in that case, compare the code object to the indexed builtin.
5178 inline int builtin_index(); 5176 inline int builtin_index();
5179 inline void set_builtin_index(int id); 5177 inline void set_builtin_index(int id);
5180 5178
5181 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots 5179 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots
5182 // reserved in the code prologue. 5180 // reserved in the code prologue.
5183 inline unsigned stack_slots(); 5181 inline unsigned stack_slots();
5184 inline void set_stack_slots(unsigned slots); 5182 inline void set_stack_slots(unsigned slots);
5185 5183
5186 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in 5184 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in
5187 // the instruction stream where the safepoint table starts. 5185 // the instruction stream where the safepoint table starts.
(...skipping 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after
11081 } 11079 }
11082 return value; 11080 return value;
11083 } 11081 }
11084 }; 11082 };
11085 11083
11086 11084
11087 } // NOLINT, false-positive due to second-order macros. 11085 } // NOLINT, false-positive due to second-order macros.
11088 } // NOLINT, false-positive due to second-order macros. 11086 } // NOLINT, false-positive due to second-order macros.
11089 11087
11090 #endif // V8_OBJECTS_H_ 11088 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698