v8-preparser.h   v8-preparser.h 
skipping to change at line 99 skipping to change at line 99
}; };
// Interface for a stream of Unicode characters. // Interface for a stream of Unicode characters.
class UnicodeInputStream { class UnicodeInputStream {
public: public:
virtual ~UnicodeInputStream(); virtual ~UnicodeInputStream();
// Returns the next Unicode code-point in the input, or a negative value when // Returns the next Unicode code-point in the input, or a negative value when
// there is no more input in the stream. // there is no more input in the stream.
virtual int32_t Next() = 0; virtual int32_t Next() = 0;
// Pushes a read character back into the stream, so that it will be the n
ext
// to be read by Advance(). The character pushed back must be the most
// recently read character that hasn't already been pushed back (i.e., if
// pushing back more than one character, they must occur in the opposite
order
// of the one they were read in).
virtual void PushBack(int32_t ch) = 0;
}; };
// Preparse a JavaScript program. The source code is provided as a // Preparse a JavaScript program. The source code is provided as a
// UnicodeInputStream. The max_stack_size limits the amount of stack // UnicodeInputStream. The max_stack_size limits the amount of stack
// space that the preparser is allowed to use. If the preparser uses // space that the preparser is allowed to use. If the preparser uses
// more stack space than the limit provided, the result's stack_overflow() // more stack space than the limit provided, the result's stack_overflow()
// method will return true. Otherwise the result contains preparser // method will return true. Otherwise the result contains preparser
// data that can be used by the V8 parser to speed up parsing. // data that can be used by the V8 parser to speed up parsing.
PreParserData V8EXPORT Preparse(UnicodeInputStream* input, PreParserData V8EXPORT Preparse(UnicodeInputStream* input,
size_t max_stack_size); size_t max_stack_size);
 End of changes. 1 change blocks. 
9 lines changed or deleted 0 lines changed or added


 v8-profiler.h   v8-profiler.h 
skipping to change at line 240 skipping to change at line 240
/** Returns destination node. */ /** Returns destination node. */
const HeapGraphNode* GetToNode() const; const HeapGraphNode* GetToNode() const;
}; };
/** /**
* HeapGraphNode represents a node in a heap graph. * HeapGraphNode represents a node in a heap graph.
*/ */
class V8EXPORT HeapGraphNode { class V8EXPORT HeapGraphNode {
public: public:
enum Type { enum Type {
kInternal = 0, // For compatibility, will be removed.
kHidden = 0, // Hidden node, may be filtered when shown to user. kHidden = 0, // Hidden node, may be filtered when shown to user.
kArray = 1, // An array of elements. kArray = 1, // An array of elements.
kString = 2, // A string. kString = 2, // A string.
kObject = 3, // A JS object (except for arrays and strings). kObject = 3, // A JS object (except for arrays and strings).
kCode = 4, // Compiled code. kCode = 4, // Compiled code.
kClosure = 5, // Function closure. kClosure = 5, // Function closure.
kRegExp = 6, // RegExp. kRegExp = 6, // RegExp.
kHeapNumber = 7 // Number stored in the heap. kHeapNumber = 7 // Number stored in the heap.
}; };
skipping to change at line 405 skipping to change at line 404
/** Returns a profile by uid. */ /** Returns a profile by uid. */
static const HeapSnapshot* FindSnapshot(unsigned uid); static const HeapSnapshot* FindSnapshot(unsigned uid);
/** /**
* Takes a heap snapshot and returns it. Title may be an empty string. * Takes a heap snapshot and returns it. Title may be an empty string.
* See HeapSnapshot::Type for types description. * See HeapSnapshot::Type for types description.
*/ */
static const HeapSnapshot* TakeSnapshot( static const HeapSnapshot* TakeSnapshot(
Handle<String> title, Handle<String> title,
HeapSnapshot::Type type = HeapSnapshot::kFull); HeapSnapshot::Type type = HeapSnapshot::kFull,
ActivityControl* control = NULL);
}; };
} // namespace v8 } // namespace v8
#undef V8EXPORT #undef V8EXPORT
#endif // V8_V8_PROFILER_H_ #endif // V8_V8_PROFILER_H_
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added


 v8.h   v8.h 
skipping to change at line 975 skipping to change at line 975
*/ */
V8EXPORT int Utf8Length() const; V8EXPORT int Utf8Length() const;
/** /**
* Write the contents of the string to an external buffer. * Write the contents of the string to an external buffer.
* If no arguments are given, expects the buffer to be large * If no arguments are given, expects the buffer to be large
* enough to hold the entire string and NULL terminator. Copies * enough to hold the entire string and NULL terminator. Copies
* the contents of the string and the NULL terminator into the * the contents of the string and the NULL terminator into the
* buffer. * buffer.
* *
* WriteUtf8 will not write partial UTF-8 sequences, preferring to stop
* before the end of the buffer.
*
* Copies up to length characters into the output buffer. * Copies up to length characters into the output buffer.
* Only null-terminates if there is enough space in the buffer. * Only null-terminates if there is enough space in the buffer.
* *
* \param buffer The buffer into which the string will be copied. * \param buffer The buffer into which the string will be copied.
* \param start The starting position within the string at which * \param start The starting position within the string at which
* copying begins. * copying begins.
* \param length The number of bytes to copy from the string. * \param length The number of characters to copy from the string. For
* WriteUtf8 the number of bytes in the buffer.
* \param nchars_ref The number of characters written, can be NULL. * \param nchars_ref The number of characters written, can be NULL.
* \param hints Various hints that might affect performance of this or * \param hints Various hints that might affect performance of this or
* subsequent operations. * subsequent operations.
* \return The number of bytes copied to the buffer * \return The number of characters copied to the buffer excluding the nu
* excluding the NULL terminator. ll
* terminator. For WriteUtf8: The number of bytes copied to the buffe
r
* including the null terminator.
*/ */
enum WriteHints { enum WriteHints {
NO_HINTS = 0, NO_HINTS = 0,
HINT_MANY_WRITES_EXPECTED = 1 HINT_MANY_WRITES_EXPECTED = 1
}; };
V8EXPORT int Write(uint16_t* buffer, V8EXPORT int Write(uint16_t* buffer,
int start = 0, int start = 0,
int length = -1, int length = -1,
WriteHints hints = NO_HINTS) const; // UTF-16 WriteHints hints = NO_HINTS) const; // UTF-16
skipping to change at line 3209 skipping to change at line 3214
/** Get preferred output encoding. Called only once. */ /** Get preferred output encoding. Called only once. */
virtual OutputEncoding GetOutputEncoding() { return kAscii; } virtual OutputEncoding GetOutputEncoding() { return kAscii; }
/** /**
* Writes the next chunk of snapshot data into the stream. Writing * Writes the next chunk of snapshot data into the stream. Writing
* can be stopped by returning kAbort as function result. EndOfStream * can be stopped by returning kAbort as function result. EndOfStream
* will not be called in case writing was aborted. * will not be called in case writing was aborted.
*/ */
virtual WriteResult WriteAsciiChunk(char* data, int size) = 0; virtual WriteResult WriteAsciiChunk(char* data, int size) = 0;
}; };
/**
* An interface for reporting progress and controlling long-running
* activities.
*/
class V8EXPORT ActivityControl { // NOLINT
public:
enum ControlOption {
kContinue = 0,
kAbort = 1
};
virtual ~ActivityControl() {}
/**
* Notify about current progress. The activity can be stopped by
* returning kAbort as the callback result.
*/
virtual ControlOption ReportProgressValue(int done, int total) = 0;
};
// --- I m p l e m e n t a t i o n --- // --- I m p l e m e n t a t i o n ---
namespace internal { namespace internal {
static const int kApiPointerSize = sizeof(void*); // NOLINT static const int kApiPointerSize = sizeof(void*); // NOLINT
static const int kApiIntSize = sizeof(int); // NOLINT static const int kApiIntSize = sizeof(int); // NOLINT
// Tag information for HeapObject. // Tag information for HeapObject.
const int kHeapObjectTag = 1; const int kHeapObjectTag = 1;
const int kHeapObjectTagSize = 2; const int kHeapObjectTagSize = 2;
 End of changes. 4 change blocks. 
3 lines changed or deleted 28 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/