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

Side by Side Diff: src/handles.h

Issue 228093004: Implement handlified String::Flatten. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: even shorter Created 6 years, 8 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/factory.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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 friend class HandleScopeImplementer; 280 friend class HandleScopeImplementer;
281 }; 281 };
282 282
283 283
284 // ---------------------------------------------------------------------------- 284 // ----------------------------------------------------------------------------
285 // Handle operations. 285 // Handle operations.
286 // They might invoke garbage collection. The result is an handle to 286 // They might invoke garbage collection. The result is an handle to
287 // an object of expected type, or the handle is an error if running out 287 // an object of expected type, or the handle is an error if running out
288 // of space or encountering an internal error. 288 // of space or encountering an internal error.
289 289
290 // Flattens a string.
291 void FlattenString(Handle<String> str);
292
293 // Flattens a string and returns the underlying external or sequential
294 // string.
295 Handle<String> FlattenGetString(Handle<String> str);
296
297 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name); 290 Handle<Object> GetProperty(Handle<JSReceiver> obj, const char* name);
298 291
299 // Get the JS object corresponding to the given script; create it 292 // Get the JS object corresponding to the given script; create it
300 // if none exists. 293 // if none exists.
301 Handle<JSValue> GetScriptWrapper(Handle<Script> script); 294 Handle<JSValue> GetScriptWrapper(Handle<Script> script);
302 295
303 // Script line number computations. Note that the line number is zero-based. 296 // Script line number computations. Note that the line number is zero-based.
304 void InitScriptLineEnds(Handle<Script> script); 297 void InitScriptLineEnds(Handle<Script> script);
305 // For string calculates an array of line end positions. If the string 298 // For string calculates an array of line end positions. If the string
306 // does not end with a new line character, this character may optionally be 299 // does not end with a new line character, this character may optionally be
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 357
365 void Initialize() { 358 void Initialize() {
366 next = limit = NULL; 359 next = limit = NULL;
367 level = 0; 360 level = 0;
368 } 361 }
369 }; 362 };
370 363
371 } } // namespace v8::internal 364 } } // namespace v8::internal
372 365
373 #endif // V8_HANDLES_H_ 366 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698