| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 3428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3439 // Looks up a string that is equal to the given string and returns | 3439 // Looks up a string that is equal to the given string and returns |
| 3440 // string handle if it is found, or an empty handle otherwise. | 3440 // string handle if it is found, or an empty handle otherwise. |
| 3441 MUST_USE_RESULT static MaybeHandle<String> LookupStringIfExists( | 3441 MUST_USE_RESULT static MaybeHandle<String> LookupStringIfExists( |
| 3442 Isolate* isolate, | 3442 Isolate* isolate, |
| 3443 Handle<String> str); | 3443 Handle<String> str); |
| 3444 MUST_USE_RESULT static MaybeHandle<String> LookupTwoCharsStringIfExists( | 3444 MUST_USE_RESULT static MaybeHandle<String> LookupTwoCharsStringIfExists( |
| 3445 Isolate* isolate, | 3445 Isolate* isolate, |
| 3446 uint16_t c1, | 3446 uint16_t c1, |
| 3447 uint16_t c2); | 3447 uint16_t c2); |
| 3448 | 3448 |
| 3449 static void EnsureCapacityForDeserialization(Isolate* isolate, int n); |
| 3450 |
| 3449 DECLARE_CAST(StringTable) | 3451 DECLARE_CAST(StringTable) |
| 3450 | 3452 |
| 3451 private: | 3453 private: |
| 3452 template <bool seq_one_byte> | 3454 template <bool seq_one_byte> |
| 3453 friend class JsonParser; | 3455 friend class JsonParser; |
| 3454 | 3456 |
| 3455 DISALLOW_IMPLICIT_CONSTRUCTORS(StringTable); | 3457 DISALLOW_IMPLICIT_CONSTRUCTORS(StringTable); |
| 3456 }; | 3458 }; |
| 3457 | 3459 |
| 3458 | 3460 |
| (...skipping 7451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10910 } else { | 10912 } else { |
| 10911 value &= ~(1 << bit_position); | 10913 value &= ~(1 << bit_position); |
| 10912 } | 10914 } |
| 10913 return value; | 10915 return value; |
| 10914 } | 10916 } |
| 10915 }; | 10917 }; |
| 10916 | 10918 |
| 10917 } } // namespace v8::internal | 10919 } } // namespace v8::internal |
| 10918 | 10920 |
| 10919 #endif // V8_OBJECTS_H_ | 10921 #endif // V8_OBJECTS_H_ |
| OLD | NEW |