| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 // Logging and profiling. A StateTag represents a possible state of | 348 // Logging and profiling. A StateTag represents a possible state of |
| 349 // the VM. The logger maintains a stack of these. Creating a VMState | 349 // the VM. The logger maintains a stack of these. Creating a VMState |
| 350 // object enters a state by pushing on the stack, and destroying a | 350 // object enters a state by pushing on the stack, and destroying a |
| 351 // VMState object leaves a state by popping the current state from the | 351 // VMState object leaves a state by popping the current state from the |
| 352 // stack. | 352 // stack. |
| 353 | 353 |
| 354 #define STATE_TAG_LIST(V) \ | 354 #define STATE_TAG_LIST(V) \ |
| 355 V(JS) \ | 355 V(JS) \ |
| 356 V(GC) \ | 356 V(GC) \ |
| 357 V(COMPILER) \ | 357 V(COMPILER) \ |
| 358 V(PARALLEL_COMPILER_PROLOGUE) \ | 358 V(PARALLEL_COMPILER) \ |
| 359 V(OTHER) \ | 359 V(OTHER) \ |
| 360 V(EXTERNAL) | 360 V(EXTERNAL) |
| 361 | 361 |
| 362 enum StateTag { | 362 enum StateTag { |
| 363 #define DEF_STATE_TAG(name) name, | 363 #define DEF_STATE_TAG(name) name, |
| 364 STATE_TAG_LIST(DEF_STATE_TAG) | 364 STATE_TAG_LIST(DEF_STATE_TAG) |
| 365 #undef DEF_STATE_TAG | 365 #undef DEF_STATE_TAG |
| 366 // Pseudo-types. | 366 // Pseudo-types. |
| 367 state_tag_count | 367 state_tag_count |
| 368 }; | 368 }; |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 | 567 |
| 568 enum ClearExceptionFlag { | 568 enum ClearExceptionFlag { |
| 569 KEEP_EXCEPTION, | 569 KEEP_EXCEPTION, |
| 570 CLEAR_EXCEPTION | 570 CLEAR_EXCEPTION |
| 571 }; | 571 }; |
| 572 | 572 |
| 573 | 573 |
| 574 } } // namespace v8::internal | 574 } } // namespace v8::internal |
| 575 | 575 |
| 576 #endif // V8_V8GLOBALS_H_ | 576 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |