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

Side by Side Diff: src/objects.h

Issue 185533014: 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: rebased 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
« no previous file with comments | « src/liveedit.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 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 6499 matching lines...) Expand 10 before | Expand all | Expand 10 after
6510 // [id]: the script id. 6510 // [id]: the script id.
6511 DECL_ACCESSORS(id, Smi) 6511 DECL_ACCESSORS(id, Smi)
6512 6512
6513 // [line_offset]: script line offset in resource from where it was extracted. 6513 // [line_offset]: script line offset in resource from where it was extracted.
6514 DECL_ACCESSORS(line_offset, Smi) 6514 DECL_ACCESSORS(line_offset, Smi)
6515 6515
6516 // [column_offset]: script column offset in resource from where it was 6516 // [column_offset]: script column offset in resource from where it was
6517 // extracted. 6517 // extracted.
6518 DECL_ACCESSORS(column_offset, Smi) 6518 DECL_ACCESSORS(column_offset, Smi)
6519 6519
6520 // [data]: additional data associated with this script.
6521 DECL_ACCESSORS(data, Object)
6522
6523 // [context_data]: context data for the context this script was compiled in. 6520 // [context_data]: context data for the context this script was compiled in.
6524 DECL_ACCESSORS(context_data, Object) 6521 DECL_ACCESSORS(context_data, Object)
6525 6522
6526 // [wrapper]: the wrapper cache. 6523 // [wrapper]: the wrapper cache.
6527 DECL_ACCESSORS(wrapper, Foreign) 6524 DECL_ACCESSORS(wrapper, Foreign)
6528 6525
6529 // [type]: the script type. 6526 // [type]: the script type.
6530 DECL_ACCESSORS(type, Smi) 6527 DECL_ACCESSORS(type, Smi)
6531 6528
6532 // [line_ends]: FixedArray of line ends positions. 6529 // [line_ends]: FixedArray of line ends positions.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6566 inline bool HasValidSource(); 6563 inline bool HasValidSource();
6567 6564
6568 // Dispatched behavior. 6565 // Dispatched behavior.
6569 DECLARE_PRINTER(Script) 6566 DECLARE_PRINTER(Script)
6570 DECLARE_VERIFIER(Script) 6567 DECLARE_VERIFIER(Script)
6571 6568
6572 static const int kSourceOffset = HeapObject::kHeaderSize; 6569 static const int kSourceOffset = HeapObject::kHeaderSize;
6573 static const int kNameOffset = kSourceOffset + kPointerSize; 6570 static const int kNameOffset = kSourceOffset + kPointerSize;
6574 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 6571 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
6575 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 6572 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
6576 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; 6573 static const int kContextOffset = kColumnOffsetOffset + kPointerSize;
6577 static const int kContextOffset = kDataOffset + kPointerSize;
6578 static const int kWrapperOffset = kContextOffset + kPointerSize; 6574 static const int kWrapperOffset = kContextOffset + kPointerSize;
6579 static const int kTypeOffset = kWrapperOffset + kPointerSize; 6575 static const int kTypeOffset = kWrapperOffset + kPointerSize;
6580 static const int kLineEndsOffset = kTypeOffset + kPointerSize; 6576 static const int kLineEndsOffset = kTypeOffset + kPointerSize;
6581 static const int kIdOffset = kLineEndsOffset + kPointerSize; 6577 static const int kIdOffset = kLineEndsOffset + kPointerSize;
6582 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; 6578 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize;
6583 static const int kEvalFrominstructionsOffsetOffset = 6579 static const int kEvalFrominstructionsOffsetOffset =
6584 kEvalFromSharedOffset + kPointerSize; 6580 kEvalFromSharedOffset + kPointerSize;
6585 static const int kFlagsOffset = 6581 static const int kFlagsOffset =
6586 kEvalFrominstructionsOffsetOffset + kPointerSize; 6582 kEvalFrominstructionsOffsetOffset + kPointerSize;
6587 static const int kSize = kFlagsOffset + kPointerSize; 6583 static const int kSize = kFlagsOffset + kPointerSize;
(...skipping 4192 matching lines...) Expand 10 before | Expand all | Expand 10 after
10780 } else { 10776 } else {
10781 value &= ~(1 << bit_position); 10777 value &= ~(1 << bit_position);
10782 } 10778 }
10783 return value; 10779 return value;
10784 } 10780 }
10785 }; 10781 };
10786 10782
10787 } } // namespace v8::internal 10783 } } // namespace v8::internal
10788 10784
10789 #endif // V8_OBJECTS_H_ 10785 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/liveedit.cc ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698