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

Side by Side Diff: src/objects.h

Issue 10928083: Add more checks for native callback results. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/handles.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 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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
963 963
964 // Returns true if this is a JSValue containing a string and the index is 964 // Returns true if this is a JSValue containing a string and the index is
965 // < the length of the string. Used to implement [] on strings. 965 // < the length of the string. Used to implement [] on strings.
966 inline bool IsStringObjectWithCharacterAt(uint32_t index); 966 inline bool IsStringObjectWithCharacterAt(uint32_t index);
967 967
968 #ifdef DEBUG 968 #ifdef DEBUG
969 // Verify a pointer is a valid object pointer. 969 // Verify a pointer is a valid object pointer.
970 static void VerifyPointer(Object* p); 970 static void VerifyPointer(Object* p);
971 #endif 971 #endif
972 972
973 inline void VerifyApiCallResultType();
974
973 // Prints this object without details. 975 // Prints this object without details.
974 inline void ShortPrint() { 976 inline void ShortPrint() {
975 ShortPrint(stdout); 977 ShortPrint(stdout);
976 } 978 }
977 void ShortPrint(FILE* out); 979 void ShortPrint(FILE* out);
978 980
979 // Prints this object without details to a message accumulator. 981 // Prints this object without details to a message accumulator.
980 void ShortPrint(StringStream* accumulator); 982 void ShortPrint(StringStream* accumulator);
981 983
982 // Casting: This cast is only needed to satisfy macros in objects-inl.h. 984 // Casting: This cast is only needed to satisfy macros in objects-inl.h.
(...skipping 7967 matching lines...) Expand 10 before | Expand all | Expand 10 after
8950 } else { 8952 } else {
8951 value &= ~(1 << bit_position); 8953 value &= ~(1 << bit_position);
8952 } 8954 }
8953 return value; 8955 return value;
8954 } 8956 }
8955 }; 8957 };
8956 8958
8957 } } // namespace v8::internal 8959 } } // namespace v8::internal
8958 8960
8959 #endif // V8_OBJECTS_H_ 8961 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698