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

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: 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 6494 matching lines...) Expand 10 before | Expand all | Expand 10 after
6505 // [id]: the script id. 6505 // [id]: the script id.
6506 DECL_ACCESSORS(id, Smi) 6506 DECL_ACCESSORS(id, Smi)
6507 6507
6508 // [line_offset]: script line offset in resource from where it was extracted. 6508 // [line_offset]: script line offset in resource from where it was extracted.
6509 DECL_ACCESSORS(line_offset, Smi) 6509 DECL_ACCESSORS(line_offset, Smi)
6510 6510
6511 // [column_offset]: script column offset in resource from where it was 6511 // [column_offset]: script column offset in resource from where it was
6512 // extracted. 6512 // extracted.
6513 DECL_ACCESSORS(column_offset, Smi) 6513 DECL_ACCESSORS(column_offset, Smi)
6514 6514
6515 // [data]: additional data associated with this script.
6516 DECL_ACCESSORS(data, Object)
6517
6518 // [context_data]: context data for the context this script was compiled in. 6515 // [context_data]: context data for the context this script was compiled in.
6519 DECL_ACCESSORS(context_data, Object) 6516 DECL_ACCESSORS(context_data, Object)
6520 6517
6521 // [wrapper]: the wrapper cache. 6518 // [wrapper]: the wrapper cache.
6522 DECL_ACCESSORS(wrapper, Foreign) 6519 DECL_ACCESSORS(wrapper, Foreign)
6523 6520
6524 // [type]: the script type. 6521 // [type]: the script type.
6525 DECL_ACCESSORS(type, Smi) 6522 DECL_ACCESSORS(type, Smi)
6526 6523
6527 // [line_ends]: FixedArray of line ends positions. 6524 // [line_ends]: FixedArray of line ends positions.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
6561 inline bool HasValidSource(); 6558 inline bool HasValidSource();
6562 6559
6563 // Dispatched behavior. 6560 // Dispatched behavior.
6564 DECLARE_PRINTER(Script) 6561 DECLARE_PRINTER(Script)
6565 DECLARE_VERIFIER(Script) 6562 DECLARE_VERIFIER(Script)
6566 6563
6567 static const int kSourceOffset = HeapObject::kHeaderSize; 6564 static const int kSourceOffset = HeapObject::kHeaderSize;
6568 static const int kNameOffset = kSourceOffset + kPointerSize; 6565 static const int kNameOffset = kSourceOffset + kPointerSize;
6569 static const int kLineOffsetOffset = kNameOffset + kPointerSize; 6566 static const int kLineOffsetOffset = kNameOffset + kPointerSize;
6570 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize; 6567 static const int kColumnOffsetOffset = kLineOffsetOffset + kPointerSize;
6571 static const int kDataOffset = kColumnOffsetOffset + kPointerSize; 6568 static const int kContextOffset = kColumnOffsetOffset + kPointerSize;
6572 static const int kContextOffset = kDataOffset + kPointerSize;
6573 static const int kWrapperOffset = kContextOffset + kPointerSize; 6569 static const int kWrapperOffset = kContextOffset + kPointerSize;
6574 static const int kTypeOffset = kWrapperOffset + kPointerSize; 6570 static const int kTypeOffset = kWrapperOffset + kPointerSize;
6575 static const int kLineEndsOffset = kTypeOffset + kPointerSize; 6571 static const int kLineEndsOffset = kTypeOffset + kPointerSize;
6576 static const int kIdOffset = kLineEndsOffset + kPointerSize; 6572 static const int kIdOffset = kLineEndsOffset + kPointerSize;
6577 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize; 6573 static const int kEvalFromSharedOffset = kIdOffset + kPointerSize;
6578 static const int kEvalFrominstructionsOffsetOffset = 6574 static const int kEvalFrominstructionsOffsetOffset =
6579 kEvalFromSharedOffset + kPointerSize; 6575 kEvalFromSharedOffset + kPointerSize;
6580 static const int kFlagsOffset = 6576 static const int kFlagsOffset =
6581 kEvalFrominstructionsOffsetOffset + kPointerSize; 6577 kEvalFrominstructionsOffsetOffset + kPointerSize;
6582 static const int kSize = kFlagsOffset + kPointerSize; 6578 static const int kSize = kFlagsOffset + kPointerSize;
(...skipping 4193 matching lines...) Expand 10 before | Expand all | Expand 10 after
10776 } else { 10772 } else {
10777 value &= ~(1 << bit_position); 10773 value &= ~(1 << bit_position);
10778 } 10774 }
10779 return value; 10775 return value;
10780 } 10776 }
10781 }; 10777 };
10782 10778
10783 } } // namespace v8::internal 10779 } } // namespace v8::internal
10784 10780
10785 #endif // V8_OBJECTS_H_ 10781 #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