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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 // AccessorCallback | 451 // AccessorCallback |
452 struct AccessorDescriptor { | 452 struct AccessorDescriptor { |
453 Object* (*getter)(Object* object, void* data); | 453 Object* (*getter)(Object* object, void* data); |
454 Object* (*setter)(JSObject* object, Object* value, void* data); | 454 Object* (*setter)(JSObject* object, Object* value, void* data); |
455 void* data; | 455 void* data; |
456 }; | 456 }; |
457 | 457 |
458 | 458 |
459 // Logging and profiling. | 459 // Logging and profiling. |
460 // A StateTag represents a possible state of the VM. When compiled with | 460 // A StateTag represents a possible state of the VM. When compiled with |
461 // ENABLE_LOGGING_AND_PROFILING, the logger maintains a stack of these. | 461 // ENABLE_VMSTATE_TRACKING, the logger maintains a stack of these. |
462 // Creating a VMState object enters a state by pushing on the stack, and | 462 // Creating a VMState object enters a state by pushing on the stack, and |
463 // destroying a VMState object leaves a state by popping the current state | 463 // destroying a VMState object leaves a state by popping the current state |
464 // from the stack. | 464 // from the stack. |
465 | 465 |
466 #define STATE_TAG_LIST(V) \ | 466 #define STATE_TAG_LIST(V) \ |
467 V(JS) \ | 467 V(JS) \ |
468 V(GC) \ | 468 V(GC) \ |
469 V(COMPILER) \ | 469 V(COMPILER) \ |
470 V(OTHER) \ | 470 V(OTHER) \ |
471 V(EXTERNAL) | 471 V(EXTERNAL) |
472 | 472 |
473 enum StateTag { | 473 enum StateTag { |
474 #ifdef ENABLE_CPP_PROFILES_PROCESSOR | |
475 // This is to ensure that VM state field value of TickSample | |
476 // never gets equal to SamplingCircularQueue::kClear. | |
477 NULL_STATE = 0, | |
478 #endif | |
479 #define DEF_STATE_TAG(name) name, | 474 #define DEF_STATE_TAG(name) name, |
480 STATE_TAG_LIST(DEF_STATE_TAG) | 475 STATE_TAG_LIST(DEF_STATE_TAG) |
481 #undef DEF_STATE_TAG | 476 #undef DEF_STATE_TAG |
482 // Pseudo-types. | 477 // Pseudo-types. |
483 state_tag_count | 478 state_tag_count |
484 }; | 479 }; |
485 | 480 |
486 | 481 |
487 // ----------------------------------------------------------------------------- | 482 // ----------------------------------------------------------------------------- |
488 // Macros | 483 // Macros |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 CMOV = 15, // x86 | 599 CMOV = 15, // x86 |
605 RDTSC = 4, // x86 | 600 RDTSC = 4, // x86 |
606 CPUID = 10, // x86 | 601 CPUID = 10, // x86 |
607 VFP3 = 1, // ARM | 602 VFP3 = 1, // ARM |
608 ARMv7 = 2, // ARM | 603 ARMv7 = 2, // ARM |
609 SAHF = 0}; // x86 | 604 SAHF = 0}; // x86 |
610 | 605 |
611 } } // namespace v8::internal | 606 } } // namespace v8::internal |
612 | 607 |
613 #endif // V8_GLOBALS_H_ | 608 #endif // V8_GLOBALS_H_ |
OLD | NEW |