OLD | NEW |
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 // the VM. The logger maintains a stack of these. Creating a VMState | 356 // the VM. The logger maintains a stack of these. Creating a VMState |
357 // object enters a state by pushing on the stack, and destroying a | 357 // object enters a state by pushing on the stack, and destroying a |
358 // VMState object leaves a state by popping the current state from the | 358 // VMState object leaves a state by popping the current state from the |
359 // stack. | 359 // stack. |
360 | 360 |
361 enum StateTag { | 361 enum StateTag { |
362 JS, | 362 JS, |
363 GC, | 363 GC, |
364 COMPILER, | 364 COMPILER, |
365 OTHER, | 365 OTHER, |
366 EXTERNAL | 366 EXTERNAL, |
| 367 IDLE |
367 }; | 368 }; |
368 | 369 |
369 | 370 |
370 // ----------------------------------------------------------------------------- | 371 // ----------------------------------------------------------------------------- |
371 // Macros | 372 // Macros |
372 | 373 |
373 // Testers for test. | 374 // Testers for test. |
374 | 375 |
375 #define HAS_SMI_TAG(value) \ | 376 #define HAS_SMI_TAG(value) \ |
376 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) | 377 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 | 581 |
581 enum ClearExceptionFlag { | 582 enum ClearExceptionFlag { |
582 KEEP_EXCEPTION, | 583 KEEP_EXCEPTION, |
583 CLEAR_EXCEPTION | 584 CLEAR_EXCEPTION |
584 }; | 585 }; |
585 | 586 |
586 | 587 |
587 } } // namespace v8::internal | 588 } } // namespace v8::internal |
588 | 589 |
589 #endif // V8_V8GLOBALS_H_ | 590 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |