| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 /* Numbers */ \ | 202 /* Numbers */ \ |
| 203 F(NumberToRadixString, 2, 1) \ | 203 F(NumberToRadixString, 2, 1) \ |
| 204 F(NumberToFixed, 2, 1) \ | 204 F(NumberToFixed, 2, 1) \ |
| 205 F(NumberToExponential, 2, 1) \ | 205 F(NumberToExponential, 2, 1) \ |
| 206 F(NumberToPrecision, 2, 1) | 206 F(NumberToPrecision, 2, 1) |
| 207 | 207 |
| 208 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ | 208 #define RUNTIME_FUNCTION_LIST_ALWAYS_2(F) \ |
| 209 /* Reflection */ \ | 209 /* Reflection */ \ |
| 210 F(FunctionSetInstanceClassName, 2, 1) \ | 210 F(FunctionSetInstanceClassName, 2, 1) \ |
| 211 F(FunctionSetLength, 2, 1) \ | 211 F(FunctionSetLength, 2, 1) \ |
| 212 F(BoundFunctionSetLength, 2, 1) \ |
| 212 F(FunctionSetPrototype, 2, 1) \ | 213 F(FunctionSetPrototype, 2, 1) \ |
| 213 F(FunctionSetReadOnlyPrototype, 1, 1) \ | 214 F(FunctionSetReadOnlyPrototype, 1, 1) \ |
| 214 F(FunctionGetName, 1, 1) \ | 215 F(FunctionGetName, 1, 1) \ |
| 215 F(FunctionSetName, 2, 1) \ | 216 F(FunctionSetName, 2, 1) \ |
| 217 F(FunctionNameShouldPrintAsAnonymous, 1, 1) \ |
| 218 F(FunctionMarkNameShouldPrintAsAnonymous, 1, 1) \ |
| 216 F(FunctionSetBound, 1, 1) \ | 219 F(FunctionSetBound, 1, 1) \ |
| 217 F(FunctionRemovePrototype, 1, 1) \ | 220 F(FunctionRemovePrototype, 1, 1) \ |
| 218 F(FunctionGetSourceCode, 1, 1) \ | 221 F(FunctionGetSourceCode, 1, 1) \ |
| 219 F(FunctionGetScript, 1, 1) \ | 222 F(FunctionGetScript, 1, 1) \ |
| 220 F(FunctionGetScriptSourcePosition, 1, 1) \ | 223 F(FunctionGetScriptSourcePosition, 1, 1) \ |
| 221 F(FunctionGetPositionForOffset, 2, 1) \ | 224 F(FunctionGetPositionForOffset, 2, 1) \ |
| 222 F(FunctionIsAPIFunction, 1, 1) \ | 225 F(FunctionIsAPIFunction, 1, 1) \ |
| 223 F(FunctionIsBuiltin, 1, 1) \ | 226 F(FunctionIsBuiltin, 1, 1) \ |
| 224 F(GetScript, 1, 1) \ | 227 F(GetScript, 1, 1) \ |
| 225 F(CollectStackTrace, 2, 1) \ | 228 F(CollectStackTrace, 2, 1) \ |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 F(CreateObjectLiteralShallow, 4, 1) \ | 283 F(CreateObjectLiteralShallow, 4, 1) \ |
| 281 F(CreateArrayLiteral, 3, 1) \ | 284 F(CreateArrayLiteral, 3, 1) \ |
| 282 F(CreateArrayLiteralShallow, 3, 1) \ | 285 F(CreateArrayLiteralShallow, 3, 1) \ |
| 283 \ | 286 \ |
| 284 /* Harmony proxies */ \ | 287 /* Harmony proxies */ \ |
| 285 F(CreateJSProxy, 2, 1) \ | 288 F(CreateJSProxy, 2, 1) \ |
| 286 F(IsJSProxy, 1, 1) \ | 289 F(IsJSProxy, 1, 1) \ |
| 287 F(GetHandler, 1, 1) \ | 290 F(GetHandler, 1, 1) \ |
| 288 F(Fix, 1, 1) \ | 291 F(Fix, 1, 1) \ |
| 289 \ | 292 \ |
| 293 /* Harmony weakmaps */ \ |
| 294 F(WeakMapInitialize, 1, 1) \ |
| 295 F(WeakMapGet, 2, 1) \ |
| 296 F(WeakMapSet, 3, 1) \ |
| 297 \ |
| 290 /* Statements */ \ | 298 /* Statements */ \ |
| 291 F(NewClosure, 3, 1) \ | 299 F(NewClosure, 3, 1) \ |
| 292 F(NewObject, 1, 1) \ | 300 F(NewObject, 1, 1) \ |
| 293 F(NewObjectFromBound, 2, 1) \ | 301 F(NewObjectFromBound, 2, 1) \ |
| 294 F(FinalizeInstanceSize, 1, 1) \ | 302 F(FinalizeInstanceSize, 1, 1) \ |
| 295 F(Throw, 1, 1) \ | 303 F(Throw, 1, 1) \ |
| 296 F(ReThrow, 1, 1) \ | 304 F(ReThrow, 1, 1) \ |
| 297 F(ThrowReferenceError, 1, 1) \ | 305 F(ThrowReferenceError, 1, 1) \ |
| 298 F(StackGuard, 0, 1) \ | 306 F(StackGuard, 0, 1) \ |
| 299 F(PromoteScheduledException, 0, 1) \ | 307 F(PromoteScheduledException, 0, 1) \ |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 Handle<Script> script, | 659 Handle<Script> script, |
| 652 int position); | 660 int position); |
| 653 | 661 |
| 654 // Helper functions used stubs. | 662 // Helper functions used stubs. |
| 655 static void PerformGC(Object* result); | 663 static void PerformGC(Object* result); |
| 656 }; | 664 }; |
| 657 | 665 |
| 658 } } // namespace v8::internal | 666 } } // namespace v8::internal |
| 659 | 667 |
| 660 #endif // V8_RUNTIME_H_ | 668 #endif // V8_RUNTIME_H_ |
| OLD | NEW |