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

Side by Side Diff: src/heap.h

Issue 149068: - Inlined the code for make simple cons strings.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/heap.cc » ('j') | src/heap.cc » ('J')
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // Allocates a new SharedFunctionInfo object. 500 // Allocates a new SharedFunctionInfo object.
501 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 501 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
502 // failed. 502 // failed.
503 // Please note this does not perform a garbage collection. 503 // Please note this does not perform a garbage collection.
504 static Object* AllocateSharedFunctionInfo(Object* name); 504 static Object* AllocateSharedFunctionInfo(Object* name);
505 505
506 // Allocates a new cons string object. 506 // Allocates a new cons string object.
507 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 507 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
508 // failed. 508 // failed.
509 // Please note this does not perform a garbage collection. 509 // Please note this does not perform a garbage collection.
510 static Object* AllocateConsString(String* first, 510 static Object* AllocateConsString(String* first, String* second);
511 String* second);
512 511
513 // Allocates a new sliced string object which is a slice of an underlying 512 // Allocates a new sliced string object which is a slice of an underlying
514 // string buffer stretching from the index start (inclusive) to the index 513 // string buffer stretching from the index start (inclusive) to the index
515 // end (exclusive). 514 // end (exclusive).
516 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 515 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
517 // failed. 516 // failed.
518 // Please note this does not perform a garbage collection. 517 // Please note this does not perform a garbage collection.
519 static Object* AllocateSlicedString(String* buffer, 518 static Object* AllocateSlicedString(String* buffer,
520 int start, 519 int start,
521 int end); 520 int end);
(...skipping 859 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 int marked_count_; 1380 int marked_count_;
1382 1381
1383 // The count from the end of the previous full GC. Will be zero if there 1382 // The count from the end of the previous full GC. Will be zero if there
1384 // was no previous full GC. 1383 // was no previous full GC.
1385 int previous_marked_count_; 1384 int previous_marked_count_;
1386 }; 1385 };
1387 1386
1388 } } // namespace v8::internal 1387 } } // namespace v8::internal
1389 1388
1390 #endif // V8_HEAP_H_ 1389 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698