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

Side by Side Diff: src/objects.h

Issue 108443004: Ensure that Code objects' kind specific flags are initialized properly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix nit 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 | « src/heap.cc ('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 // 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 5132 matching lines...) Expand 10 before | Expand all | Expand 10 after
5143 inline bool is_store_stub() { return kind() == STORE_IC; } 5143 inline bool is_store_stub() { return kind() == STORE_IC; }
5144 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; } 5144 inline bool is_keyed_store_stub() { return kind() == KEYED_STORE_IC; }
5145 inline bool is_call_stub() { return kind() == CALL_IC; } 5145 inline bool is_call_stub() { return kind() == CALL_IC; }
5146 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; } 5146 inline bool is_keyed_call_stub() { return kind() == KEYED_CALL_IC; }
5147 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; } 5147 inline bool is_binary_op_stub() { return kind() == BINARY_OP_IC; }
5148 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; } 5148 inline bool is_compare_ic_stub() { return kind() == COMPARE_IC; }
5149 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; } 5149 inline bool is_compare_nil_ic_stub() { return kind() == COMPARE_NIL_IC; }
5150 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; } 5150 inline bool is_to_boolean_ic_stub() { return kind() == TO_BOOLEAN_IC; }
5151 inline bool is_keyed_stub(); 5151 inline bool is_keyed_stub();
5152 5152
5153 inline void set_raw_kind_specific_flags1(int value);
5154 inline void set_raw_kind_specific_flags2(int value);
5155
5153 // [major_key]: For kind STUB or BINARY_OP_IC, the major key. 5156 // [major_key]: For kind STUB or BINARY_OP_IC, the major key.
5154 inline int major_key(); 5157 inline int major_key();
5155 inline void set_major_key(int value); 5158 inline void set_major_key(int value);
5156 inline bool has_major_key(); 5159 inline bool has_major_key();
5157 5160
5158 // For kind STUB or ICs, tells whether or not a code object was generated by 5161 // For kind STUB or ICs, tells whether or not a code object was generated by
5159 // the optimizing compiler (but it may not be an optimized function). 5162 // the optimizing compiler (but it may not be an optimized function).
5160 bool is_crankshafted(); 5163 bool is_crankshafted();
5161 inline void set_is_crankshafted(bool value); 5164 inline void set_is_crankshafted(bool value);
5162 5165
(...skipping 5451 matching lines...) Expand 10 before | Expand all | Expand 10 after
10614 } else { 10617 } else {
10615 value &= ~(1 << bit_position); 10618 value &= ~(1 << bit_position);
10616 } 10619 }
10617 return value; 10620 return value;
10618 } 10621 }
10619 }; 10622 };
10620 10623
10621 } } // namespace v8::internal 10624 } } // namespace v8::internal
10622 10625
10623 #endif // V8_OBJECTS_H_ 10626 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698