| 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 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 1038 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
| 1039 // failed. | 1039 // failed. |
| 1040 // Please note this function does not perform a garbage collection. | 1040 // Please note this function does not perform a garbage collection. |
| 1041 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); | 1041 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); |
| 1042 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); | 1042 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); |
| 1043 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol(Vector<const uc16> str); | 1043 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol(Vector<const uc16> str); |
| 1044 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { | 1044 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { |
| 1045 return LookupSymbol(CStrVector(str)); | 1045 return LookupSymbol(CStrVector(str)); |
| 1046 } | 1046 } |
| 1047 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); | 1047 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); |
| 1048 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Handle<SeqAsciiString> string, | 1048 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol( |
| 1049 int from, | 1049 Handle<SeqOneByteString> string, int from, int length); |
| 1050 int length); | |
| 1051 | 1050 |
| 1052 bool LookupSymbolIfExists(String* str, String** symbol); | 1051 bool LookupSymbolIfExists(String* str, String** symbol); |
| 1053 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); | 1052 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); |
| 1054 | 1053 |
| 1055 // Compute the matching symbol map for a string if possible. | 1054 // Compute the matching symbol map for a string if possible. |
| 1056 // NULL is returned if string is in new space or not flattened. | 1055 // NULL is returned if string is in new space or not flattened. |
| 1057 Map* SymbolMapForString(String* str); | 1056 Map* SymbolMapForString(String* str); |
| 1058 | 1057 |
| 1059 // Tries to flatten a string before compare operation. | 1058 // Tries to flatten a string before compare operation. |
| 1060 // | 1059 // |
| (...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2829 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2828 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2830 | 2829 |
| 2831 private: | 2830 private: |
| 2832 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2831 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2833 }; | 2832 }; |
| 2834 #endif // DEBUG || LIVE_OBJECT_LIST | 2833 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2835 | 2834 |
| 2836 } } // namespace v8::internal | 2835 } } // namespace v8::internal |
| 2837 | 2836 |
| 2838 #endif // V8_HEAP_H_ | 2837 #endif // V8_HEAP_H_ |
| OLD | NEW |