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 4469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4480 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) | 4480 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) |
4481 ACCESSORS(Script, data, Object, kDataOffset) | 4481 ACCESSORS(Script, data, Object, kDataOffset) |
4482 ACCESSORS(Script, context_data, Object, kContextOffset) | 4482 ACCESSORS(Script, context_data, Object, kContextOffset) |
4483 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) | 4483 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) |
4484 ACCESSORS_TO_SMI(Script, type, kTypeOffset) | 4484 ACCESSORS_TO_SMI(Script, type, kTypeOffset) |
4485 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) | 4485 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) |
4486 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) | 4486 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
4487 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, | 4487 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
4488 kEvalFrominstructionsOffsetOffset) | 4488 kEvalFrominstructionsOffsetOffset) |
4489 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) | 4489 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
| 4490 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) |
4490 | 4491 |
4491 Script::CompilationType Script::compilation_type() { | 4492 Script::CompilationType Script::compilation_type() { |
4492 return BooleanBit::get(flags(), kCompilationTypeBit) ? | 4493 return BooleanBit::get(flags(), kCompilationTypeBit) ? |
4493 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; | 4494 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; |
4494 } | 4495 } |
4495 void Script::set_compilation_type(CompilationType type) { | 4496 void Script::set_compilation_type(CompilationType type) { |
4496 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, | 4497 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, |
4497 type == COMPILATION_TYPE_EVAL)); | 4498 type == COMPILATION_TYPE_EVAL)); |
4498 } | 4499 } |
4499 Script::CompilationState Script::compilation_state() { | 4500 Script::CompilationState Script::compilation_state() { |
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6224 #undef WRITE_UINT32_FIELD | 6225 #undef WRITE_UINT32_FIELD |
6225 #undef READ_SHORT_FIELD | 6226 #undef READ_SHORT_FIELD |
6226 #undef WRITE_SHORT_FIELD | 6227 #undef WRITE_SHORT_FIELD |
6227 #undef READ_BYTE_FIELD | 6228 #undef READ_BYTE_FIELD |
6228 #undef WRITE_BYTE_FIELD | 6229 #undef WRITE_BYTE_FIELD |
6229 | 6230 |
6230 | 6231 |
6231 } } // namespace v8::internal | 6232 } } // namespace v8::internal |
6232 | 6233 |
6233 #endif // V8_OBJECTS_INL_H_ | 6234 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |