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

Side by Side Diff: src/objects.h

Issue 656533003: Special handling for inline caches in code serializer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 6 years, 2 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/flag-definitions.h ('k') | src/objects-inl.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 // 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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 5132 matching lines...) Expand 10 before | Expand all | Expand 10 after
5143 // for. 5143 // for.
5144 inline void set_allow_osr_at_loop_nesting_level(int level); 5144 inline void set_allow_osr_at_loop_nesting_level(int level);
5145 inline int allow_osr_at_loop_nesting_level(); 5145 inline int allow_osr_at_loop_nesting_level();
5146 5146
5147 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks 5147 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks
5148 // the code object was seen on the stack with no IC patching going on. 5148 // the code object was seen on the stack with no IC patching going on.
5149 inline int profiler_ticks(); 5149 inline int profiler_ticks();
5150 inline void set_profiler_ticks(int ticks); 5150 inline void set_profiler_ticks(int ticks);
5151 5151
5152 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. 5152 // [builtin_index]: For BUILTIN kind, tells which builtin index it has.
5153 // For builtins, tells which builtin index it has.
5154 // Note that builtins can have a code kind other than BUILTIN, which means
5155 // that for arbitrary code objects, this index value may be random garbage.
5156 // To verify in that case, compare the code object to the indexed builtin.
5153 inline int builtin_index(); 5157 inline int builtin_index();
5154 inline void set_builtin_index(int id); 5158 inline void set_builtin_index(int id);
5155 5159
5156 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots 5160 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots
5157 // reserved in the code prologue. 5161 // reserved in the code prologue.
5158 inline unsigned stack_slots(); 5162 inline unsigned stack_slots();
5159 inline void set_stack_slots(unsigned slots); 5163 inline void set_stack_slots(unsigned slots);
5160 5164
5161 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in 5165 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in
5162 // the instruction stream where the safepoint table starts. 5166 // the instruction stream where the safepoint table starts.
(...skipping 5754 matching lines...) Expand 10 before | Expand all | Expand 10 after
10917 } else { 10921 } else {
10918 value &= ~(1 << bit_position); 10922 value &= ~(1 << bit_position);
10919 } 10923 }
10920 return value; 10924 return value;
10921 } 10925 }
10922 }; 10926 };
10923 10927
10924 } } // namespace v8::internal 10928 } } // namespace v8::internal
10925 10929
10926 #endif // V8_OBJECTS_H_ 10930 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698