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

Side by Side Diff: src/objects.h

Issue 184403002: Remove Script::SetData and the script_data parameter from Script::(Compile|New). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: remove internal data field from internal script Created 6 years, 9 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 | Annotate | Revision Log
OLDNEW
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 6493 matching lines...) Expand 10 before | Expand all | Expand 10 after
6504 // [id]: the script id. 6504 // [id]: the script id.
6505 DECL_ACCESSORS(id, Smi) 6505 DECL_ACCESSORS(id, Smi)
6506 6506
6507 // [line_offset]: script line offset in resource from where it was extracted. 6507 // [line_offset]: script line offset in resource from where it was extracted.
6508 DECL_ACCESSORS(line_offset, Smi) 6508 DECL_ACCESSORS(line_offset, Smi)
6509 6509
6510 // [column_offset]: script column offset in resource from where it was 6510 // [column_offset]: script column offset in resource from where it was
6511 // extracted. 6511 // extracted.
6512 DECL_ACCESSORS(column_offset, Smi) 6512 DECL_ACCESSORS(column_offset, Smi)
6513 6513
6514 // [data]: additional data associated with this script.
6515 DECL_ACCESSORS(data, Object)
6516
6517 // [context_data]: context data for the context this script was compiled in. 6514 // [context_data]: context data for the context this script was compiled in.
6518 DECL_ACCESSORS(context_data, Object) 6515 DECL_ACCESSORS(context_data, Object)
6519 6516
6520 // [wrapper]: the wrapper cache. 6517 // [wrapper]: the wrapper cache.
6521 DECL_ACCESSORS(wrapper, Foreign) 6518 DECL_ACCESSORS(wrapper, Foreign)
6522 6519
6523 // [type]: the script type. 6520 // [type]: the script type.
6524 DECL_ACCESSORS(type, Smi) 6521 DECL_ACCESSORS(type, Smi)
6525 6522
6526 // [line_ends]: FixedArray of line ends positions. 6523 // [line_ends]: FixedArray of line ends positions.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6560 inline bool HasValidSource(); 6557 inline bool HasValidSource();
6561 6558
6562 // Dispatched behavior. 6559 // Dispatched behavior.
6563 DECLARE_PRINTER(Script) 6560 DECLARE_PRINTER(Script)
6564 DECLARE_VERIFIER(Script) 6561 DECLARE_VERIFIER(Script)
6565 6562
6566 static const int kSourceOffset = HeapObject::kHeaderSize; 6563 static const int kSourceOffset = HeapObject::kHeaderSize;
6567 static const int kNameOffset = kSourceOffset + kPointerSize; 6564 static const int kNameOffset = kSourceOffset + kPointerSize;
6568 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 6565 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
6569 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 6566 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
6570 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; 6567 static const int kContextOffset = kColumnOffsetOffset + kPointerSize;
6571 static const int kContextOffset = kDataOffset + kPointerSize;
6572 static const int kWrapperOffset = kContextOffset + kPointerSize; 6568 static const int kWrapperOffset = kContextOffset + kPointerSize;
6573 static const int kTypeOffset = kWrapperOffset + kPointerSize; 6569 static const int kTypeOffset = kWrapperOffset + kPointerSize;
6574 static const int kLineEndsOffset = kTypeOffset + kPointerSize; 6570 static const int kLineEndsOffset = kTypeOffset + kPointerSize;
6575 static const int kIdOffset = kLineEndsOffset + kPointerSize; 6571 static const int kIdOffset = kLineEndsOffset + kPointerSize;
6576 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; 6572 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize;
6577 static const int kEvalFrominstructionsOffsetOffset = 6573 static const int kEvalFrominstructionsOffsetOffset =
6578 kEvalFromSharedOffset + kPointerSize; 6574 kEvalFromSharedOffset + kPointerSize;
6579 static const int kFlagsOffset = 6575 static const int kFlagsOffset =
6580 kEvalFrominstructionsOffsetOffset + kPointerSize; 6576 kEvalFrominstructionsOffsetOffset + kPointerSize;
6581 static const int kSize = kFlagsOffset + kPointerSize; 6577 static const int kSize = kFlagsOffset + kPointerSize;
(...skipping 4195 matching lines...) Expand 10 before | Expand all | Expand 10 after
10777 } else { 10773 } else {
10778 value &= ~(1 << bit_position); 10774 value &= ~(1 << bit_position);
10779 } 10775 }
10780 return value; 10776 return value;
10781 } 10777 }
10782 }; 10778 };
10783 10779
10784 } } // namespace v8::internal 10780 } } // namespace v8::internal
10785 10781
10786 #endif // V8_OBJECTS_H_ 10782 #endif // V8_OBJECTS_H_
OLDNEW
« src/api.cc ('K') | « src/liveedit.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698