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

Side by Side Diff: include/v8.h

Issue 143633007: A64: Synchronize with r18764. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « build/toolchain.gypi ('k') | src/a64/code-stubs-a64.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 * \param options Various options that might affect performance of this or 1621 * \param options Various options that might affect performance of this or
1622 * subsequent operations. 1622 * subsequent operations.
1623 * \return The number of characters copied to the buffer excluding the null 1623 * \return The number of characters copied to the buffer excluding the null
1624 * terminator. For WriteUtf8: The number of bytes copied to the buffer 1624 * terminator. For WriteUtf8: The number of bytes copied to the buffer
1625 * including the null terminator (if written). 1625 * including the null terminator (if written).
1626 */ 1626 */
1627 enum WriteOptions { 1627 enum WriteOptions {
1628 NO_OPTIONS = 0, 1628 NO_OPTIONS = 0,
1629 HINT_MANY_WRITES_EXPECTED = 1, 1629 HINT_MANY_WRITES_EXPECTED = 1,
1630 NO_NULL_TERMINATION = 2, 1630 NO_NULL_TERMINATION = 2,
1631 PRESERVE_ASCII_NULL = 4 1631 PRESERVE_ASCII_NULL = 4,
1632 // Used by WriteUtf8 to replace orphan surrogate code units with the
1633 // unicode replacement character. Needs to be set to guarantee valid UTF-8
1634 // output.
1635 REPLACE_INVALID_UTF8 = 8
1632 }; 1636 };
1633 1637
1634 // 16-bit character codes. 1638 // 16-bit character codes.
1635 int Write(uint16_t* buffer, 1639 int Write(uint16_t* buffer,
1636 int start = 0, 1640 int start = 0,
1637 int length = -1, 1641 int length = -1,
1638 int options = NO_OPTIONS) const; 1642 int options = NO_OPTIONS) const;
1639 // One byte characters. 1643 // One byte characters.
1640 int WriteOneByte(uint8_t* buffer, 1644 int WriteOneByte(uint8_t* buffer,
1641 int start = 0, 1645 int start = 0,
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
3711 3715
3712 // Disallow copying and assigning. 3716 // Disallow copying and assigning.
3713 Extension(const Extension&); 3717 Extension(const Extension&);
3714 void operator=(const Extension&); 3718 void operator=(const Extension&);
3715 }; 3719 };
3716 3720
3717 3721
3718 void V8_EXPORT RegisterExtension(Extension* extension); 3722 void V8_EXPORT RegisterExtension(Extension* extension);
3719 3723
3720 3724
3721 /**
3722 * Ignore
3723 */
3724 class V8_EXPORT DeclareExtension {
3725 public:
3726 V8_INLINE DeclareExtension(Extension* extension) {
3727 RegisterExtension(extension);
3728 }
3729 };
3730
3731
3732 // --- Statics --- 3725 // --- Statics ---
3733 3726
3734 V8_INLINE Handle<Primitive> Undefined(Isolate* isolate); 3727 V8_INLINE Handle<Primitive> Undefined(Isolate* isolate);
3735 V8_INLINE Handle<Primitive> Null(Isolate* isolate); 3728 V8_INLINE Handle<Primitive> Null(Isolate* isolate);
3736 V8_INLINE Handle<Boolean> True(Isolate* isolate); 3729 V8_INLINE Handle<Boolean> True(Isolate* isolate);
3737 V8_INLINE Handle<Boolean> False(Isolate* isolate); 3730 V8_INLINE Handle<Boolean> False(Isolate* isolate);
3738 3731
3739 3732
3740 /** 3733 /**
3741 * A set of constraints that specifies the limits of the runtime's memory use. 3734 * A set of constraints that specifies the limits of the runtime's memory use.
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
5387 static const int kStringEncodingMask = 0x4; 5380 static const int kStringEncodingMask = 0x4;
5388 static const int kExternalTwoByteRepresentationTag = 0x02; 5381 static const int kExternalTwoByteRepresentationTag = 0x02;
5389 static const int kExternalAsciiRepresentationTag = 0x06; 5382 static const int kExternalAsciiRepresentationTag = 0x06;
5390 5383
5391 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; 5384 static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize;
5392 static const int kIsolateRootsOffset = 5 * kApiPointerSize; 5385 static const int kIsolateRootsOffset = 5 * kApiPointerSize;
5393 static const int kUndefinedValueRootIndex = 5; 5386 static const int kUndefinedValueRootIndex = 5;
5394 static const int kNullValueRootIndex = 7; 5387 static const int kNullValueRootIndex = 7;
5395 static const int kTrueValueRootIndex = 8; 5388 static const int kTrueValueRootIndex = 8;
5396 static const int kFalseValueRootIndex = 9; 5389 static const int kFalseValueRootIndex = 9;
5397 static const int kEmptyStringRootIndex = 136; 5390 static const int kEmptyStringRootIndex = 145;
5398 5391
5399 static const int kNodeClassIdOffset = 1 * kApiPointerSize; 5392 static const int kNodeClassIdOffset = 1 * kApiPointerSize;
5400 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3; 5393 static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3;
5401 static const int kNodeStateMask = 0xf; 5394 static const int kNodeStateMask = 0xf;
5402 static const int kNodeStateIsWeakValue = 2; 5395 static const int kNodeStateIsWeakValue = 2;
5403 static const int kNodeStateIsPendingValue = 3; 5396 static const int kNodeStateIsPendingValue = 3;
5404 static const int kNodeStateIsNearDeathValue = 4; 5397 static const int kNodeStateIsNearDeathValue = 4;
5405 static const int kNodeIsIndependentShift = 4; 5398 static const int kNodeIsIndependentShift = 4;
5406 static const int kNodeIsPartiallyDependentShift = 5; 5399 static const int kNodeIsPartiallyDependentShift = 5;
5407 5400
5408 static const int kJSObjectType = 0xb2; 5401 static const int kJSObjectType = 0xbb;
5409 static const int kFirstNonstringType = 0x80; 5402 static const int kFirstNonstringType = 0x80;
5410 static const int kOddballType = 0x83; 5403 static const int kOddballType = 0x83;
5411 static const int kForeignType = 0x87; 5404 static const int kForeignType = 0x87;
5412 5405
5413 static const int kUndefinedOddballKind = 5; 5406 static const int kUndefinedOddballKind = 5;
5414 static const int kNullOddballKind = 3; 5407 static const int kNullOddballKind = 3;
5415 5408
5416 static const uint32_t kNumIsolateDataSlots = 4; 5409 static const uint32_t kNumIsolateDataSlots = 4;
5417 5410
5418 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate); 5411 V8_EXPORT static void CheckInitializedImpl(v8::Isolate* isolate);
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after
6435 */ 6428 */
6436 6429
6437 6430
6438 } // namespace v8 6431 } // namespace v8
6439 6432
6440 6433
6441 #undef TYPE_CHECK 6434 #undef TYPE_CHECK
6442 6435
6443 6436
6444 #endif // V8_H_ 6437 #endif // V8_H_
OLDNEW
« no previous file with comments | « build/toolchain.gypi ('k') | src/a64/code-stubs-a64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698