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

Side by Side Diff: src/objects-inl.h

Issue 2357003002: [modules] Also (de-)serialize imports. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/objects.h ('k') | 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 7941 matching lines...) Expand 10 before | Expand all | Expand 10 after
7952 } 7952 }
7953 7953
7954 FixedArray* ModuleInfo::special_exports() const { 7954 FixedArray* ModuleInfo::special_exports() const {
7955 return FixedArray::cast(get(kSpecialExportsIndex)); 7955 return FixedArray::cast(get(kSpecialExportsIndex));
7956 } 7956 }
7957 7957
7958 FixedArray* ModuleInfo::regular_exports() const { 7958 FixedArray* ModuleInfo::regular_exports() const {
7959 return FixedArray::cast(get(kRegularExportsIndex)); 7959 return FixedArray::cast(get(kRegularExportsIndex));
7960 } 7960 }
7961 7961
7962 FixedArray* ModuleInfo::regular_imports() const {
7963 return FixedArray::cast(get(kRegularImportsIndex));
7964 }
7965
7966 FixedArray* ModuleInfo::special_imports() const {
7967 return FixedArray::cast(get(kSpecialImportsIndex));
7968 }
7969
7962 #ifdef DEBUG 7970 #ifdef DEBUG
7963 bool ModuleInfo::Equals(ModuleInfo* other) const { 7971 bool ModuleInfo::Equals(ModuleInfo* other) const {
7964 return get(kSpecialExportsIndex) == other->get(kSpecialExportsIndex) && 7972 return regular_exports() == other->regular_exports() &&
7965 get(kRegularExportsIndex) == other->get(kRegularExportsIndex); 7973 regular_imports() == other->regular_imports() &&
7974 special_exports() == other->special_exports() &&
7975 special_imports() == other->special_imports();
7966 } 7976 }
7967 #endif 7977 #endif
7968 7978
7969 void Map::ClearCodeCache(Heap* heap) { 7979 void Map::ClearCodeCache(Heap* heap) {
7970 // No write barrier is needed since empty_fixed_array is not in new space. 7980 // No write barrier is needed since empty_fixed_array is not in new space.
7971 // Please note this function is used during marking: 7981 // Please note this function is used during marking:
7972 // - MarkCompactCollector::MarkUnmarkedObject 7982 // - MarkCompactCollector::MarkUnmarkedObject
7973 // - IncrementalMarking::Step 7983 // - IncrementalMarking::Step
7974 WRITE_FIELD(this, kCodeCacheOffset, heap->empty_fixed_array()); 7984 WRITE_FIELD(this, kCodeCacheOffset, heap->empty_fixed_array());
7975 } 7985 }
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
8294 #undef WRITE_INT64_FIELD 8304 #undef WRITE_INT64_FIELD
8295 #undef READ_BYTE_FIELD 8305 #undef READ_BYTE_FIELD
8296 #undef WRITE_BYTE_FIELD 8306 #undef WRITE_BYTE_FIELD
8297 #undef NOBARRIER_READ_BYTE_FIELD 8307 #undef NOBARRIER_READ_BYTE_FIELD
8298 #undef NOBARRIER_WRITE_BYTE_FIELD 8308 #undef NOBARRIER_WRITE_BYTE_FIELD
8299 8309
8300 } // namespace internal 8310 } // namespace internal
8301 } // namespace v8 8311 } // namespace v8
8302 8312
8303 #endif // V8_OBJECTS_INL_H_ 8313 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698