| OLD | NEW |
| 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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 RUNTIME_FUNCTION_LIST(F) | 366 RUNTIME_FUNCTION_LIST(F) |
| 367 kNofFunctions | 367 kNofFunctions |
| 368 #undef F | 368 #undef F |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 // Runtime function descriptor. | 371 // Runtime function descriptor. |
| 372 struct Function { | 372 struct Function { |
| 373 // The JS name of the function. | 373 // The JS name of the function. |
| 374 const char* name; | 374 const char* name; |
| 375 | 375 |
| 376 // The name of the stub that calls the runtime function. | |
| 377 const char* stub_name; | |
| 378 | |
| 379 // The C++ (native) entry point. | 376 // The C++ (native) entry point. |
| 380 byte* entry; | 377 byte* entry; |
| 381 | 378 |
| 382 // The number of arguments expected; nargs < 0 if variable no. of | 379 // The number of arguments expected; nargs < 0 if variable no. of |
| 383 // arguments. | 380 // arguments. |
| 384 int nargs; | 381 int nargs; |
| 385 int stub_id; | 382 int stub_id; |
| 386 // Size of result, if complex (larger than a single pointer), | 383 // Size of result, if complex (larger than a single pointer), |
| 387 // otherwise zero. | 384 // otherwise zero. |
| 388 int result_size; | 385 int result_size; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 int position); | 422 int position); |
| 426 | 423 |
| 427 // Helper functions used stubs. | 424 // Helper functions used stubs. |
| 428 static void PerformGC(Object* result); | 425 static void PerformGC(Object* result); |
| 429 }; | 426 }; |
| 430 | 427 |
| 431 | 428 |
| 432 } } // namespace v8::internal | 429 } } // namespace v8::internal |
| 433 | 430 |
| 434 #endif // V8_RUNTIME_H_ | 431 #endif // V8_RUNTIME_H_ |
| OLD | NEW |