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 5228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5239 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 5239 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
5240 ACCESSORS(Script, context_data, Object, kContextOffset) | 5240 ACCESSORS(Script, context_data, Object, kContextOffset) |
5241 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) | 5241 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) |
5242 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 5242 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
5243 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5243 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
5244 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5244 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
5245 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 5245 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
5246 kEvalFrominstructionsOffsetOffset) | 5246 kEvalFrominstructionsOffsetOffset) |
5247 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 5247 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
5248 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) | 5248 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) |
| 5249 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
| 5250 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
5249 | 5251 |
5250 Script::CompilationType Script::compilation_type() { | 5252 Script::CompilationType Script::compilation_type() { |
5251 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5253 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
5252 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5254 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
5253 } | 5255 } |
5254 void Script::set_compilation_type(CompilationType type) { | 5256 void Script::set_compilation_type(CompilationType type) { |
5255 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 5257 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
5256 type == COMPILATION_TYPE_EVAL)); | 5258 type == COMPILATION_TYPE_EVAL)); |
5257 } | 5259 } |
5258 Script::CompilationState Script::compilation_state() { | 5260 Script::CompilationState Script::compilation_state() { |
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7022 #undef READ_SHORT_FIELD | 7024 #undef READ_SHORT_FIELD |
7023 #undef WRITE_SHORT_FIELD | 7025 #undef WRITE_SHORT_FIELD |
7024 #undef READ_BYTE_FIELD | 7026 #undef READ_BYTE_FIELD |
7025 #undef WRITE_BYTE_FIELD | 7027 #undef WRITE_BYTE_FIELD |
7026 #undef NOBARRIER_READ_BYTE_FIELD | 7028 #undef NOBARRIER_READ_BYTE_FIELD |
7027 #undef NOBARRIER_WRITE_BYTE_FIELD | 7029 #undef NOBARRIER_WRITE_BYTE_FIELD |
7028 | 7030 |
7029 } } // namespace v8::internal | 7031 } } // namespace v8::internal |
7030 | 7032 |
7031 #endif // V8_OBJECTS_INL_H_ | 7033 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |