| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 // A StateTag represents a possible state of the VM. When compiled with | 352 // A StateTag represents a possible state of the VM. When compiled with |
| 353 // ENABLE_LOGGING_AND_PROFILING, the logger maintains a stack of these. | 353 // ENABLE_LOGGING_AND_PROFILING, the logger maintains a stack of these. |
| 354 // Creating a VMState object enters a state by pushing on the stack, and | 354 // Creating a VMState object enters a state by pushing on the stack, and |
| 355 // destroying a VMState object leaves a state by popping the current state | 355 // destroying a VMState object leaves a state by popping the current state |
| 356 // from the stack. | 356 // from the stack. |
| 357 | 357 |
| 358 #define STATE_TAG_LIST(V) \ | 358 #define STATE_TAG_LIST(V) \ |
| 359 V(JS) \ | 359 V(JS) \ |
| 360 V(GC) \ | 360 V(GC) \ |
| 361 V(COMPILER) \ | 361 V(COMPILER) \ |
| 362 V(OTHER) | 362 V(OTHER) \ |
| 363 V(EXTERNAL) |
| 363 | 364 |
| 364 enum StateTag { | 365 enum StateTag { |
| 365 #define DEF_STATE_TAG(name) name, | 366 #define DEF_STATE_TAG(name) name, |
| 366 STATE_TAG_LIST(DEF_STATE_TAG) | 367 STATE_TAG_LIST(DEF_STATE_TAG) |
| 367 #undef DEF_STATE_TAG | 368 #undef DEF_STATE_TAG |
| 368 // Pseudo-types. | 369 // Pseudo-types. |
| 369 state_tag_count | 370 state_tag_count |
| 370 }; | 371 }; |
| 371 | 372 |
| 372 | 373 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 | 510 |
| 510 Dest dest; | 511 Dest dest; |
| 511 memcpy(&dest, &source, sizeof(dest)); | 512 memcpy(&dest, &source, sizeof(dest)); |
| 512 return dest; | 513 return dest; |
| 513 } | 514 } |
| 514 | 515 |
| 515 | 516 |
| 516 } } // namespace v8::internal | 517 } } // namespace v8::internal |
| 517 | 518 |
| 518 #endif // V8_GLOBALS_H_ | 519 #endif // V8_GLOBALS_H_ |
| OLD | NEW |