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

Side by Side Diff: src/handles.h

Issue 11725006: Refactor out assumption that one byte strings are ascii in utf8 processing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix array bounds issue Created 7 years, 11 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/api.cc ('k') | src/handles.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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 // an object of expected type, or the handle is an error if running out 207 // an object of expected type, or the handle is an error if running out
208 // of space or encountering an internal error. 208 // of space or encountering an internal error.
209 209
210 // Flattens a string. 210 // Flattens a string.
211 void FlattenString(Handle<String> str); 211 void FlattenString(Handle<String> str);
212 212
213 // Flattens a string and returns the underlying external or sequential 213 // Flattens a string and returns the underlying external or sequential
214 // string. 214 // string.
215 Handle<String> FlattenGetString(Handle<String> str); 215 Handle<String> FlattenGetString(Handle<String> str);
216 216
217 int Utf8Length(Handle<String> str);
218
219 Handle<Object> SetProperty(Isolate* isolate, 217 Handle<Object> SetProperty(Isolate* isolate,
220 Handle<Object> object, 218 Handle<Object> object,
221 Handle<Object> key, 219 Handle<Object> key,
222 Handle<Object> value, 220 Handle<Object> value,
223 PropertyAttributes attributes, 221 PropertyAttributes attributes,
224 StrictModeFlag strict_mode); 222 StrictModeFlag strict_mode);
225 223
226 Handle<Object> ForceSetProperty(Handle<JSObject> object, 224 Handle<Object> ForceSetProperty(Handle<JSObject> object,
227 Handle<Object> key, 225 Handle<Object> key,
228 Handle<Object> value, 226 Handle<Object> value,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 inline ~NoHandleAllocation(); 335 inline ~NoHandleAllocation();
338 private: 336 private:
339 int level_; 337 int level_;
340 bool active_; 338 bool active_;
341 #endif 339 #endif
342 }; 340 };
343 341
344 } } // namespace v8::internal 342 } } // namespace v8::internal
345 343
346 #endif // V8_HANDLES_H_ 344 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698