| 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 5516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5527 ACCESSORS(Script, source, Object, kSourceOffset) | 5527 ACCESSORS(Script, source, Object, kSourceOffset) |
| 5528 ACCESSORS(Script, name, Object, kNameOffset) | 5528 ACCESSORS(Script, name, Object, kNameOffset) |
| 5529 SMI_ACCESSORS(Script, id, kIdOffset) | 5529 SMI_ACCESSORS(Script, id, kIdOffset) |
| 5530 SMI_ACCESSORS(Script, line_offset, kLineOffsetOffset) | 5530 SMI_ACCESSORS(Script, line_offset, kLineOffsetOffset) |
| 5531 SMI_ACCESSORS(Script, column_offset, kColumnOffsetOffset) | 5531 SMI_ACCESSORS(Script, column_offset, kColumnOffsetOffset) |
| 5532 ACCESSORS(Script, context_data, Object, kContextOffset) | 5532 ACCESSORS(Script, context_data, Object, kContextOffset) |
| 5533 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) | 5533 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) |
| 5534 SMI_ACCESSORS(Script, type, kTypeOffset) | 5534 SMI_ACCESSORS(Script, type, kTypeOffset) |
| 5535 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5535 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
| 5536 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5536 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
| 5537 SMI_ACCESSORS(Script, eval_from_position, kEvalFromPositionOffset) | 5537 SMI_ACCESSORS(Script, eval_from_instructions_offset, |
| 5538 kEvalFrominstructionsOffsetOffset) |
| 5538 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset) | 5539 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset) |
| 5539 SMI_ACCESSORS(Script, flags, kFlagsOffset) | 5540 SMI_ACCESSORS(Script, flags, kFlagsOffset) |
| 5540 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) | 5541 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
| 5541 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) | 5542 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
| 5542 | 5543 |
| 5543 Script::CompilationType Script::compilation_type() { | 5544 Script::CompilationType Script::compilation_type() { |
| 5544 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5545 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
| 5545 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5546 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
| 5546 } | 5547 } |
| 5547 void Script::set_compilation_type(CompilationType type) { | 5548 void Script::set_compilation_type(CompilationType type) { |
| (...skipping 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7837 #undef WRITE_INT64_FIELD | 7838 #undef WRITE_INT64_FIELD |
| 7838 #undef READ_BYTE_FIELD | 7839 #undef READ_BYTE_FIELD |
| 7839 #undef WRITE_BYTE_FIELD | 7840 #undef WRITE_BYTE_FIELD |
| 7840 #undef NOBARRIER_READ_BYTE_FIELD | 7841 #undef NOBARRIER_READ_BYTE_FIELD |
| 7841 #undef NOBARRIER_WRITE_BYTE_FIELD | 7842 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7842 | 7843 |
| 7843 } // namespace internal | 7844 } // namespace internal |
| 7844 } // namespace v8 | 7845 } // namespace v8 |
| 7845 | 7846 |
| 7846 #endif // V8_OBJECTS_INL_H_ | 7847 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |