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

Side by Side Diff: src/objects.h

Issue 12507010: Turn Flags into a uint32_t typedef. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1122.js » ('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 4281 matching lines...) Expand 10 before | Expand all | Expand 10 after
4292 4292
4293 // Forward declaration. 4293 // Forward declaration.
4294 class SafepointEntry; 4294 class SafepointEntry;
4295 class TypeFeedbackInfo; 4295 class TypeFeedbackInfo;
4296 4296
4297 // Code describes objects with on-the-fly generated machine code. 4297 // Code describes objects with on-the-fly generated machine code.
4298 class Code: public HeapObject { 4298 class Code: public HeapObject {
4299 public: 4299 public:
4300 // Opaque data type for encapsulating code flags like kind, inline 4300 // Opaque data type for encapsulating code flags like kind, inline
4301 // cache state, and arguments count. 4301 // cache state, and arguments count.
4302 // FLAGS_MIN_VALUE and FLAGS_MAX_VALUE are specified to ensure that 4302 typedef uint32_t Flags;
4303 // enumeration type has correct value range (see Issue 830 for more details).
4304 enum Flags {
4305 FLAGS_MIN_VALUE = 0,
4306 FLAGS_MAX_VALUE = kMaxUInt32
4307 };
4308 4303
4309 #define CODE_KIND_LIST(V) \ 4304 #define CODE_KIND_LIST(V) \
4310 V(FUNCTION) \ 4305 V(FUNCTION) \
4311 V(OPTIMIZED_FUNCTION) \ 4306 V(OPTIMIZED_FUNCTION) \
4312 V(STUB) \ 4307 V(STUB) \
4313 V(COMPILED_STUB) \ 4308 V(COMPILED_STUB) \
4314 V(BUILTIN) \ 4309 V(BUILTIN) \
4315 V(LOAD_IC) \ 4310 V(LOAD_IC) \
4316 V(KEYED_LOAD_IC) \ 4311 V(KEYED_LOAD_IC) \
4317 V(CALL_IC) \ 4312 V(CALL_IC) \
(...skipping 4948 matching lines...) Expand 10 before | Expand all | Expand 10 after
9266 } else { 9261 } else {
9267 value &= ~(1 << bit_position); 9262 value &= ~(1 << bit_position);
9268 } 9263 }
9269 return value; 9264 return value;
9270 } 9265 }
9271 }; 9266 };
9272 9267
9273 } } // namespace v8::internal 9268 } } // namespace v8::internal
9274 9269
9275 #endif // V8_OBJECTS_H_ 9270 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1122.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698