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 5163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5174 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 5174 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
5175 ACCESSORS(Script, context_data, Object, kContextOffset) | 5175 ACCESSORS(Script, context_data, Object, kContextOffset) |
5176 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) | 5176 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) |
5177 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 5177 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
5178 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5178 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
5179 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5179 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
5180 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 5180 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
5181 kEvalFrominstructionsOffsetOffset) | 5181 kEvalFrominstructionsOffsetOffset) |
5182 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 5182 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
5183 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) | 5183 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) |
| 5184 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
| 5185 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
5184 | 5186 |
5185 Script::CompilationType Script::compilation_type() { | 5187 Script::CompilationType Script::compilation_type() { |
5186 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5188 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
5187 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5189 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
5188 } | 5190 } |
5189 void Script::set_compilation_type(CompilationType type) { | 5191 void Script::set_compilation_type(CompilationType type) { |
5190 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 5192 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
5191 type == COMPILATION_TYPE_EVAL)); | 5193 type == COMPILATION_TYPE_EVAL)); |
5192 } | 5194 } |
5193 Script::CompilationState Script::compilation_state() { | 5195 Script::CompilationState Script::compilation_state() { |
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6986 #undef READ_SHORT_FIELD | 6988 #undef READ_SHORT_FIELD |
6987 #undef WRITE_SHORT_FIELD | 6989 #undef WRITE_SHORT_FIELD |
6988 #undef READ_BYTE_FIELD | 6990 #undef READ_BYTE_FIELD |
6989 #undef WRITE_BYTE_FIELD | 6991 #undef WRITE_BYTE_FIELD |
6990 #undef NOBARRIER_READ_BYTE_FIELD | 6992 #undef NOBARRIER_READ_BYTE_FIELD |
6991 #undef NOBARRIER_WRITE_BYTE_FIELD | 6993 #undef NOBARRIER_WRITE_BYTE_FIELD |
6992 | 6994 |
6993 } } // namespace v8::internal | 6995 } } // namespace v8::internal |
6994 | 6996 |
6995 #endif // V8_OBJECTS_INL_H_ | 6997 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |