Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: src/objects.h

Issue 7860011: Rename SmartPointer to SmartArrayPointer. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: rebase it again to get more fixes Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_OBJECTS_H_ 28 #ifndef V8_OBJECTS_H_
29 #define V8_OBJECTS_H_ 29 #define V8_OBJECTS_H_
30 30
31 #include "allocation.h" 31 #include "allocation.h"
32 #include "builtins.h" 32 #include "builtins.h"
33 #include "list.h" 33 #include "list.h"
34 #include "smart-pointer.h" 34 #include "smart-array-pointer.h"
35 #include "unicode-inl.h" 35 #include "unicode-inl.h"
36 #if V8_TARGET_ARCH_ARM 36 #if V8_TARGET_ARCH_ARM
37 #include "arm/constants-arm.h" 37 #include "arm/constants-arm.h"
38 #elif V8_TARGET_ARCH_MIPS 38 #elif V8_TARGET_ARCH_MIPS
39 #include "mips/constants-mips.h" 39 #include "mips/constants-mips.h"
40 #endif 40 #endif
41 41
42 // 42 //
43 // Most object types in the V8 JavaScript are described in this file. 43 // Most object types in the V8 JavaScript are described in this file.
44 // 44 //
(...skipping 5928 matching lines...) Expand 10 before | Expand all | Expand 10 after
5973 bool IsTwoByteEqualTo(Vector<const uc16> str); 5973 bool IsTwoByteEqualTo(Vector<const uc16> str);
5974 5974
5975 // Return a UTF8 representation of the string. The string is null 5975 // Return a UTF8 representation of the string. The string is null
5976 // terminated but may optionally contain nulls. Length is returned 5976 // terminated but may optionally contain nulls. Length is returned
5977 // in length_output if length_output is not a null pointer The string 5977 // in length_output if length_output is not a null pointer The string
5978 // should be nearly flat, otherwise the performance of this method may 5978 // should be nearly flat, otherwise the performance of this method may
5979 // be very slow (quadratic in the length). Setting robustness_flag to 5979 // be very slow (quadratic in the length). Setting robustness_flag to
5980 // ROBUST_STRING_TRAVERSAL invokes behaviour that is robust This means it 5980 // ROBUST_STRING_TRAVERSAL invokes behaviour that is robust This means it
5981 // handles unexpected data without causing assert failures and it does not 5981 // handles unexpected data without causing assert failures and it does not
5982 // do any heap allocations. This is useful when printing stack traces. 5982 // do any heap allocations. This is useful when printing stack traces.
5983 SmartPointer<char> ToCString(AllowNullsFlag allow_nulls, 5983 SmartArrayPointer<char> ToCString(AllowNullsFlag allow_nulls,
5984 RobustnessFlag robustness_flag, 5984 RobustnessFlag robustness_flag,
5985 int offset, 5985 int offset,
5986 int length, 5986 int length,
5987 int* length_output = 0); 5987 int* length_output = 0);
5988 SmartPointer<char> ToCString( 5988 SmartArrayPointer<char> ToCString(
5989 AllowNullsFlag allow_nulls = DISALLOW_NULLS, 5989 AllowNullsFlag allow_nulls = DISALLOW_NULLS,
5990 RobustnessFlag robustness_flag = FAST_STRING_TRAVERSAL, 5990 RobustnessFlag robustness_flag = FAST_STRING_TRAVERSAL,
5991 int* length_output = 0); 5991 int* length_output = 0);
5992 5992
5993 int Utf8Length(); 5993 int Utf8Length();
5994 5994
5995 // Return a 16 bit Unicode representation of the string. 5995 // Return a 16 bit Unicode representation of the string.
5996 // The string should be nearly flat, otherwise the performance of 5996 // The string should be nearly flat, otherwise the performance of
5997 // of this method may be very bad. Setting robustness_flag to 5997 // of this method may be very bad. Setting robustness_flag to
5998 // ROBUST_STRING_TRAVERSAL invokes behaviour that is robust This means it 5998 // ROBUST_STRING_TRAVERSAL invokes behaviour that is robust This means it
5999 // handles unexpected data without causing assert failures and it does not 5999 // handles unexpected data without causing assert failures and it does not
6000 // do any heap allocations. This is useful when printing stack traces. 6000 // do any heap allocations. This is useful when printing stack traces.
6001 SmartPointer<uc16> ToWideCString( 6001 SmartArrayPointer<uc16> ToWideCString(
6002 RobustnessFlag robustness_flag = FAST_STRING_TRAVERSAL); 6002 RobustnessFlag robustness_flag = FAST_STRING_TRAVERSAL);
6003 6003
6004 // Tells whether the hash code has been computed. 6004 // Tells whether the hash code has been computed.
6005 inline bool HasHashCode(); 6005 inline bool HasHashCode();
6006 6006
6007 // Returns a hash value used for the property table 6007 // Returns a hash value used for the property table
6008 inline uint32_t Hash(); 6008 inline uint32_t Hash();
6009 6009
6010 static uint32_t ComputeHashField(unibrow::CharacterStream* buffer, 6010 static uint32_t ComputeHashField(unibrow::CharacterStream* buffer,
6011 int length); 6011 int length);
(...skipping 1444 matching lines...) Expand 10 before | Expand all | Expand 10 after
7456 } else { 7456 } else {
7457 value &= ~(1 << bit_position); 7457 value &= ~(1 << bit_position);
7458 } 7458 }
7459 return value; 7459 return value;
7460 } 7460 }
7461 }; 7461 };
7462 7462
7463 } } // namespace v8::internal 7463 } } // namespace v8::internal
7464 7464
7465 #endif // V8_OBJECTS_H_ 7465 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698