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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); | 394 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); |
395 | 395 |
396 static bool IsUpperCaseChar(uint16_t ch); | 396 static bool IsUpperCaseChar(uint16_t ch); |
397 | 397 |
398 // TODO(1240886): The following three methods are *not* handle safe, | 398 // TODO(1240886): The following three methods are *not* handle safe, |
399 // but accept handle arguments. This seems fragile. | 399 // but accept handle arguments. This seems fragile. |
400 | 400 |
401 // Support getting the characters in a string using [] notation as | 401 // Support getting the characters in a string using [] notation as |
402 // in Firefox/SpiderMonkey, Safari and Opera. | 402 // in Firefox/SpiderMonkey, Safari and Opera. |
403 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); | 403 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); |
| 404 static Object* GetElement(Handle<Object> object, uint32_t index); |
404 | 405 |
405 static Object* SetObjectProperty(Handle<Object> object, | 406 static Object* SetObjectProperty(Handle<Object> object, |
406 Handle<Object> key, | 407 Handle<Object> key, |
407 Handle<Object> value, | 408 Handle<Object> value, |
408 PropertyAttributes attr); | 409 PropertyAttributes attr); |
409 | 410 |
410 static Object* ForceSetObjectProperty(Handle<JSObject> object, | 411 static Object* ForceSetObjectProperty(Handle<JSObject> object, |
411 Handle<Object> key, | 412 Handle<Object> key, |
412 Handle<Object> value, | 413 Handle<Object> value, |
413 PropertyAttributes attr); | 414 PropertyAttributes attr); |
414 | 415 |
415 static Object* ForceDeleteObjectProperty(Handle<JSObject> object, | 416 static Object* ForceDeleteObjectProperty(Handle<JSObject> object, |
416 Handle<Object> key); | 417 Handle<Object> key); |
417 | 418 |
418 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); | 419 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); |
419 | 420 |
420 // This function is used in FunctionNameUsing* tests. | 421 // This function is used in FunctionNameUsing* tests. |
421 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, | 422 static Object* FindSharedFunctionInfoInScript(Handle<Script> script, |
422 int position); | 423 int position); |
423 | 424 |
424 // Helper functions used stubs. | 425 // Helper functions used stubs. |
425 static void PerformGC(Object* result); | 426 static void PerformGC(Object* result); |
426 }; | 427 }; |
427 | 428 |
428 | 429 |
429 } } // namespace v8::internal | 430 } } // namespace v8::internal |
430 | 431 |
431 #endif // V8_RUNTIME_H_ | 432 #endif // V8_RUNTIME_H_ |
OLD | NEW |