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

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

Issue 11631002: Extend API to allow setting length property for function templates. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Support length as argument to FunctionTempalte::New Created 8 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/objects.h ('k') | test/cctest/test-api.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 4072 matching lines...) Expand 10 before | Expand all | Expand 10 after
4083 kInstanceClassNameOffset) 4083 kInstanceClassNameOffset)
4084 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) 4084 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset)
4085 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) 4085 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset)
4086 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) 4086 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset)
4087 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) 4087 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset)
4088 ACCESSORS(SharedFunctionInfo, this_property_assignments, Object, 4088 ACCESSORS(SharedFunctionInfo, this_property_assignments, Object,
4089 kThisPropertyAssignmentsOffset) 4089 kThisPropertyAssignmentsOffset)
4090 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) 4090 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset)
4091 4091
4092 4092
4093 SMI_ACCESSORS(FunctionTemplateInfo, length, kLengthOffset)
4093 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype, 4094 BOOL_ACCESSORS(FunctionTemplateInfo, flag, hidden_prototype,
4094 kHiddenPrototypeBit) 4095 kHiddenPrototypeBit)
4095 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit) 4096 BOOL_ACCESSORS(FunctionTemplateInfo, flag, undetectable, kUndetectableBit)
4096 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check, 4097 BOOL_ACCESSORS(FunctionTemplateInfo, flag, needs_access_check,
4097 kNeedsAccessCheckBit) 4098 kNeedsAccessCheckBit)
4098 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype, 4099 BOOL_ACCESSORS(FunctionTemplateInfo, flag, read_only_prototype,
4099 kReadOnlyPrototypeBit) 4100 kReadOnlyPrototypeBit)
4100 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression, 4101 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_expression,
4101 kIsExpressionBit) 4102 kIsExpressionBit)
4102 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel, 4103 BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_toplevel,
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
5766 #undef WRITE_UINT32_FIELD 5767 #undef WRITE_UINT32_FIELD
5767 #undef READ_SHORT_FIELD 5768 #undef READ_SHORT_FIELD
5768 #undef WRITE_SHORT_FIELD 5769 #undef WRITE_SHORT_FIELD
5769 #undef READ_BYTE_FIELD 5770 #undef READ_BYTE_FIELD
5770 #undef WRITE_BYTE_FIELD 5771 #undef WRITE_BYTE_FIELD
5771 5772
5772 5773
5773 } } // namespace v8::internal 5774 } } // namespace v8::internal
5774 5775
5775 #endif // V8_OBJECTS_INL_H_ 5776 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698