| Index: src/spaces.h
|
| ===================================================================
|
| --- src/spaces.h (revision 6904)
|
| +++ src/spaces.h (working copy)
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2006-2008 the V8 project authors. All rights reserved.
|
| +// Copyright 2006-2010 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -28,7 +28,6 @@
|
| #ifndef V8_SPACES_H_
|
| #define V8_SPACES_H_
|
|
|
| -#include "atomicops.h"
|
| #include "list-inl.h"
|
| #include "log.h"
|
|
|
| @@ -1623,6 +1622,11 @@
|
|
|
| virtual bool ReserveSpace(int bytes);
|
|
|
| + // Resizes a sequential string which must be the most recent thing that was
|
| + // allocated in new space.
|
| + template <typename StringType>
|
| + inline void ShrinkStringAtAllocationBoundary(String* string, int len);
|
| +
|
| #ifdef ENABLE_HEAP_PROTECTION
|
| // Protect/unprotect the space by marking it read-only/writable.
|
| virtual void Protect();
|
|
|