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

Side by Side Diff: src/objects.h

Issue 1418623007: [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, 2 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
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 7027 matching lines...) Expand 10 before | Expand all | Expand 10 after
7038 static const int kStrongModeBitWithinByte = 7038 static const int kStrongModeBitWithinByte =
7039 (kStrongModeFunction + kCompilerHintsSmiTagSize) % kBitsPerByte; 7039 (kStrongModeFunction + kCompilerHintsSmiTagSize) % kBitsPerByte;
7040 7040
7041 static const int kNativeBitWithinByte = 7041 static const int kNativeBitWithinByte =
7042 (kNative + kCompilerHintsSmiTagSize) % kBitsPerByte; 7042 (kNative + kCompilerHintsSmiTagSize) % kBitsPerByte;
7043 7043
7044 static const int kBoundBitWithinByte = 7044 static const int kBoundBitWithinByte =
7045 (kBoundFunction + kCompilerHintsSmiTagSize) % kBitsPerByte; 7045 (kBoundFunction + kCompilerHintsSmiTagSize) % kBitsPerByte;
7046 7046
7047 #if defined(V8_TARGET_LITTLE_ENDIAN) 7047 #if defined(V8_TARGET_LITTLE_ENDIAN)
7048 static const int kStrictModeByteOffset = kCompilerHintsOffset + 7048 static const int kStrictModeByteOffset =
7049 kCompilerHintsOffset +
7049 (kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte; 7050 (kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte;
7050 static const int kStrongModeByteOffset = 7051 static const int kStrongModeByteOffset =
7051 kCompilerHintsOffset + 7052 kCompilerHintsOffset +
7052 (kStrongModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte; 7053 (kStrongModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte;
7053 static const int kNativeByteOffset = kCompilerHintsOffset + 7054 static const int kNativeByteOffset =
7055 kCompilerHintsOffset +
7054 (kNative + kCompilerHintsSmiTagSize) / kBitsPerByte; 7056 (kNative + kCompilerHintsSmiTagSize) / kBitsPerByte;
7055 static const int kBoundByteOffset = 7057 static const int kBoundByteOffset =
7056 kCompilerHintsOffset + 7058 kCompilerHintsOffset +
7057 (kBoundFunction + kCompilerHintsSmiTagSize) / kBitsPerByte; 7059 (kBoundFunction + kCompilerHintsSmiTagSize) / kBitsPerByte;
7060 static const int kIsArrowByteOffset =
7061 kCompilerHintsOffset +
7062 (kIsArrow + kCompilerHintsSmiTagSize) / kBitsPerByte;
7058 #elif defined(V8_TARGET_BIG_ENDIAN) 7063 #elif defined(V8_TARGET_BIG_ENDIAN)
7059 static const int kStrictModeByteOffset = kCompilerHintsOffset + 7064 static const int kStrictModeByteOffset =
7060 (kCompilerHintsSize - 1) - 7065 kCompilerHintsOffset + (kCompilerHintsSize - 1) -
7061 ((kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte); 7066 ((kStrictModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte);
7062 static const int kStrongModeByteOffset = 7067 static const int kStrongModeByteOffset =
7063 kCompilerHintsOffset + (kCompilerHintsSize - 1) - 7068 kCompilerHintsOffset + (kCompilerHintsSize - 1) -
7064 ((kStrongModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte); 7069 ((kStrongModeFunction + kCompilerHintsSmiTagSize) / kBitsPerByte);
7065 static const int kNativeByteOffset = kCompilerHintsOffset + 7070 static const int kNativeByteOffset =
7066 (kCompilerHintsSize - 1) - 7071 kCompilerHintsOffset + (kCompilerHintsSize - 1) -
7067 ((kNative + kCompilerHintsSmiTagSize) / kBitsPerByte); 7072 ((kNative + kCompilerHintsSmiTagSize) / kBitsPerByte);
7068 static const int kBoundByteOffset = 7073 static const int kBoundByteOffset =
7069 kCompilerHintsOffset + (kCompilerHintsSize - 1) - 7074 kCompilerHintsOffset + (kCompilerHintsSize - 1) -
7070 ((kBoundFunction + kCompilerHintsSmiTagSize) / kBitsPerByte); 7075 ((kBoundFunction + kCompilerHintsSmiTagSize) / kBitsPerByte);
7076 static const int kIsArrowByteOffset =
7077 kCompilerHintsOffset + (kCompilerHintsSize - 1) -
7078 ((kIsArrow + kCompilerHintsSmiTagSize) / kBitsPerByte);
7071 #else 7079 #else
7072 #error Unknown byte ordering 7080 #error Unknown byte ordering
7073 #endif 7081 #endif
7074 7082
7075 private: 7083 private:
7076 // Returns entry from optimized code map for specified context and OSR entry. 7084 // Returns entry from optimized code map for specified context and OSR entry.
7077 // The result is either kNotFound, kSharedCodeIndex for context-independent 7085 // The result is either kNotFound, kSharedCodeIndex for context-independent
7078 // entry or a start index of the context-dependent entry. 7086 // entry or a start index of the context-dependent entry.
7079 int SearchOptimizedCodeMapEntry(Context* native_context, 7087 int SearchOptimizedCodeMapEntry(Context* native_context,
7080 BailoutId osr_ast_id); 7088 BailoutId osr_ast_id);
(...skipping 3705 matching lines...) Expand 10 before | Expand all | Expand 10 after
10786 // (elements + properties) in the current level. 10794 // (elements + properties) in the current level.
10787 int levelLength_; 10795 int levelLength_;
10788 10796
10789 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); 10797 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator);
10790 }; 10798 };
10791 10799
10792 } // NOLINT, false-positive due to second-order macros. 10800 } // NOLINT, false-positive due to second-order macros.
10793 } // NOLINT, false-positive due to second-order macros. 10801 } // NOLINT, false-positive due to second-order macros.
10794 10802
10795 #endif // V8_OBJECTS_H_ 10803 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/runtime/runtime-function.cc » ('j') | src/x64/builtins-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698