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

Side by Side Diff: src/heap.h

Issue 9181: Push string shape fixes to trunk (version 0.4.3.1). (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 12 years, 1 month 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/heap.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 488 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
489 // failed. 489 // failed.
490 // Please note this does not perform a garbage collection. 490 // Please note this does not perform a garbage collection.
491 static Object* AllocateSharedFunctionInfo(Object* name); 491 static Object* AllocateSharedFunctionInfo(Object* name);
492 492
493 // Allocates a new cons string object. 493 // Allocates a new cons string object.
494 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 494 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
495 // failed. 495 // failed.
496 // Please note this does not perform a garbage collection. 496 // Please note this does not perform a garbage collection.
497 static Object* AllocateConsString(String* first, 497 static Object* AllocateConsString(String* first,
498 StringShape first_shape, 498 String* second);
499 String* second,
500 StringShape second_shape);
501 499
502 // Allocates a new sliced string object which is a slice of an underlying 500 // Allocates a new sliced string object which is a slice of an underlying
503 // string buffer stretching from the index start (inclusive) to the index 501 // string buffer stretching from the index start (inclusive) to the index
504 // end (exclusive). 502 // end (exclusive).
505 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 503 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
506 // failed. 504 // failed.
507 // Please note this does not perform a garbage collection. 505 // Please note this does not perform a garbage collection.
508 static Object* AllocateSlicedString(String* buffer, 506 static Object* AllocateSlicedString(String* buffer,
509 StringShape buffer_shape,
510 int start, 507 int start,
511 int end); 508 int end);
512 509
513 // Allocates a new sub string object which is a substring of an underlying 510 // Allocates a new sub string object which is a substring of an underlying
514 // string buffer stretching from the index start (inclusive) to the index 511 // string buffer stretching from the index start (inclusive) to the index
515 // end (exclusive). 512 // end (exclusive).
516 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 513 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
517 // failed. 514 // failed.
518 // Please note this does not perform a garbage collection. 515 // Please note this does not perform a garbage collection.
519 static Object* AllocateSubString(String* buffer, 516 static Object* AllocateSubString(String* buffer,
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 int marked_count_; 1253 int marked_count_;
1257 1254
1258 // The count from the end of the previous full GC. Will be zero if there 1255 // The count from the end of the previous full GC. Will be zero if there
1259 // was no previous full GC. 1256 // was no previous full GC.
1260 int previous_marked_count_; 1257 int previous_marked_count_;
1261 }; 1258 };
1262 1259
1263 } } // namespace v8::internal 1260 } } // namespace v8::internal
1264 1261
1265 #endif // V8_HEAP_H_ 1262 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698