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

Side by Side Diff: src/objects.h

Issue 385035: Restore info needed to register profile ticks in functions from... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/handles.cc ('k') | src/objects-debug.cc » ('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 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after
3149 3149
3150 // [wrapper]: the wrapper cache. 3150 // [wrapper]: the wrapper cache.
3151 DECL_ACCESSORS(wrapper, Proxy) 3151 DECL_ACCESSORS(wrapper, Proxy)
3152 3152
3153 // [type]: the script type. 3153 // [type]: the script type.
3154 DECL_ACCESSORS(type, Smi) 3154 DECL_ACCESSORS(type, Smi)
3155 3155
3156 // [compilation]: how the the script was compiled. 3156 // [compilation]: how the the script was compiled.
3157 DECL_ACCESSORS(compilation_type, Smi) 3157 DECL_ACCESSORS(compilation_type, Smi)
3158 3158
3159 // [line_ends]: array of line ends positions. 3159 // [line_ends]: FixedArray of line ends positions.
3160 DECL_ACCESSORS(line_ends, Object) 3160 DECL_ACCESSORS(line_ends_fixed_array, Object)
3161
3162 // [line_ends]: JSArray of line ends positions.
3163 DECL_ACCESSORS(line_ends_js_array, Object)
3161 3164
3162 // [eval_from_function]: for eval scripts the funcion from which eval was 3165 // [eval_from_function]: for eval scripts the funcion from which eval was
3163 // called. 3166 // called.
3164 DECL_ACCESSORS(eval_from_function, Object) 3167 DECL_ACCESSORS(eval_from_function, Object)
3165 3168
3166 // [eval_from_instructions_offset]: the instruction offset in the code for the 3169 // [eval_from_instructions_offset]: the instruction offset in the code for the
3167 // function from which eval was called where eval was called. 3170 // function from which eval was called where eval was called.
3168 DECL_ACCESSORS(eval_from_instructions_offset, Smi) 3171 DECL_ACCESSORS(eval_from_instructions_offset, Smi)
3169 3172
3170 static inline Script* cast(Object* obj); 3173 static inline Script* cast(Object* obj);
3171 3174
3172 // If script source is an external string, check that the underlying 3175 // If script source is an external string, check that the underlying
3173 // resource is accessible. Otherwise, always return true. 3176 // resource is accessible. Otherwise, always return true.
3174 inline bool HasValidSource(); 3177 inline bool HasValidSource();
3175 3178
3176 #ifdef DEBUG 3179 #ifdef DEBUG
3177 void ScriptPrint(); 3180 void ScriptPrint();
3178 void ScriptVerify(); 3181 void ScriptVerify();
3179 #endif 3182 #endif
3180 3183
3181 static const int kSourceOffset = HeapObject::kHeaderSize; 3184 static const int kSourceOffset = HeapObject::kHeaderSize;
3182 static const int kNameOffset = kSourceOffset + kPointerSize; 3185 static const int kNameOffset = kSourceOffset + kPointerSize;
3183 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 3186 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
3184 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 3187 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
3185 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; 3188 static const int kDataOffset = kColumnOffsetOffset + kPointerSize;
3186 static const int kContextOffset = kDataOffset + kPointerSize; 3189 static const int kContextOffset = kDataOffset + kPointerSize;
3187 static const int kWrapperOffset = kContextOffset + kPointerSize; 3190 static const int kWrapperOffset = kContextOffset + kPointerSize;
3188 static const int kTypeOffset = kWrapperOffset + kPointerSize; 3191 static const int kTypeOffset = kWrapperOffset + kPointerSize;
3189 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize; 3192 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize;
3190 static const int kLineEndsOffset = kCompilationTypeOffset + kPointerSize; 3193 static const int kLineEndsFixedArrayOffset =
3191 static const int kIdOffset = kLineEndsOffset + kPointerSize; 3194 kCompilationTypeOffset + kPointerSize;
3195 static const int kLineEndsJSArrayOffset =
3196 kLineEndsFixedArrayOffset + kPointerSize;
3197 static const int kIdOffset = kLineEndsJSArrayOffset + kPointerSize;
3192 static const int kEvalFromFunctionOffset = kIdOffset + kPointerSize; 3198 static const int kEvalFromFunctionOffset = kIdOffset + kPointerSize;
3193 static const int kEvalFrominstructionsOffsetOffset = 3199 static const int kEvalFrominstructionsOffsetOffset =
3194 kEvalFromFunctionOffset + kPointerSize; 3200 kEvalFromFunctionOffset + kPointerSize;
3195 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize; 3201 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize;
3196 3202
3197 private: 3203 private:
3198 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); 3204 DISALLOW_IMPLICIT_CONSTRUCTORS(Script);
3199 }; 3205 };
3200 3206
3201 3207
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
5022 } else { 5028 } else {
5023 value &= ~(1 << bit_position); 5029 value &= ~(1 << bit_position);
5024 } 5030 }
5025 return value; 5031 return value;
5026 } 5032 }
5027 }; 5033 };
5028 5034
5029 } } // namespace v8::internal 5035 } } // namespace v8::internal
5030 5036
5031 #endif // V8_OBJECTS_H_ 5037 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698