| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 void* data; | 352 void* data; |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 | 355 |
| 356 // Logging and profiling. A StateTag represents a possible state of | 356 // Logging and profiling. A StateTag represents a possible state of |
| 357 // the VM. The logger maintains a stack of these. Creating a VMState | 357 // the VM. The logger maintains a stack of these. Creating a VMState |
| 358 // object enters a state by pushing on the stack, and destroying a | 358 // object enters a state by pushing on the stack, and destroying a |
| 359 // VMState object leaves a state by popping the current state from the | 359 // VMState object leaves a state by popping the current state from the |
| 360 // stack. | 360 // stack. |
| 361 | 361 |
| 362 #define STATE_TAG_LIST(V) \ | 362 #define STATE_TAG_LIST(V) \ |
| 363 V(JS) \ | 363 V(JS) \ |
| 364 V(GC) \ | 364 V(GC) \ |
| 365 V(COMPILER) \ | 365 V(COMPILER) \ |
| 366 V(OTHER) \ | 366 V(PARALLEL_COMPILER_PROLOGUE) \ |
| 367 V(OTHER) \ |
| 367 V(EXTERNAL) | 368 V(EXTERNAL) |
| 368 | 369 |
| 369 enum StateTag { | 370 enum StateTag { |
| 370 #define DEF_STATE_TAG(name) name, | 371 #define DEF_STATE_TAG(name) name, |
| 371 STATE_TAG_LIST(DEF_STATE_TAG) | 372 STATE_TAG_LIST(DEF_STATE_TAG) |
| 372 #undef DEF_STATE_TAG | 373 #undef DEF_STATE_TAG |
| 373 // Pseudo-types. | 374 // Pseudo-types. |
| 374 state_tag_count | 375 state_tag_count |
| 375 }; | 376 }; |
| 376 | 377 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 547 |
| 547 enum ClearExceptionFlag { | 548 enum ClearExceptionFlag { |
| 548 KEEP_EXCEPTION, | 549 KEEP_EXCEPTION, |
| 549 CLEAR_EXCEPTION | 550 CLEAR_EXCEPTION |
| 550 }; | 551 }; |
| 551 | 552 |
| 552 | 553 |
| 553 } } // namespace v8::internal | 554 } } // namespace v8::internal |
| 554 | 555 |
| 555 #endif // V8_V8GLOBALS_H_ | 556 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |