| 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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 int nargs; | 325 int nargs; |
| 326 int stub_id; | 326 int stub_id; |
| 327 }; | 327 }; |
| 328 | 328 |
| 329 // Get the runtime function with the given function id. | 329 // Get the runtime function with the given function id. |
| 330 static Function* FunctionForId(FunctionId fid); | 330 static Function* FunctionForId(FunctionId fid); |
| 331 | 331 |
| 332 // Get the runtime function with the given name. | 332 // Get the runtime function with the given name. |
| 333 static Function* FunctionForName(const char* name); | 333 static Function* FunctionForName(const char* name); |
| 334 | 334 |
| 335 static int StringMatchKmp(Handle<String> sub, Handle<String> pat, int index); | 335 static int StringMatch(Handle<String> sub, Handle<String> pat, int index); |
| 336 | 336 |
| 337 // TODO(1240886): The following three methods are *not* handle safe, | 337 // TODO(1240886): The following three methods are *not* handle safe, |
| 338 // but accept handle arguments. This seems fragile. | 338 // but accept handle arguments. This seems fragile. |
| 339 | 339 |
| 340 // Support getting the characters in a string using [] notation as | 340 // Support getting the characters in a string using [] notation as |
| 341 // in Firefox/SpiderMonkey, Safari and Opera. | 341 // in Firefox/SpiderMonkey, Safari and Opera. |
| 342 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); | 342 static Object* GetElementOrCharAt(Handle<Object> object, uint32_t index); |
| 343 | 343 |
| 344 static Object* SetObjectProperty(Handle<Object> object, | 344 static Object* SetObjectProperty(Handle<Object> object, |
| 345 Handle<Object> key, | 345 Handle<Object> key, |
| 346 Handle<Object> value, | 346 Handle<Object> value, |
| 347 PropertyAttributes attr); | 347 PropertyAttributes attr); |
| 348 | 348 |
| 349 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); | 349 static Object* GetObjectProperty(Handle<Object> object, Handle<Object> key); |
| 350 | 350 |
| 351 // Helper functions used stubs. | 351 // Helper functions used stubs. |
| 352 static void PerformGC(Object* result); | 352 static void PerformGC(Object* result); |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 | 355 |
| 356 } } // namespace v8::internal | 356 } } // namespace v8::internal |
| 357 | 357 |
| 358 #endif // V8_RUNTIME_H_ | 358 #endif // V8_RUNTIME_H_ |
| OLD | NEW |