| 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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1390 HandleScope scope; | 1390 HandleScope scope; |
| 1391 for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) { | 1391 for (int i = 0; i < Builtins::NumberOfJavaScriptBuiltins(); i++) { |
| 1392 Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i); | 1392 Builtins::JavaScript id = static_cast<Builtins::JavaScript>(i); |
| 1393 Handle<String> name = Factory::LookupAsciiSymbol(Builtins::GetName(id)); | 1393 Handle<String> name = Factory::LookupAsciiSymbol(Builtins::GetName(id)); |
| 1394 Handle<JSFunction> function | 1394 Handle<JSFunction> function |
| 1395 = Handle<JSFunction>(JSFunction::cast(builtins->GetProperty(*name))); | 1395 = Handle<JSFunction>(JSFunction::cast(builtins->GetProperty(*name))); |
| 1396 builtins->set_javascript_builtin(id, *function); | 1396 builtins->set_javascript_builtin(id, *function); |
| 1397 Handle<SharedFunctionInfo> shared | 1397 Handle<SharedFunctionInfo> shared |
| 1398 = Handle<SharedFunctionInfo>(function->shared()); | 1398 = Handle<SharedFunctionInfo>(function->shared()); |
| 1399 if (!EnsureCompiled(shared, CLEAR_EXCEPTION)) return false; | 1399 if (!EnsureCompiled(shared, CLEAR_EXCEPTION)) return false; |
| 1400 builtins->set_javascript_builtin_code(id, shared->code()); |
| 1400 } | 1401 } |
| 1401 return true; | 1402 return true; |
| 1402 } | 1403 } |
| 1403 | 1404 |
| 1404 | 1405 |
| 1405 bool Genesis::ConfigureGlobalObjects( | 1406 bool Genesis::ConfigureGlobalObjects( |
| 1406 v8::Handle<v8::ObjectTemplate> global_proxy_template) { | 1407 v8::Handle<v8::ObjectTemplate> global_proxy_template) { |
| 1407 Handle<JSObject> global_proxy( | 1408 Handle<JSObject> global_proxy( |
| 1408 JSObject::cast(global_context()->global_proxy())); | 1409 JSObject::cast(global_context()->global_proxy())); |
| 1409 Handle<JSObject> inner_global(JSObject::cast(global_context()->global())); | 1410 Handle<JSObject> inner_global(JSObject::cast(global_context()->global())); |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1659 } | 1660 } |
| 1660 | 1661 |
| 1661 | 1662 |
| 1662 // Restore statics that are thread local. | 1663 // Restore statics that are thread local. |
| 1663 char* BootstrapperActive::RestoreState(char* from) { | 1664 char* BootstrapperActive::RestoreState(char* from) { |
| 1664 nesting_ = *reinterpret_cast<int*>(from); | 1665 nesting_ = *reinterpret_cast<int*>(from); |
| 1665 return from + sizeof(nesting_); | 1666 return from + sizeof(nesting_); |
| 1666 } | 1667 } |
| 1667 | 1668 |
| 1668 } } // namespace v8::internal | 1669 } } // namespace v8::internal |
| OLD | NEW |