| 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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1347 static Handle<JSObject> ResolveCustomCallGeneratorHolder( | 1347 static Handle<JSObject> ResolveCustomCallGeneratorHolder( |
| 1348 Handle<Context> global_context, | 1348 Handle<Context> global_context, |
| 1349 const char* holder_expr) { | 1349 const char* holder_expr) { |
| 1350 Handle<GlobalObject> global(global_context->global()); | 1350 Handle<GlobalObject> global(global_context->global()); |
| 1351 const char* period_pos = strchr(holder_expr, '.'); | 1351 const char* period_pos = strchr(holder_expr, '.'); |
| 1352 if (period_pos == NULL) { | 1352 if (period_pos == NULL) { |
| 1353 return Handle<JSObject>::cast( | 1353 return Handle<JSObject>::cast( |
| 1354 GetProperty(global, Factory::LookupAsciiSymbol(holder_expr))); | 1354 GetProperty(global, Factory::LookupAsciiSymbol(holder_expr))); |
| 1355 } | 1355 } |
| 1356 ASSERT_EQ(".prototype", period_pos); | 1356 ASSERT_EQ(".prototype", period_pos); |
| 1357 Vector<const char> property(holder_expr, period_pos - holder_expr); | 1357 Vector<const char> property(holder_expr, |
| 1358 static_cast<int>(period_pos - holder_expr)); |
| 1358 Handle<JSFunction> function = Handle<JSFunction>::cast( | 1359 Handle<JSFunction> function = Handle<JSFunction>::cast( |
| 1359 GetProperty(global, Factory::LookupSymbol(property))); | 1360 GetProperty(global, Factory::LookupSymbol(property))); |
| 1360 return Handle<JSObject>(JSObject::cast(function->prototype())); | 1361 return Handle<JSObject>(JSObject::cast(function->prototype())); |
| 1361 } | 1362 } |
| 1362 | 1363 |
| 1363 | 1364 |
| 1364 static void InstallCustomCallGenerator(Handle<JSObject> holder, | 1365 static void InstallCustomCallGenerator(Handle<JSObject> holder, |
| 1365 const char* function_name, | 1366 const char* function_name, |
| 1366 int id) { | 1367 int id) { |
| 1367 Handle<String> name = Factory::LookupAsciiSymbol(function_name); | 1368 Handle<String> name = Factory::LookupAsciiSymbol(function_name); |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1848 } | 1849 } |
| 1849 | 1850 |
| 1850 | 1851 |
| 1851 // Restore statics that are thread local. | 1852 // Restore statics that are thread local. |
| 1852 char* BootstrapperActive::RestoreState(char* from) { | 1853 char* BootstrapperActive::RestoreState(char* from) { |
| 1853 nesting_ = *reinterpret_cast<int*>(from); | 1854 nesting_ = *reinterpret_cast<int*>(from); |
| 1854 return from + sizeof(nesting_); | 1855 return from + sizeof(nesting_); |
| 1855 } | 1856 } |
| 1856 | 1857 |
| 1857 } } // namespace v8::internal | 1858 } } // namespace v8::internal |
| OLD | NEW |