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

Side by Side Diff: src/objects-inl.h

Issue 7077: Under construction: Preliminary change to support per... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | 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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1802 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) 1802 ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex)
1803 ACCESSORS(DebugInfo, original_code, Code, kOriginalCodeIndex) 1803 ACCESSORS(DebugInfo, original_code, Code, kOriginalCodeIndex)
1804 ACCESSORS(DebugInfo, code, Code, kPatchedCodeIndex) 1804 ACCESSORS(DebugInfo, code, Code, kPatchedCodeIndex)
1805 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex) 1805 ACCESSORS(DebugInfo, break_points, FixedArray, kBreakPointsStateIndex)
1806 1806
1807 ACCESSORS(BreakPointInfo, code_position, Smi, kCodePositionIndex) 1807 ACCESSORS(BreakPointInfo, code_position, Smi, kCodePositionIndex)
1808 ACCESSORS(BreakPointInfo, source_position, Smi, kSourcePositionIndex) 1808 ACCESSORS(BreakPointInfo, source_position, Smi, kSourcePositionIndex)
1809 ACCESSORS(BreakPointInfo, statement_position, Smi, kStatementPositionIndex) 1809 ACCESSORS(BreakPointInfo, statement_position, Smi, kStatementPositionIndex)
1810 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) 1810 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex)
1811 1811
1812 ACCESSORS(SharedFunctionInfo, code, Code, kCodeOffset)
1813 ACCESSORS(SharedFunctionInfo, constructor, Code, kConstructorOffset)
1812 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) 1814 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset)
1813 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, 1815 ACCESSORS(SharedFunctionInfo, instance_class_name, Object,
1814 kInstanceClassNameOffset) 1816 kInstanceClassNameOffset)
1815 ACCESSORS(SharedFunctionInfo, function_data, Object, 1817 ACCESSORS(SharedFunctionInfo, function_data, Object,
1816 kExternalReferenceDataOffset) 1818 kExternalReferenceDataOffset)
1817 ACCESSORS(SharedFunctionInfo, lazy_load_data, Object, kLazyLoadDataOffset) 1819 ACCESSORS(SharedFunctionInfo, lazy_load_data, Object, kLazyLoadDataOffset)
1818 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) 1820 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset)
1819 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) 1821 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset)
1820 1822
1821 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, 1823 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype,
(...skipping 28 matching lines...) Expand all
1850 return start_position_and_type() >> kStartPositionShift; 1852 return start_position_and_type() >> kStartPositionShift;
1851 } 1853 }
1852 1854
1853 1855
1854 void SharedFunctionInfo::set_start_position(int start_position) { 1856 void SharedFunctionInfo::set_start_position(int start_position) {
1855 set_start_position_and_type((start_position << kStartPositionShift) 1857 set_start_position_and_type((start_position << kStartPositionShift)
1856 | (start_position_and_type() & ~kStartPositionMask)); 1858 | (start_position_and_type() & ~kStartPositionMask));
1857 } 1859 }
1858 1860
1859 1861
1860 Code* SharedFunctionInfo::code() {
1861 return Code::cast(READ_FIELD(this, kCodeOffset));
1862 }
1863
1864
1865 void SharedFunctionInfo::set_code(Code* value) {
1866 WRITE_FIELD(this, kCodeOffset, value);
1867 WRITE_BARRIER(this, kCodeOffset);
1868 }
1869
1870
1871 bool SharedFunctionInfo::is_compiled() { 1862 bool SharedFunctionInfo::is_compiled() {
1872 // TODO(1242782): Create a code kind for uncompiled code. 1863 // TODO(1242782): Create a code kind for uncompiled code.
1873 return code()->kind() != Code::STUB; 1864 return code()->kind() != Code::STUB;
1874 } 1865 }
1875 1866
1876 1867
1877 bool JSFunction::IsBoilerplate() { 1868 bool JSFunction::IsBoilerplate() {
1878 return map() == Heap::boilerplate_function_map(); 1869 return map() == Heap::boilerplate_function_map();
1879 } 1870 }
1880 1871
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
2256 #undef WRITE_INT_FIELD 2247 #undef WRITE_INT_FIELD
2257 #undef READ_SHORT_FIELD 2248 #undef READ_SHORT_FIELD
2258 #undef WRITE_SHORT_FIELD 2249 #undef WRITE_SHORT_FIELD
2259 #undef READ_BYTE_FIELD 2250 #undef READ_BYTE_FIELD
2260 #undef WRITE_BYTE_FIELD 2251 #undef WRITE_BYTE_FIELD
2261 2252
2262 2253
2263 } } // namespace v8::internal 2254 } } // namespace v8::internal
2264 2255
2265 #endif // V8_OBJECTS_INL_H_ 2256 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698