OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 /* Numbers */ \ | 204 /* Numbers */ \ |
205 F(NumberToRadixString, 2, 1) \ | 205 F(NumberToRadixString, 2, 1) \ |
206 F(NumberToFixed, 2, 1) \ | 206 F(NumberToFixed, 2, 1) \ |
207 F(NumberToExponential, 2, 1) \ | 207 F(NumberToExponential, 2, 1) \ |
208 F(NumberToPrecision, 2, 1) | 208 F(NumberToPrecision, 2, 1) |
209 | 209 |
210 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 210 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
211 /* Reflection */ \ | 211 /* Reflection */ \ |
212 F(FunctionSetInstanceClassName, 2, 1) \ | 212 F(FunctionSetInstanceClassName, 2, 1) \ |
213 F(FunctionSetLength, 2, 1) \ | 213 F(FunctionSetLength, 2, 1) \ |
214 F(BoundFunctionSetLength, 2, 1) \ | |
215 F(FunctionSetPrototype, 2, 1) \ | 214 F(FunctionSetPrototype, 2, 1) \ |
216 F(FunctionSetReadOnlyPrototype, 1, 1) \ | 215 F(FunctionSetReadOnlyPrototype, 1, 1) \ |
217 F(FunctionGetName, 1, 1) \ | 216 F(FunctionGetName, 1, 1) \ |
218 F(FunctionSetName, 2, 1) \ | 217 F(FunctionSetName, 2, 1) \ |
219 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ | 218 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ |
220 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \ | 219 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \ |
221 F(FunctionSetBound, 1, 1) \ | 220 F(FunctionBindArguments, 3, 1) \ |
| 221 F(BoundFunctionGetBindings, 1, 1) \ |
222 F(FunctionRemovePrototype, 1, 1) \ | 222 F(FunctionRemovePrototype, 1, 1) \ |
223 F(FunctionGetSourceCode, 1, 1) \ | 223 F(FunctionGetSourceCode, 1, 1) \ |
224 F(FunctionGetScript, 1, 1) \ | 224 F(FunctionGetScript, 1, 1) \ |
225 F(FunctionGetScriptSourcePosition, 1, 1) \ | 225 F(FunctionGetScriptSourcePosition, 1, 1) \ |
226 F(FunctionGetPositionForOffset, 2, 1) \ | 226 F(FunctionGetPositionForOffset, 2, 1) \ |
227 F(FunctionIsAPIFunction, 1, 1) \ | 227 F(FunctionIsAPIFunction, 1, 1) \ |
228 F(FunctionIsBuiltin, 1, 1) \ | 228 F(FunctionIsBuiltin, 1, 1) \ |
229 F(GetScript, 1, 1) \ | 229 F(GetScript, 1, 1) \ |
230 F(CollectStackTrace, 2, 1) \ | 230 F(CollectStackTrace, 2, 1) \ |
231 F(GetV8Version, 0, 1) \ | 231 F(GetV8Version, 0, 1) \ |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 F(Fix, 1, 1) \ | 297 F(Fix, 1, 1) \ |
298 \ | 298 \ |
299 /* Harmony weakmaps */ \ | 299 /* Harmony weakmaps */ \ |
300 F(WeakMapInitialize, 1, 1) \ | 300 F(WeakMapInitialize, 1, 1) \ |
301 F(WeakMapGet, 2, 1) \ | 301 F(WeakMapGet, 2, 1) \ |
302 F(WeakMapSet, 3, 1) \ | 302 F(WeakMapSet, 3, 1) \ |
303 \ | 303 \ |
304 /* Statements */ \ | 304 /* Statements */ \ |
305 F(NewClosure, 3, 1) \ | 305 F(NewClosure, 3, 1) \ |
306 F(NewObject, 1, 1) \ | 306 F(NewObject, 1, 1) \ |
307 F(NewObjectFromBound, 2, 1) \ | 307 F(NewObjectFromBound, 1, 1) \ |
308 F(FinalizeInstanceSize, 1, 1) \ | 308 F(FinalizeInstanceSize, 1, 1) \ |
309 F(Throw, 1, 1) \ | 309 F(Throw, 1, 1) \ |
310 F(ReThrow, 1, 1) \ | 310 F(ReThrow, 1, 1) \ |
311 F(ThrowReferenceError, 1, 1) \ | 311 F(ThrowReferenceError, 1, 1) \ |
312 F(StackGuard, 0, 1) \ | 312 F(StackGuard, 0, 1) \ |
313 F(PromoteScheduledException, 0, 1) \ | 313 F(PromoteScheduledException, 0, 1) \ |
314 \ | 314 \ |
315 /* Contexts */ \ | 315 /* Contexts */ \ |
316 F(NewFunctionContext, 1, 1) \ | 316 F(NewFunctionContext, 1, 1) \ |
317 F(PushWithContext, 2, 1) \ | 317 F(PushWithContext, 2, 1) \ |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 678 |
679 enum kDeclareGlobalsFlags { | 679 enum kDeclareGlobalsFlags { |
680 kDeclareGlobalsEvalFlag = 1 << 0, | 680 kDeclareGlobalsEvalFlag = 1 << 0, |
681 kDeclareGlobalsStrictModeFlag = 1 << 1, | 681 kDeclareGlobalsStrictModeFlag = 1 << 1, |
682 kDeclareGlobalsNativeFlag = 1 << 2 | 682 kDeclareGlobalsNativeFlag = 1 << 2 |
683 }; | 683 }; |
684 | 684 |
685 } } // namespace v8::internal | 685 } } // namespace v8::internal |
686 | 686 |
687 #endif // V8_RUNTIME_H_ | 687 #endif // V8_RUNTIME_H_ |
OLD | NEW |