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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 int stub_id; | 412 int stub_id; |
413 // Size of result, if complex (larger than a single pointer), | 413 // Size of result, if complex (larger than a single pointer), |
414 // otherwise zero. | 414 // otherwise zero. |
415 int result_size; | 415 int result_size; |
416 }; | 416 }; |
417 | 417 |
418 // Get the runtime function with the given function id. | 418 // Get the runtime function with the given function id. |
419 static Function* FunctionForId(FunctionId fid); | 419 static Function* FunctionForId(FunctionId fid); |
420 | 420 |
421 // Get the runtime function with the given name. | 421 // Get the runtime function with the given name. |
422 static Function* FunctionForName(const char* name); | 422 static Function* FunctionForName(Vector<const char> name); |
423 | 423 |
424 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); | 424 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); |
425 | 425 |
426 static bool IsUpperCaseChar(uint16_t ch); | 426 static bool IsUpperCaseChar(uint16_t ch); |
427 | 427 |
428 // TODO(1240886): The following three methods are *not* handle safe, | 428 // TODO(1240886): The following three methods are *not* handle safe, |
429 // but accept handle arguments. This seems fragile. | 429 // but accept handle arguments. This seems fragile. |
430 | 430 |
431 // Support getting the characters in a string using [] notation as | 431 // Support getting the characters in a string using [] notation as |
432 // in Firefox/SpiderMonkey, Safari and Opera. | 432 // in Firefox/SpiderMonkey, Safari and Opera. |
(...skipping 20 matching lines...) Expand all Loading... |
453 int position); | 453 int position); |
454 | 454 |
455 // Helper functions used stubs. | 455 // Helper functions used stubs. |
456 static void PerformGC(Object* result); | 456 static void PerformGC(Object* result); |
457 }; | 457 }; |
458 | 458 |
459 | 459 |
460 } } // namespace v8::internal | 460 } } // namespace v8::internal |
461 | 461 |
462 #endif // V8_RUNTIME_H_ | 462 #endif // V8_RUNTIME_H_ |
OLD | NEW |