| 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 5130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5141 ACCESSORS(Script, id, Smi, kIdOffset) | 5141 ACCESSORS(Script, id, Smi, kIdOffset) |
| 5142 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) | 5142 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) |
| 5143 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 5143 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
| 5144 ACCESSORS(Script, context_data, Object, kContextOffset) | 5144 ACCESSORS(Script, context_data, Object, kContextOffset) |
| 5145 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) | 5145 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) |
| 5146 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 5146 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
| 5147 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5147 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
| 5148 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5148 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
| 5149 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 5149 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
| 5150 kEvalFrominstructionsOffsetOffset) | 5150 kEvalFrominstructionsOffsetOffset) |
| 5151 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset) |
| 5151 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 5152 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
| 5152 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) | 5153 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
| 5153 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) | 5154 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
| 5154 | 5155 |
| 5155 Script::CompilationType Script::compilation_type() { | 5156 Script::CompilationType Script::compilation_type() { |
| 5156 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5157 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
| 5157 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5158 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
| 5158 } | 5159 } |
| 5159 void Script::set_compilation_type(CompilationType type) { | 5160 void Script::set_compilation_type(CompilationType type) { |
| 5160 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 5161 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
| (...skipping 2162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7323 #undef READ_SHORT_FIELD | 7324 #undef READ_SHORT_FIELD |
| 7324 #undef WRITE_SHORT_FIELD | 7325 #undef WRITE_SHORT_FIELD |
| 7325 #undef READ_BYTE_FIELD | 7326 #undef READ_BYTE_FIELD |
| 7326 #undef WRITE_BYTE_FIELD | 7327 #undef WRITE_BYTE_FIELD |
| 7327 #undef NOBARRIER_READ_BYTE_FIELD | 7328 #undef NOBARRIER_READ_BYTE_FIELD |
| 7328 #undef NOBARRIER_WRITE_BYTE_FIELD | 7329 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7329 | 7330 |
| 7330 } } // namespace v8::internal | 7331 } } // namespace v8::internal |
| 7331 | 7332 |
| 7332 #endif // V8_OBJECTS_INL_H_ | 7333 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |