OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 // failed. | 802 // failed. |
803 // Please note this function does not perform a garbage collection. | 803 // Please note this function does not perform a garbage collection. |
804 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); | 804 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); |
805 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); | 805 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); |
806 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol( | 806 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol( |
807 Vector<const uc16> str); | 807 Vector<const uc16> str); |
808 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { | 808 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { |
809 return LookupSymbol(CStrVector(str)); | 809 return LookupSymbol(CStrVector(str)); |
810 } | 810 } |
811 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); | 811 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); |
| 812 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Handle<SeqAsciiString> string, |
| 813 int from, |
| 814 int length); |
| 815 |
812 bool LookupSymbolIfExists(String* str, String** symbol); | 816 bool LookupSymbolIfExists(String* str, String** symbol); |
813 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); | 817 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); |
814 | 818 |
815 // Compute the matching symbol map for a string if possible. | 819 // Compute the matching symbol map for a string if possible. |
816 // NULL is returned if string is in new space or not flattened. | 820 // NULL is returned if string is in new space or not flattened. |
817 Map* SymbolMapForString(String* str); | 821 Map* SymbolMapForString(String* str); |
818 | 822 |
819 // Tries to flatten a string before compare operation. | 823 // Tries to flatten a string before compare operation. |
820 // | 824 // |
821 // Returns a failure in case it was decided that flattening was | 825 // Returns a failure in case it was decided that flattening was |
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2274 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2278 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2275 }; | 2279 }; |
2276 #endif // DEBUG || LIVE_OBJECT_LIST | 2280 #endif // DEBUG || LIVE_OBJECT_LIST |
2277 | 2281 |
2278 | 2282 |
2279 } } // namespace v8::internal | 2283 } } // namespace v8::internal |
2280 | 2284 |
2281 #undef HEAP | 2285 #undef HEAP |
2282 | 2286 |
2283 #endif // V8_HEAP_H_ | 2287 #endif // V8_HEAP_H_ |
OLD | NEW |