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

Side by Side Diff: src/globals.h

Issue 335009: New snapshot framework. Doesn't work on ARM yet (code targets... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/bootstrapper.cc ('k') | src/heap.h » ('j') | src/heap.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 class Smi; 232 class Smi;
233 class Statement; 233 class Statement;
234 class String; 234 class String;
235 class Struct; 235 class Struct;
236 class SwitchStatement; 236 class SwitchStatement;
237 class AstVisitor; 237 class AstVisitor;
238 class Variable; 238 class Variable;
239 class VariableProxy; 239 class VariableProxy;
240 class RelocInfo; 240 class RelocInfo;
241 class Deserializer; 241 class Deserializer;
242 class GenericDeserializer; // TODO(erikcorry): Get rid of this.
242 class MessageLocation; 243 class MessageLocation;
243 class ObjectGroup; 244 class ObjectGroup;
244 class TickSample; 245 class TickSample;
245 class VirtualMemory; 246 class VirtualMemory;
246 class Mutex; 247 class Mutex;
247 class ZoneScopeInfo; 248 class ZoneScopeInfo;
248 249
249 typedef bool (*WeakSlotCallback)(Object** pointer); 250 typedef bool (*WeakSlotCallback)(Object** pointer);
250 251
251 // ----------------------------------------------------------------------------- 252 // -----------------------------------------------------------------------------
252 // Miscellaneous 253 // Miscellaneous
253 254
254 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being 255 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being
255 // consecutive. 256 // consecutive.
256 enum AllocationSpace { 257 enum AllocationSpace {
257 NEW_SPACE, // Semispaces collected with copying collector. 258 NEW_SPACE, // Semispaces collected with copying collector.
258 OLD_POINTER_SPACE, // May contain pointers to new space. 259 OLD_POINTER_SPACE, // May contain pointers to new space.
259 OLD_DATA_SPACE, // Must not have pointers to new space. 260 OLD_DATA_SPACE, // Must not have pointers to new space.
260 CODE_SPACE, // No pointers to new space, marked executable. 261 CODE_SPACE, // No pointers to new space, marked executable.
261 MAP_SPACE, // Only and all map objects. 262 MAP_SPACE, // Only and all map objects.
262 CELL_SPACE, // Only and all cell objects. 263 CELL_SPACE, // Only and all cell objects.
263 LO_SPACE, // Promoted large objects. 264 LO_SPACE, // Promoted large objects.
264 265
265 FIRST_SPACE = NEW_SPACE, 266 FIRST_SPACE = NEW_SPACE,
266 LAST_SPACE = LO_SPACE 267 LAST_SPACE = LO_SPACE,
268 FIRST_PAGED_SPACE = OLD_POINTER_SPACE,
269 LAST_PAGED_SPACE = CELL_SPACE
267 }; 270 };
268 const int kSpaceTagSize = 3; 271 const int kSpaceTagSize = 3;
269 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; 272 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1;
270 273
271 274
272 // A flag that indicates whether objects should be pretenured when 275 // A flag that indicates whether objects should be pretenured when
273 // allocated (allocated directly into the old generation) or not 276 // allocated (allocated directly into the old generation) or not
274 // (allocated in the young generation if the object size and type 277 // (allocated in the young generation if the object size and type
275 // allows). 278 // allows).
276 enum PretenureFlag { NOT_TENURED, TENURED }; 279 enum PretenureFlag { NOT_TENURED, TENURED };
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 557
555 Dest dest; 558 Dest dest;
556 memcpy(&dest, &source, sizeof(dest)); 559 memcpy(&dest, &source, sizeof(dest));
557 return dest; 560 return dest;
558 } 561 }
559 562
560 563
561 } } // namespace v8::internal 564 } } // namespace v8::internal
562 565
563 #endif // V8_GLOBALS_H_ 566 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/heap.h » ('j') | src/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698