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/runtime.h

Issue 253603003: Pass in the prototype to CreateApiFunction rather than setting it on the result. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 F(FunctionIsAPIFunction, 1, 1) \ 219 F(FunctionIsAPIFunction, 1, 1) \
220 F(FunctionIsBuiltin, 1, 1) \ 220 F(FunctionIsBuiltin, 1, 1) \
221 F(GetScript, 1, 1) \ 221 F(GetScript, 1, 1) \
222 F(CollectStackTrace, 3, 1) \ 222 F(CollectStackTrace, 3, 1) \
223 F(GetAndClearOverflowedStackTrace, 1, 1) \ 223 F(GetAndClearOverflowedStackTrace, 1, 1) \
224 F(GetV8Version, 0, 1) \ 224 F(GetV8Version, 0, 1) \
225 \ 225 \
226 F(SetCode, 2, 1) \ 226 F(SetCode, 2, 1) \
227 F(SetExpectedNumberOfProperties, 2, 1) \ 227 F(SetExpectedNumberOfProperties, 2, 1) \
228 \ 228 \
229 F(CreateApiFunction, 1, 1) \ 229 F(CreateApiFunction, 2, 1) \
230 F(IsTemplate, 1, 1) \ 230 F(IsTemplate, 1, 1) \
231 F(GetTemplateField, 2, 1) \ 231 F(GetTemplateField, 2, 1) \
232 F(DisableAccessChecks, 1, 1) \ 232 F(DisableAccessChecks, 1, 1) \
233 F(EnableAccessChecks, 1, 1) \ 233 F(EnableAccessChecks, 1, 1) \
234 F(SetAccessorProperty, 6, 1) \ 234 F(SetAccessorProperty, 6, 1) \
235 \ 235 \
236 /* Dates */ \ 236 /* Dates */ \
237 F(DateCurrentTime, 0, 1) \ 237 F(DateCurrentTime, 0, 1) \
238 F(DateParseString, 2, 1) \ 238 F(DateParseString, 2, 1) \
239 F(DateLocalTimezone, 1, 1) \ 239 F(DateLocalTimezone, 1, 1) \
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 910 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
911 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 911 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
912 912
913 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 913 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
914 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 914 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
915 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 915 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
916 916
917 } } // namespace v8::internal 917 } } // namespace v8::internal
918 918
919 #endif // V8_RUNTIME_H_ 919 #endif // V8_RUNTIME_H_
OLDNEW
« src/factory.cc ('K') | « src/factory.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698