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

Side by Side Diff: src/objects.h

Issue 2611643002: [modules] Add an IsModule flag to ScriptOriginOptions. (Closed)
Patch Set: Remove convenience function from API. 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
« no previous file with comments | « src/d8.cc ('k') | test/cctest/compiler/test-linkage.cc » ('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 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 6946 matching lines...) Expand 10 before | Expand all | Expand 10 after
6957 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize; 6957 static const int kFlagsOffset = kSharedFunctionInfosOffset + kPointerSize;
6958 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize; 6958 static const int kSourceUrlOffset = kFlagsOffset + kPointerSize;
6959 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize; 6959 static const int kSourceMappingUrlOffset = kSourceUrlOffset + kPointerSize;
6960 static const int kSize = kSourceMappingUrlOffset + kPointerSize; 6960 static const int kSize = kSourceMappingUrlOffset + kPointerSize;
6961 6961
6962 private: 6962 private:
6963 // Bit positions in the flags field. 6963 // Bit positions in the flags field.
6964 static const int kCompilationTypeBit = 0; 6964 static const int kCompilationTypeBit = 0;
6965 static const int kCompilationStateBit = 1; 6965 static const int kCompilationStateBit = 1;
6966 static const int kOriginOptionsShift = 2; 6966 static const int kOriginOptionsShift = 2;
6967 static const int kOriginOptionsSize = 3; 6967 static const int kOriginOptionsSize = 4;
6968 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) 6968 static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1)
6969 << kOriginOptionsShift; 6969 << kOriginOptionsShift;
6970 6970
6971 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); 6971 DISALLOW_IMPLICIT_CONSTRUCTORS(Script);
6972 }; 6972 };
6973 6973
6974 6974
6975 // List of builtin functions we want to identify to improve code 6975 // List of builtin functions we want to identify to improve code
6976 // generation. 6976 // generation.
6977 // 6977 //
(...skipping 4670 matching lines...) Expand 10 before | Expand all | Expand 10 after
11648 } 11648 }
11649 }; 11649 };
11650 11650
11651 11651
11652 } // NOLINT, false-positive due to second-order macros. 11652 } // NOLINT, false-positive due to second-order macros.
11653 } // NOLINT, false-positive due to second-order macros. 11653 } // NOLINT, false-positive due to second-order macros.
11654 11654
11655 #include "src/objects/object-macros-undef.h" 11655 #include "src/objects/object-macros-undef.h"
11656 11656
11657 #endif // V8_OBJECTS_H_ 11657 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « 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