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 5120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5131 ACCESSORS(Script, id, Smi, kIdOffset) | 5131 ACCESSORS(Script, id, Smi, kIdOffset) |
5132 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) | 5132 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) |
5133 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 5133 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
5134 ACCESSORS(Script, context_data, Object, kContextOffset) | 5134 ACCESSORS(Script, context_data, Object, kContextOffset) |
5135 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) | 5135 ACCESSORS(Script, wrapper, HeapObject, kWrapperOffset) |
5136 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 5136 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
5137 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 5137 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
5138 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 5138 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
5139 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 5139 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
5140 kEvalFrominstructionsOffsetOffset) | 5140 kEvalFrominstructionsOffsetOffset) |
5141 ACCESSORS(Script, shared_function_infos, Object, kSharedFunctionInfosOffset) | |
5142 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 5141 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
5143 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) | 5142 ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
5144 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) | 5143 ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
5145 | 5144 |
5146 Script::CompilationType Script::compilation_type() { | 5145 Script::CompilationType Script::compilation_type() { |
5147 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 5146 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
5148 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 5147 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
5149 } | 5148 } |
5150 void Script::set_compilation_type(CompilationType type) { | 5149 void Script::set_compilation_type(CompilationType type) { |
5151 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 5150 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
(...skipping 2135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7287 #undef READ_SHORT_FIELD | 7286 #undef READ_SHORT_FIELD |
7288 #undef WRITE_SHORT_FIELD | 7287 #undef WRITE_SHORT_FIELD |
7289 #undef READ_BYTE_FIELD | 7288 #undef READ_BYTE_FIELD |
7290 #undef WRITE_BYTE_FIELD | 7289 #undef WRITE_BYTE_FIELD |
7291 #undef NOBARRIER_READ_BYTE_FIELD | 7290 #undef NOBARRIER_READ_BYTE_FIELD |
7292 #undef NOBARRIER_WRITE_BYTE_FIELD | 7291 #undef NOBARRIER_WRITE_BYTE_FIELD |
7293 | 7292 |
7294 } } // namespace v8::internal | 7293 } } // namespace v8::internal |
7295 | 7294 |
7296 #endif // V8_OBJECTS_INL_H_ | 7295 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |