OLD | NEW |
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 // (allocated in the young generation if the object size and type | 318 // (allocated in the young generation if the object size and type |
319 // allows). | 319 // allows). |
320 enum PretenureFlag { NOT_TENURED, TENURED }; | 320 enum PretenureFlag { NOT_TENURED, TENURED }; |
321 | 321 |
322 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; | 322 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; |
323 | 323 |
324 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; | 324 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; |
325 | 325 |
326 enum VisitMode { VISIT_ALL, VISIT_ALL_IN_SCAVENGE, VISIT_ONLY_STRONG }; | 326 enum VisitMode { VISIT_ALL, VISIT_ALL_IN_SCAVENGE, VISIT_ONLY_STRONG }; |
327 | 327 |
328 | |
329 // Flag indicating whether code is built into the VM (one of the natives files). | 328 // Flag indicating whether code is built into the VM (one of the natives files). |
330 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; | 329 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; |
331 | 330 |
332 | 331 |
333 // A CodeDesc describes a buffer holding instructions and relocation | 332 // A CodeDesc describes a buffer holding instructions and relocation |
334 // information. The instructions start at the beginning of the buffer | 333 // information. The instructions start at the beginning of the buffer |
335 // and grow forward, the relocation information starts at the end of | 334 // and grow forward, the relocation information starts at the end of |
336 // the buffer and grows backward. | 335 // the buffer and grows backward. |
337 // | 336 // |
338 // |<--------------- buffer_size ---------------->| | 337 // |<--------------- buffer_size ---------------->| |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 400 |
402 enum CallFunctionFlags { | 401 enum CallFunctionFlags { |
403 NO_CALL_FUNCTION_FLAGS = 0, | 402 NO_CALL_FUNCTION_FLAGS = 0, |
404 RECEIVER_MIGHT_BE_VALUE = 1 << 0 // Receiver might not be a JSObject. | 403 RECEIVER_MIGHT_BE_VALUE = 1 << 0 // Receiver might not be a JSObject. |
405 }; | 404 }; |
406 | 405 |
407 | 406 |
408 // Type of properties. | 407 // Type of properties. |
409 // Order of properties is significant. | 408 // Order of properties is significant. |
410 // Must fit in the BitField PropertyDetails::TypeField. | 409 // Must fit in the BitField PropertyDetails::TypeField. |
411 // A copy of this is in mirror-delay.js. | 410 // A copy of this is in mirror-debugger.js. |
412 enum PropertyType { | 411 enum PropertyType { |
413 NORMAL = 0, // only in slow mode | 412 NORMAL = 0, // only in slow mode |
414 FIELD = 1, // only in fast mode | 413 FIELD = 1, // only in fast mode |
415 CONSTANT_FUNCTION = 2, // only in fast mode | 414 CONSTANT_FUNCTION = 2, // only in fast mode |
416 CALLBACKS = 3, | 415 CALLBACKS = 3, |
417 INTERCEPTOR = 4, // only in lookup results, not in descriptors. | 416 INTERCEPTOR = 4, // only in lookup results, not in descriptors. |
418 MAP_TRANSITION = 5, // only in fast mode | 417 MAP_TRANSITION = 5, // only in fast mode |
419 CONSTANT_TRANSITION = 6, // only in fast mode | 418 CONSTANT_TRANSITION = 6, // only in fast mode |
420 NULL_DESCRIPTOR = 7, // only in fast mode | 419 NULL_DESCRIPTOR = 7, // only in fast mode |
421 // All properties before MAP_TRANSITION are real. | 420 // All properties before MAP_TRANSITION are real. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 CMOV = 15, // x86 | 589 CMOV = 15, // x86 |
591 RDTSC = 4, // x86 | 590 RDTSC = 4, // x86 |
592 CPUID = 10, // x86 | 591 CPUID = 10, // x86 |
593 VFP3 = 1, // ARM | 592 VFP3 = 1, // ARM |
594 ARMv7 = 2, // ARM | 593 ARMv7 = 2, // ARM |
595 SAHF = 0}; // x86 | 594 SAHF = 0}; // x86 |
596 | 595 |
597 } } // namespace v8::internal | 596 } } // namespace v8::internal |
598 | 597 |
599 #endif // V8_GLOBALS_H_ | 598 #endif // V8_GLOBALS_H_ |
OLD | NEW |