OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5159 Script::CompilationState Script::compilation_state() { | 5159 Script::CompilationState Script::compilation_state() { |
5160 return BooleanBit::get(flags(), kCompilationStateBit) ? | 5160 return BooleanBit::get(flags(), kCompilationStateBit) ? |
5161 COMPILATION_STATE_COMPILED : COMPILATION_STATE_INITIAL; | 5161 COMPILATION_STATE_COMPILED : COMPILATION_STATE_INITIAL; |
5162 } | 5162 } |
5163 void Script::set_compilation_state(CompilationState state) { | 5163 void Script::set_compilation_state(CompilationState state) { |
5164 set_flags(BooleanBit::set(flags(), kCompilationStateBit, | 5164 set_flags(BooleanBit::set(flags(), kCompilationStateBit, |
5165 state == COMPILATION_STATE_COMPILED)); | 5165 state == COMPILATION_STATE_COMPILED)); |
5166 } | 5166 } |
5167 | 5167 |
5168 | 5168 |
5169 #ifdef ENABLE_DEBUGGER_SUPPORT | |
5170 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) | 5169 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |
5171 ACCESSORS(DebugInfo, original_code, Code, kOriginalCodeIndex) | 5170 ACCESSORS(DebugInfo, original_code, Code, kOriginalCodeIndex) |
5172 ACCESSORS(DebugInfo, code, Code, kPatchedCodeIndex) | 5171 ACCESSORS(DebugInfo, code, Code, kPatchedCodeIndex) |
5173 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) | 5172 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) |
5174 | 5173 |
5175 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex) | 5174 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex) |
5176 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex) | 5175 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex) |
5177 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex) | 5176 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex) |
5178 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) | 5177 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) |
5179 #endif | |
5180 | 5178 |
5181 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) | 5179 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) |
5182 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, | 5180 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, |
5183 kOptimizedCodeMapOffset) | 5181 kOptimizedCodeMapOffset) |
5184 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) | 5182 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) |
5185 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) | 5183 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) |
5186 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, | 5184 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, |
5187 kInstanceClassNameOffset) | 5185 kInstanceClassNameOffset) |
5188 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) | 5186 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) |
5189 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) | 5187 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) |
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7027 #undef READ_SHORT_FIELD | 7025 #undef READ_SHORT_FIELD |
7028 #undef WRITE_SHORT_FIELD | 7026 #undef WRITE_SHORT_FIELD |
7029 #undef READ_BYTE_FIELD | 7027 #undef READ_BYTE_FIELD |
7030 #undef WRITE_BYTE_FIELD | 7028 #undef WRITE_BYTE_FIELD |
7031 #undef NOBARRIER_READ_BYTE_FIELD | 7029 #undef NOBARRIER_READ_BYTE_FIELD |
7032 #undef NOBARRIER_WRITE_BYTE_FIELD | 7030 #undef NOBARRIER_WRITE_BYTE_FIELD |
7033 | 7031 |
7034 } } // namespace v8::internal | 7032 } } // namespace v8::internal |
7035 | 7033 |
7036 #endif // V8_OBJECTS_INL_H_ | 7034 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |