| 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 4448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4459 | 4459 |
| 4460 | 4460 |
| 4461 enum Kind { | 4461 enum Kind { |
| 4462 #define DEFINE_CODE_KIND_ENUM(name) name, | 4462 #define DEFINE_CODE_KIND_ENUM(name) name, |
| 4463 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) | 4463 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) |
| 4464 #undef DEFINE_CODE_KIND_ENUM | 4464 #undef DEFINE_CODE_KIND_ENUM |
| 4465 | 4465 |
| 4466 // Pseudo-kinds. | 4466 // Pseudo-kinds. |
| 4467 LAST_CODE_KIND = TO_BOOLEAN_IC, | 4467 LAST_CODE_KIND = TO_BOOLEAN_IC, |
| 4468 FIRST_IC_KIND = LOAD_IC, | 4468 FIRST_IC_KIND = LOAD_IC, |
| 4469 LAST_IC_KIND = TO_BOOLEAN_IC | 4469 LAST_IC_KIND = TO_BOOLEAN_IC, |
| 4470 LAST_KIND = REGEXP |
| 4470 }; | 4471 }; |
| 4471 | 4472 |
| 4472 // No more than 16 kinds. The value is currently encoded in four bits in | 4473 // No more than 16 kinds. The value is currently encoded in four bits in |
| 4473 // Flags. | 4474 // Flags. |
| 4474 STATIC_ASSERT(LAST_CODE_KIND < 16); | 4475 STATIC_ASSERT(LAST_KIND < 16); |
| 4475 | 4476 |
| 4476 static const char* Kind2String(Kind kind); | 4477 static const char* Kind2String(Kind kind); |
| 4477 | 4478 |
| 4478 // Types of stubs. | 4479 // Types of stubs. |
| 4479 enum StubType { | 4480 enum StubType { |
| 4480 NORMAL, | 4481 NORMAL, |
| 4481 FIELD, | 4482 FIELD, |
| 4482 CONSTANT_FUNCTION, | 4483 CONSTANT_FUNCTION, |
| 4483 CALLBACKS, | 4484 CALLBACKS, |
| 4484 INTERCEPTOR, | 4485 INTERCEPTOR, |
| 4485 MAP_TRANSITION, | 4486 MAP_TRANSITION, |
| 4486 NONEXISTENT | 4487 NONEXISTENT |
| 4487 }; | 4488 }; |
| 4488 | 4489 |
| 4489 enum StubHolder { | 4490 enum StubHolder { |
| 4490 OWN_STUB, | 4491 OWN_STUB, |
| 4491 PROTOTYPE_STUB | 4492 PROTOTYPE_STUB |
| 4492 }; | 4493 }; |
| 4493 | 4494 |
| 4494 enum { | 4495 enum { |
| 4495 NUMBER_OF_KINDS = LAST_IC_KIND + 1 | 4496 NUMBER_OF_KINDS = LAST_KIND + 1 |
| 4496 }; | 4497 }; |
| 4497 | 4498 |
| 4498 typedef int ExtraICState; | 4499 typedef int ExtraICState; |
| 4499 | 4500 |
| 4500 static const ExtraICState kNoExtraICState = 0; | 4501 static const ExtraICState kNoExtraICState = 0; |
| 4501 | 4502 |
| 4502 #ifdef ENABLE_DISASSEMBLER | 4503 #ifdef ENABLE_DISASSEMBLER |
| 4503 // Printing | 4504 // Printing |
| 4504 static const char* ICState2String(InlineCacheState state); | 4505 static const char* ICState2String(InlineCacheState state); |
| 4505 static const char* StubType2String(StubType type); | 4506 static const char* StubType2String(StubType type); |
| (...skipping 5222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9728 } else { | 9729 } else { |
| 9729 value &= ~(1 << bit_position); | 9730 value &= ~(1 << bit_position); |
| 9730 } | 9731 } |
| 9731 return value; | 9732 return value; |
| 9732 } | 9733 } |
| 9733 }; | 9734 }; |
| 9734 | 9735 |
| 9735 } } // namespace v8::internal | 9736 } } // namespace v8::internal |
| 9736 | 9737 |
| 9737 #endif // V8_OBJECTS_H_ | 9738 #endif // V8_OBJECTS_H_ |
| OLD | NEW |