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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
474 #define DEF_STATE_TAG(name) name, | 479 #define DEF_STATE_TAG(name) name, |
475 STATE_TAG_LIST(DEF_STATE_TAG) | 480 STATE_TAG_LIST(DEF_STATE_TAG) |
476 #undef DEF_STATE_TAG | 481 #undef DEF_STATE_TAG |
477 // Pseudo-types. | 482 // Pseudo-types. |
478 state_tag_count | 483 state_tag_count |
479 }; | 484 }; |
480 | 485 |
481 | 486 |
482 // ----------------------------------------------------------------------------- | 487 // ----------------------------------------------------------------------------- |
483 // Macros | 488 // Macros |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
599 CMOV = 15, // x86 | 604 CMOV = 15, // x86 |
600 RDTSC = 4, // x86 | 605 RDTSC = 4, // x86 |
601 CPUID = 10, // x86 | 606 CPUID = 10, // x86 |
602 VFP3 = 1, // ARM | 607 VFP3 = 1, // ARM |
603 ARMv7 = 2, // ARM | 608 ARMv7 = 2, // ARM |
604 SAHF = 0}; // x86 | 609 SAHF = 0}; // x86 |
605 | 610 |
606 } } // namespace v8::internal | 611 } } // namespace v8::internal |
607 | 612 |
608 #endif // V8_GLOBALS_H_ | 613 #endif // V8_GLOBALS_H_ |
OLD | NEW |