Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Side by Side Diff: src/objects.h

Issue 269003: Fix a crash in Logger::LogCompiledFunctions due to a presence of scripts with disposed source. (Closed)
Patch Set: Fixed comments Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/log.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698