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

Side by Side Diff: src/objects.h

Issue 1433543002: Fix big-endian after [runtime] Fix ES6 9.2.1 [[Call]] when encountering a classConstructor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 7085 matching lines...) Expand 10 before | Expand all | Expand 10 after
7096 static const int kClassConstructorBitsWithinByte = 7096 static const int kClassConstructorBitsWithinByte =
7097 FunctionKind::kClassConstructor << kCompilerHintsSmiTagSize; 7097 FunctionKind::kClassConstructor << kCompilerHintsSmiTagSize;
7098 STATIC_ASSERT(kClassConstructorBitsWithinByte < (1 << kBitsPerByte)); 7098 STATIC_ASSERT(kClassConstructorBitsWithinByte < (1 << kBitsPerByte));
7099 7099
7100 #if defined(V8_TARGET_LITTLE_ENDIAN) 7100 #if defined(V8_TARGET_LITTLE_ENDIAN)
7101 #define BYTE_OFFSET(compiler_hint) \ 7101 #define BYTE_OFFSET(compiler_hint) \
7102 kCompilerHintsOffset + \ 7102 kCompilerHintsOffset + \
7103 (compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte 7103 (compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte
7104 #elif defined(V8_TARGET_BIG_ENDIAN) 7104 #elif defined(V8_TARGET_BIG_ENDIAN)
7105 #define BYTE_OFFSET(compiler_hint) \ 7105 #define BYTE_OFFSET(compiler_hint) \
7106 kCompilerHintsOffset + +(kCompilerHintsSize - 1) - \ 7106 kCompilerHintsOffset + (kCompilerHintsSize - 1) - \
7107 ((kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte) 7107 ((compiler_hint + kCompilerHintsSmiTagSize) / kBitsPerByte)
7108 #else 7108 #else
7109 #error Unknown byte ordering 7109 #error Unknown byte ordering
7110 #endif 7110 #endif
7111 static const int kStrictModeByteOffset = BYTE_OFFSET(kStrictModeFunction); 7111 static const int kStrictModeByteOffset = BYTE_OFFSET(kStrictModeFunction);
7112 static const int kStrongModeByteOffset = BYTE_OFFSET(kStrongModeFunction); 7112 static const int kStrongModeByteOffset = BYTE_OFFSET(kStrongModeFunction);
7113 static const int kNativeByteOffset = BYTE_OFFSET(kNative); 7113 static const int kNativeByteOffset = BYTE_OFFSET(kNative);
7114 static const int kBoundByteOffset = BYTE_OFFSET(kBoundFunction); 7114 static const int kBoundByteOffset = BYTE_OFFSET(kBoundFunction);
7115 static const int kFunctionKindByteOffset = BYTE_OFFSET(kFunctionKind); 7115 static const int kFunctionKindByteOffset = BYTE_OFFSET(kFunctionKind);
7116 #undef BYTE_OFFSET 7116 #undef BYTE_OFFSET
7117 7117
(...skipping 3696 matching lines...) Expand 10 before | Expand all | Expand 10 after
10814 // (elements + properties) in the current level. 10814 // (elements + properties) in the current level.
10815 int levelLength_ = 0; 10815 int levelLength_ = 0;
10816 10816
10817 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10817 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10818 }; 10818 };
10819 10819
10820 } // NOLINT, false-positive due to second-order macros. 10820 } // NOLINT, false-positive due to second-order macros.
10821 } // NOLINT, false-positive due to second-order macros. 10821 } // NOLINT, false-positive due to second-order macros.
10822 10822
10823 #endif // V8_OBJECTS_H_ 10823 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698