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

Side by Side Diff: src/objects.h

Issue 2611643002: [modules] Add an IsModule flag to ScriptOriginOptions. (Closed)
Patch Set: Created 3 years, 11 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 6951 matching lines...) Expand 10 before | Expand all | Expand 10 after
6962 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize; 6962 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize;
6963 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; 6963 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize;
6964 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; 6964 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize;
6965 static const int kSize = kSourceMappingUrlOffset + kPointerSize; 6965 static const int kSize = kSourceMappingUrlOffset + kPointerSize;
6966 6966
6967 private: 6967 private:
6968 // Bit positions in the flags field. 6968 // Bit positions in the flags field.
6969 static const int kCompilationTypeBit = 0; 6969 static const int kCompilationTypeBit = 0;
6970 static const int kCompilationStateBit = 1; 6970 static const int kCompilationStateBit = 1;
6971 static const int kOriginOptionsShift = 2; 6971 static const int kOriginOptionsShift = 2;
6972 static const int kOriginOptionsSize = 3; 6972 static const int kOriginOptionsSize = 4;
6973 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) 6973 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1)
6974 << kOriginOptionsShift; 6974 << kOriginOptionsShift;
6975 6975
6976 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); 6976 DISALLOW_IMPLICIT_CONSTRUCTORS(Script);
6977 }; 6977 };
6978 6978
6979 6979
6980 // List of builtin functions we want to identify to improve code 6980 // List of builtin functions we want to identify to improve code
6981 // generation. 6981 // generation.
6982 // 6982 //
(...skipping 4737 matching lines...) Expand 10 before | Expand all | Expand 10 after
11720 } 11720 }
11721 }; 11721 };
11722 11722
11723 11723
11724 } // NOLINT, false-positive due to second-order macros. 11724 } // NOLINT, false-positive due to second-order macros.
11725 } // NOLINT, false-positive due to second-order macros. 11725 } // NOLINT, false-positive due to second-order macros.
11726 11726
11727 #include "src/objects/object-macros-undef.h" 11727 #include "src/objects/object-macros-undef.h"
11728 11728
11729 #endif // V8_OBJECTS_H_ 11729 #endif // V8_OBJECTS_H_
OLDNEW
« include/v8.h ('K') | « src/d8.cc ('k') | test/cctest/compiler/test-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698