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

Side by Side Diff: src/objects.h

Issue 449010: Merge revisions r3372 - r3374 to trunk... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years 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/messages.js ('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 3164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 // [wrapper]: the wrapper cache. 3175 // [wrapper]: the wrapper cache.
3176 DECL_ACCESSORS(wrapper, Proxy) 3176 DECL_ACCESSORS(wrapper, Proxy)
3177 3177
3178 // [type]: the script type. 3178 // [type]: the script type.
3179 DECL_ACCESSORS(type, Smi) 3179 DECL_ACCESSORS(type, Smi)
3180 3180
3181 // [compilation]: how the the script was compiled. 3181 // [compilation]: how the the script was compiled.
3182 DECL_ACCESSORS(compilation_type, Smi) 3182 DECL_ACCESSORS(compilation_type, Smi)
3183 3183
3184 // [line_ends]: FixedArray of line ends positions. 3184 // [line_ends]: FixedArray of line ends positions.
3185 DECL_ACCESSORS(line_ends_fixed_array, Object) 3185 DECL_ACCESSORS(line_ends, Object)
3186
3187 // [line_ends]: JSArray of line ends positions.
3188 DECL_ACCESSORS(line_ends_js_array, Object)
3189 3186
3190 // [eval_from_function]: for eval scripts the funcion from which eval was 3187 // [eval_from_function]: for eval scripts the funcion from which eval was
3191 // called. 3188 // called.
3192 DECL_ACCESSORS(eval_from_function, Object) 3189 DECL_ACCESSORS(eval_from_function, Object)
3193 3190
3194 // [eval_from_instructions_offset]: the instruction offset in the code for the 3191 // [eval_from_instructions_offset]: the instruction offset in the code for the
3195 // function from which eval was called where eval was called. 3192 // function from which eval was called where eval was called.
3196 DECL_ACCESSORS(eval_from_instructions_offset, Smi) 3193 DECL_ACCESSORS(eval_from_instructions_offset, Smi)
3197 3194
3198 static inline Script* cast(Object* obj); 3195 static inline Script* cast(Object* obj);
3199 3196
3200 // If script source is an external string, check that the underlying 3197 // If script source is an external string, check that the underlying
3201 // resource is accessible. Otherwise, always return true. 3198 // resource is accessible. Otherwise, always return true.
3202 inline bool HasValidSource(); 3199 inline bool HasValidSource();
3203 3200
3204 #ifdef DEBUG 3201 #ifdef DEBUG
3205 void ScriptPrint(); 3202 void ScriptPrint();
3206 void ScriptVerify(); 3203 void ScriptVerify();
3207 #endif 3204 #endif
3208 3205
3209 static const int kSourceOffset = HeapObject::kHeaderSize; 3206 static const int kSourceOffset = HeapObject::kHeaderSize;
3210 static const int kNameOffset = kSourceOffset + kPointerSize; 3207 static const int kNameOffset = kSourceOffset + kPointerSize;
3211 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 3208 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
3212 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 3209 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
3213 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; 3210 static const int kDataOffset = kColumnOffsetOffset + kPointerSize;
3214 static const int kContextOffset = kDataOffset + kPointerSize; 3211 static const int kContextOffset = kDataOffset + kPointerSize;
3215 static const int kWrapperOffset = kContextOffset + kPointerSize; 3212 static const int kWrapperOffset = kContextOffset + kPointerSize;
3216 static const int kTypeOffset = kWrapperOffset + kPointerSize; 3213 static const int kTypeOffset = kWrapperOffset + kPointerSize;
3217 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize; 3214 static const int kCompilationTypeOffset = kTypeOffset + kPointerSize;
3218 // We have the line ends array both in FixedArray form and in JSArray form. 3215 static const int kLineEndsOffset = kCompilationTypeOffset + kPointerSize;
3219 // The FixedArray form is useful when we don't have a context and so can't 3216 static const int kIdOffset = kLineEndsOffset + kPointerSize;
3220 // create a JSArray. The JSArray form is useful when we want to see the
3221 // array from JS code (e.g. debug-delay.js) which cannot handle unboxed
3222 // FixedArray objects.
3223 static const int kLineEndsFixedArrayOffset =
3224 kCompilationTypeOffset + kPointerSize;
3225 static const int kLineEndsJSArrayOffset =
3226 kLineEndsFixedArrayOffset + kPointerSize;
3227 static const int kIdOffset = kLineEndsJSArrayOffset + kPointerSize;
3228 static const int kEvalFromFunctionOffset = kIdOffset + kPointerSize; 3217 static const int kEvalFromFunctionOffset = kIdOffset + kPointerSize;
3229 static const int kEvalFrominstructionsOffsetOffset = 3218 static const int kEvalFrominstructionsOffsetOffset =
3230 kEvalFromFunctionOffset + kPointerSize; 3219 kEvalFromFunctionOffset + kPointerSize;
3231 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize; 3220 static const int kSize = kEvalFrominstructionsOffsetOffset + kPointerSize;
3232 3221
3233 private: 3222 private:
3234 DISALLOW_IMPLICIT_CONSTRUCTORS(Script); 3223 DISALLOW_IMPLICIT_CONSTRUCTORS(Script);
3235 }; 3224 };
3236 3225
3237 3226
(...skipping 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after
5053 } else { 5042 } else {
5054 value &= ~(1 << bit_position); 5043 value &= ~(1 << bit_position);
5055 } 5044 }
5056 return value; 5045 return value;
5057 } 5046 }
5058 }; 5047 };
5059 5048
5060 } } // namespace v8::internal 5049 } } // namespace v8::internal
5061 5050
5062 #endif // V8_OBJECTS_H_ 5051 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698