| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 // the provided data as the relocation information. | 947 // the provided data as the relocation information. |
| 948 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); | 948 MUST_USE_RESULT MaybeObject* CopyCode(Code* code, Vector<byte> reloc_info); |
| 949 | 949 |
| 950 // Finds the symbol for string in the symbol table. | 950 // Finds the symbol for string in the symbol table. |
| 951 // If not found, a new symbol is added to the table and returned. | 951 // If not found, a new symbol is added to the table and returned. |
| 952 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation | 952 // Returns Failure::RetryAfterGC(requested_bytes, space) if allocation |
| 953 // failed. | 953 // failed. |
| 954 // Please note this function does not perform a garbage collection. | 954 // Please note this function does not perform a garbage collection. |
| 955 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); | 955 MUST_USE_RESULT MaybeObject* LookupSymbol(Vector<const char> str); |
| 956 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); | 956 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Vector<const char> str); |
| 957 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol( | 957 MUST_USE_RESULT MaybeObject* LookupTwoByteSymbol(Vector<const uc16> str); |
| 958 Vector<const uc16> str); | |
| 959 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { | 958 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(const char* str) { |
| 960 return LookupSymbol(CStrVector(str)); | 959 return LookupSymbol(CStrVector(str)); |
| 961 } | 960 } |
| 962 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); | 961 MUST_USE_RESULT MaybeObject* LookupSymbol(String* str); |
| 963 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Handle<SeqAsciiString> string, | 962 MUST_USE_RESULT MaybeObject* LookupAsciiSymbol(Handle<SeqAsciiString> string, |
| 964 int from, | 963 int from, |
| 965 int length); | 964 int length); |
| 966 | 965 |
| 967 bool LookupSymbolIfExists(String* str, String** symbol); | 966 bool LookupSymbolIfExists(String* str, String** symbol); |
| 968 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); | 967 bool LookupTwoCharsSymbolIfExists(String* str, String** symbol); |
| (...skipping 1635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 | 2603 |
| 2605 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2604 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2606 }; | 2605 }; |
| 2607 #endif // DEBUG || LIVE_OBJECT_LIST | 2606 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2608 | 2607 |
| 2609 } } // namespace v8::internal | 2608 } } // namespace v8::internal |
| 2610 | 2609 |
| 2611 #undef HEAP | 2610 #undef HEAP |
| 2612 | 2611 |
| 2613 #endif // V8_HEAP_H_ | 2612 #endif // V8_HEAP_H_ |
| OLD | NEW |