| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 // Callback function on inline caches, used for iterating over inline caches | 282 // Callback function on inline caches, used for iterating over inline caches |
| 283 // in compiled code. | 283 // in compiled code. |
| 284 typedef void (*InlineCacheCallback)(Code* code, Address ic); | 284 typedef void (*InlineCacheCallback)(Code* code, Address ic); |
| 285 | 285 |
| 286 | 286 |
| 287 // State for inline cache call sites. Aliased as IC::State. | 287 // State for inline cache call sites. Aliased as IC::State. |
| 288 enum InlineCacheState { | 288 enum InlineCacheState { |
| 289 // Has never been executed. | 289 // Has never been executed. |
| 290 UNINITIALIZED, | 290 UNINITIALIZED, |
| 291 // Has never been executed, but is in a loop. |
| 292 UNINITIALIZED_IN_LOOP, |
| 291 // Has been executed but monomorhic state has been delayed. | 293 // Has been executed but monomorhic state has been delayed. |
| 292 PREMONOMORPHIC, | 294 PREMONOMORPHIC, |
| 293 // Has been executed and only one receiver type has been seen. | 295 // Has been executed and only one receiver type has been seen. |
| 294 MONOMORPHIC, | 296 MONOMORPHIC, |
| 295 // Like MONOMORPHIC but check failed due to prototype. | 297 // Like MONOMORPHIC but check failed due to prototype. |
| 296 MONOMORPHIC_PROTOTYPE_FAILURE, | 298 MONOMORPHIC_PROTOTYPE_FAILURE, |
| 297 // Multiple receiver types have been seen. | 299 // Multiple receiver types have been seen. |
| 298 MEGAMORPHIC, | 300 MEGAMORPHIC, |
| 299 // Special states for debug break or step in prepare stubs. | 301 // Special states for debug break or step in prepare stubs. |
| 300 DEBUG_BREAK, | 302 DEBUG_BREAK, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 | 505 |
| 504 Dest dest; | 506 Dest dest; |
| 505 memcpy(&dest, &source, sizeof(dest)); | 507 memcpy(&dest, &source, sizeof(dest)); |
| 506 return dest; | 508 return dest; |
| 507 } | 509 } |
| 508 | 510 |
| 509 | 511 |
| 510 } } // namespace v8::internal | 512 } } // namespace v8::internal |
| 511 | 513 |
| 512 #endif // V8_GLOBALS_H_ | 514 #endif // V8_GLOBALS_H_ |
| OLD | NEW |