OLD | NEW |
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 8034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8045 } | 8045 } |
8046 FOR_EACH_SCOPE_INFO_NUMERIC_FIELD(SCOPE_INFO_FIELD_ACCESSORS) | 8046 FOR_EACH_SCOPE_INFO_NUMERIC_FIELD(SCOPE_INFO_FIELD_ACCESSORS) |
8047 #undef SCOPE_INFO_FIELD_ACCESSORS | 8047 #undef SCOPE_INFO_FIELD_ACCESSORS |
8048 | 8048 |
8049 Object* ModuleInfoEntry::export_name() const { return get(kExportNameIndex); } | 8049 Object* ModuleInfoEntry::export_name() const { return get(kExportNameIndex); } |
8050 | 8050 |
8051 Object* ModuleInfoEntry::local_name() const { return get(kLocalNameIndex); } | 8051 Object* ModuleInfoEntry::local_name() const { return get(kLocalNameIndex); } |
8052 | 8052 |
8053 Object* ModuleInfoEntry::import_name() const { return get(kImportNameIndex); } | 8053 Object* ModuleInfoEntry::import_name() const { return get(kImportNameIndex); } |
8054 | 8054 |
8055 Object* ModuleInfoEntry::module_request() const { | 8055 int ModuleInfoEntry::module_request() const { |
8056 return get(kModuleRequestIndex); | 8056 return Smi::cast(get(kModuleRequestIndex))->value(); |
| 8057 } |
| 8058 |
| 8059 int ModuleInfoEntry::cell_index() const { |
| 8060 return Smi::cast(get(kCellIndexIndex))->value(); |
8057 } | 8061 } |
8058 | 8062 |
8059 int ModuleInfoEntry::beg_pos() const { | 8063 int ModuleInfoEntry::beg_pos() const { |
8060 return Smi::cast(get(kBegPosIndex))->value(); | 8064 return Smi::cast(get(kBegPosIndex))->value(); |
8061 } | 8065 } |
8062 | 8066 |
8063 int ModuleInfoEntry::end_pos() const { | 8067 int ModuleInfoEntry::end_pos() const { |
8064 return Smi::cast(get(kEndPosIndex))->value(); | 8068 return Smi::cast(get(kEndPosIndex))->value(); |
8065 } | 8069 } |
8066 | 8070 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8431 #undef WRITE_INT64_FIELD | 8435 #undef WRITE_INT64_FIELD |
8432 #undef READ_BYTE_FIELD | 8436 #undef READ_BYTE_FIELD |
8433 #undef WRITE_BYTE_FIELD | 8437 #undef WRITE_BYTE_FIELD |
8434 #undef NOBARRIER_READ_BYTE_FIELD | 8438 #undef NOBARRIER_READ_BYTE_FIELD |
8435 #undef NOBARRIER_WRITE_BYTE_FIELD | 8439 #undef NOBARRIER_WRITE_BYTE_FIELD |
8436 | 8440 |
8437 } // namespace internal | 8441 } // namespace internal |
8438 } // namespace v8 | 8442 } // namespace v8 |
8439 | 8443 |
8440 #endif // V8_OBJECTS_INL_H_ | 8444 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |