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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 }; | 348 }; |
349 | 349 |
350 // Get the runtime function with the given function id. | 350 // Get the runtime function with the given function id. |
351 static Function* FunctionForId(FunctionId fid); | 351 static Function* FunctionForId(FunctionId fid); |
352 | 352 |
353 // Get the runtime function with the given name. | 353 // Get the runtime function with the given name. |
354 static Function* FunctionForName(const char* name); | 354 static Function* FunctionForName(const char* name); |
355 | 355 |
356 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); | 356 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); |
357 | 357 |
| 358 static bool IsUpperCaseChar(uint16_t ch); |
| 359 |
358 // TODO(1240886): The following three methods are *not* handle safe, | 360 // TODO(1240886): The following three methods are *not* handle safe, |
359 // but accept handle arguments. This seems fragile. | 361 // but accept handle arguments. This seems fragile. |
360 | 362 |
361 // Support getting the characters in a string using [] notation as | 363 // Support getting the characters in a string using [] notation as |
362 // in Firefox/SpiderMonkey, Safari and Opera. | 364 // in Firefox/SpiderMonkey, Safari and Opera. |
363 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); | 365 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); |
364 | 366 |
365 static Object* SetObjectProperty(Handle<Object> object, | 367 static Object* SetObjectProperty(Handle<Object> object, |
366 Handle<Object> key, | 368 Handle<Object> key, |
367 Handle<Object> value, | 369 Handle<Object> value, |
368 PropertyAttributes attr); | 370 PropertyAttributes attr); |
369 | 371 |
370 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); | 372 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); |
371 | 373 |
| 374 // This function is used in FunctionNameUsing* tests. |
| 375 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, |
| 376 int position); |
| 377 |
372 // Helper functions used stubs. | 378 // Helper functions used stubs. |
373 static void PerformGC(Object* result); | 379 static void PerformGC(Object* result); |
374 }; | 380 }; |
375 | 381 |
376 | 382 |
377 } } // namespace v8::internal | 383 } } // namespace v8::internal |
378 | 384 |
379 #endif // V8_RUNTIME_H_ | 385 #endif // V8_RUNTIME_H_ |
OLD | NEW |