| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2991 // [eval_from_function]: for eval scripts the funcion from which eval was | 2991 // [eval_from_function]: for eval scripts the funcion from which eval was |
| 2992 // called. | 2992 // called. |
| 2993 DECL_ACCESSORS(eval_from_function, Object) | 2993 DECL_ACCESSORS(eval_from_function, Object) |
| 2994 | 2994 |
| 2995 // [eval_from_instructions_offset]: the instruction offset in the code for the | 2995 // [eval_from_instructions_offset]: the instruction offset in the code for the |
| 2996 // function from which eval was called where eval was called. | 2996 // function from which eval was called where eval was called. |
| 2997 DECL_ACCESSORS(eval_from_instructions_offset, Smi) | 2997 DECL_ACCESSORS(eval_from_instructions_offset, Smi) |
| 2998 | 2998 |
| 2999 static inline Script* cast(Object* obj); | 2999 static inline Script* cast(Object* obj); |
| 3000 | 3000 |
| 3001 // If script source is an external string, check that the underlying |
| 3002 // resource is accessible. Otherwise, always return true. |
| 3003 inline bool HasValidSource(); |
| 3004 |
| 3001 #ifdef DEBUG | 3005 #ifdef DEBUG |
| 3002 void ScriptPrint(); | 3006 void ScriptPrint(); |
| 3003 void ScriptVerify(); | 3007 void ScriptVerify(); |
| 3004 #endif | 3008 #endif |
| 3005 | 3009 |
| 3006 static const int kSourceOffset = HeapObject::kHeaderSize; | 3010 static const int kSourceOffset = HeapObject::kHeaderSize; |
| 3007 static const int kNameOffset = kSourceOffset + kPointerSize; | 3011 static const int kNameOffset = kSourceOffset + kPointerSize; |
| 3008 static const int kLineOffsetOffset = kNameOffset + kPointerSize; | 3012 static const int kLineOffsetOffset = kNameOffset + kPointerSize; |
| 3009 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; | 3013 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; |
| 3010 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; | 3014 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; |
| (...skipping 1869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4880 } else { | 4884 } else { |
| 4881 value &= ~(1 << bit_position); | 4885 value &= ~(1 << bit_position); |
| 4882 } | 4886 } |
| 4883 return value; | 4887 return value; |
| 4884 } | 4888 } |
| 4885 }; | 4889 }; |
| 4886 | 4890 |
| 4887 } } // namespace v8::internal | 4891 } } // namespace v8::internal |
| 4888 | 4892 |
| 4889 #endif // V8_OBJECTS_H_ | 4893 #endif // V8_OBJECTS_H_ |
| OLD | NEW |