| 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 4960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4971 TYPE_EXTENSION = 1, | 4971 TYPE_EXTENSION = 1, |
| 4972 TYPE_NORMAL = 2 | 4972 TYPE_NORMAL = 2 |
| 4973 }; | 4973 }; |
| 4974 | 4974 |
| 4975 // Script compilation types. | 4975 // Script compilation types. |
| 4976 enum CompilationType { | 4976 enum CompilationType { |
| 4977 COMPILATION_TYPE_HOST = 0, | 4977 COMPILATION_TYPE_HOST = 0, |
| 4978 COMPILATION_TYPE_EVAL = 1 | 4978 COMPILATION_TYPE_EVAL = 1 |
| 4979 }; | 4979 }; |
| 4980 | 4980 |
| 4981 // Script compilation state. |
| 4982 enum CompilationState { |
| 4983 COMPILATION_STATE_INITIAL = 0, |
| 4984 COMPILATION_STATE_COMPILED = 1 |
| 4985 }; |
| 4986 |
| 4981 // [source]: the script source. | 4987 // [source]: the script source. |
| 4982 DECL_ACCESSORS(source, Object) | 4988 DECL_ACCESSORS(source, Object) |
| 4983 | 4989 |
| 4984 // [name]: the script name. | 4990 // [name]: the script name. |
| 4985 DECL_ACCESSORS(name, Object) | 4991 DECL_ACCESSORS(name, Object) |
| 4986 | 4992 |
| 4987 // [id]: the script id. | 4993 // [id]: the script id. |
| 4988 DECL_ACCESSORS(id, Object) | 4994 DECL_ACCESSORS(id, Object) |
| 4989 | 4995 |
| 4990 // [line_offset]: script line offset in resource from where it was extracted. | 4996 // [line_offset]: script line offset in resource from where it was extracted. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 5002 | 5008 |
| 5003 // [wrapper]: the wrapper cache. | 5009 // [wrapper]: the wrapper cache. |
| 5004 DECL_ACCESSORS(wrapper, Foreign) | 5010 DECL_ACCESSORS(wrapper, Foreign) |
| 5005 | 5011 |
| 5006 // [type]: the script type. | 5012 // [type]: the script type. |
| 5007 DECL_ACCESSORS(type, Smi) | 5013 DECL_ACCESSORS(type, Smi) |
| 5008 | 5014 |
| 5009 // [compilation]: how the the script was compiled. | 5015 // [compilation]: how the the script was compiled. |
| 5010 DECL_ACCESSORS(compilation_type, Smi) | 5016 DECL_ACCESSORS(compilation_type, Smi) |
| 5011 | 5017 |
| 5018 // [is_compiled]: determines whether the script has already been compiled. |
| 5019 DECL_ACCESSORS(compilation_state, Smi) |
| 5020 |
| 5012 // [line_ends]: FixedArray of line ends positions. | 5021 // [line_ends]: FixedArray of line ends positions. |
| 5013 DECL_ACCESSORS(line_ends, Object) | 5022 DECL_ACCESSORS(line_ends, Object) |
| 5014 | 5023 |
| 5015 // [eval_from_shared]: for eval scripts the shared funcion info for the | 5024 // [eval_from_shared]: for eval scripts the shared funcion info for the |
| 5016 // function from which eval was called. | 5025 // function from which eval was called. |
| 5017 DECL_ACCESSORS(eval_from_shared, Object) | 5026 DECL_ACCESSORS(eval_from_shared, Object) |
| 5018 | 5027 |
| 5019 // [eval_from_instructions_offset]: the instruction offset in the code for the | 5028 // [eval_from_instructions_offset]: the instruction offset in the code for the |
| 5020 // function from which eval was called where eval was called. | 5029 // function from which eval was called where eval was called. |
| 5021 DECL_ACCESSORS(eval_from_instructions_offset, Smi) | 5030 DECL_ACCESSORS(eval_from_instructions_offset, Smi) |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5038 | 5047 |
| 5039 static const int kSourceOffset = HeapObject::kHeaderSize; | 5048 static const int kSourceOffset = HeapObject::kHeaderSize; |
| 5040 static const int kNameOffset = kSourceOffset + kPointerSize; | 5049 static const int kNameOffset = kSourceOffset + kPointerSize; |
| 5041 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 5050 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
| 5042 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 5051 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
| 5043 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; | 5052 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; |
| 5044 static const int kContextOffset = kDataOffset + kPointerSize; | 5053 static const int kContextOffset = kDataOffset + kPointerSize; |
| 5045 static const int kWrapperOffset = kContextOffset + kPointerSize; | 5054 static const int kWrapperOffset = kContextOffset + kPointerSize; |
| 5046 static const int kTypeOffset = kWrapperOffset + kPointerSize; | 5055 static const int kTypeOffset = kWrapperOffset + kPointerSize; |
| 5047 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize; | 5056 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize; |
| 5048 static const int kLineEndsOffset = kCompilationTypeOffset + kPointerSize; | 5057 static const int kCompilationStateOffset = |
| 5058 kCompilationTypeOffset + kPointerSize; |
| 5059 static const int kLineEndsOffset = kCompilationStateOffset + kPointerSize; |
| 5049 static const int kIdOffset = kLineEndsOffset + kPointerSize; | 5060 static const int kIdOffset = kLineEndsOffset + kPointerSize; |
| 5050 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; | 5061 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; |
| 5051 static const int kEvalFrominstructionsOffsetOffset = | 5062 static const int kEvalFrominstructionsOffsetOffset = |
| 5052 kEvalFromSharedOffset + kPointerSize; | 5063 kEvalFromSharedOffset + kPointerSize; |
| 5053 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize; | 5064 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize; |
| 5054 | 5065 |
| 5055 private: | 5066 private: |
| 5056 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); | 5067 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
| 5057 }; | 5068 }; |
| 5058 | 5069 |
| (...skipping 3516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8575 } else { | 8586 } else { |
| 8576 value &= ~(1 << bit_position); | 8587 value &= ~(1 << bit_position); |
| 8577 } | 8588 } |
| 8578 return value; | 8589 return value; |
| 8579 } | 8590 } |
| 8580 }; | 8591 }; |
| 8581 | 8592 |
| 8582 } } // namespace v8::internal | 8593 } } // namespace v8::internal |
| 8583 | 8594 |
| 8584 #endif // V8_OBJECTS_H_ | 8595 #endif // V8_OBJECTS_H_ |
| OLD | NEW |