| 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 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1481 | 1481 |
| 1482 class ToBooleanStub: public PlatformCodeStub { | 1482 class ToBooleanStub: public PlatformCodeStub { |
| 1483 public: | 1483 public: |
| 1484 enum Type { | 1484 enum Type { |
| 1485 UNDEFINED, | 1485 UNDEFINED, |
| 1486 BOOLEAN, | 1486 BOOLEAN, |
| 1487 NULL_TYPE, | 1487 NULL_TYPE, |
| 1488 SMI, | 1488 SMI, |
| 1489 SPEC_OBJECT, | 1489 SPEC_OBJECT, |
| 1490 STRING, | 1490 STRING, |
| 1491 SYMBOL, |
| 1491 HEAP_NUMBER, | 1492 HEAP_NUMBER, |
| 1492 NUMBER_OF_TYPES | 1493 NUMBER_OF_TYPES |
| 1493 }; | 1494 }; |
| 1494 | 1495 |
| 1495 // At most 8 different types can be distinguished, because the Code object | 1496 // At most 8 different types can be distinguished, because the Code object |
| 1496 // only has room for a single byte to hold a set of these types. :-P | 1497 // only has room for a single byte to hold a set of these types. :-P |
| 1497 STATIC_ASSERT(NUMBER_OF_TYPES <= 8); | 1498 STATIC_ASSERT(NUMBER_OF_TYPES <= 8); |
| 1498 | 1499 |
| 1499 class Types { | 1500 class Types { |
| 1500 public: | 1501 public: |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 | 1661 |
| 1661 // The current function entry hook. | 1662 // The current function entry hook. |
| 1662 static FunctionEntryHook entry_hook_; | 1663 static FunctionEntryHook entry_hook_; |
| 1663 | 1664 |
| 1664 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); | 1665 DISALLOW_COPY_AND_ASSIGN(ProfileEntryHookStub); |
| 1665 }; | 1666 }; |
| 1666 | 1667 |
| 1667 } } // namespace v8::internal | 1668 } } // namespace v8::internal |
| 1668 | 1669 |
| 1669 #endif // V8_CODE_STUBS_H_ | 1670 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |