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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 | 1100 |
1101 Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); | 1101 Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); |
1102 script_map->set_instance_descriptors(*script_descriptors); | 1102 script_map->set_instance_descriptors(*script_descriptors); |
1103 | 1103 |
1104 // Allocate the empty script. | 1104 // Allocate the empty script. |
1105 Handle<Script> script = Factory::NewScript(Factory::empty_string()); | 1105 Handle<Script> script = Factory::NewScript(Factory::empty_string()); |
1106 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); | 1106 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
1107 global_context()->set_empty_script(*script); | 1107 global_context()->set_empty_script(*script); |
1108 } | 1108 } |
1109 | 1109 |
1110 #ifdef V8_HOST_ARCH_64_BIT | |
1111 // TODO(X64): Remove this when inline caches work. | |
1112 FLAG_use_ic = false; | |
1113 #endif // V8_HOST_ARCH_64_BIT | |
1114 | |
1115 | |
1116 if (FLAG_natives_file == NULL) { | 1110 if (FLAG_natives_file == NULL) { |
1117 // Without natives file, install default natives. | 1111 // Without natives file, install default natives. |
1118 for (int i = Natives::GetDelayCount(); | 1112 for (int i = Natives::GetDelayCount(); |
1119 i < Natives::GetBuiltinsCount(); | 1113 i < Natives::GetBuiltinsCount(); |
1120 i++) { | 1114 i++) { |
1121 if (!CompileBuiltin(i)) return false; | 1115 if (!CompileBuiltin(i)) return false; |
1122 } | 1116 } |
1123 | 1117 |
1124 // Setup natives with lazy loading. | 1118 // Setup natives with lazy loading. |
1125 SetupLazy(Handle<JSFunction>(global_context()->date_function()), | 1119 SetupLazy(Handle<JSFunction>(global_context()->date_function()), |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1608 } | 1602 } |
1609 | 1603 |
1610 | 1604 |
1611 // Restore statics that are thread local. | 1605 // Restore statics that are thread local. |
1612 char* Genesis::RestoreState(char* from) { | 1606 char* Genesis::RestoreState(char* from) { |
1613 current_ = *reinterpret_cast<Genesis**>(from); | 1607 current_ = *reinterpret_cast<Genesis**>(from); |
1614 return from + sizeof(current_); | 1608 return from + sizeof(current_); |
1615 } | 1609 } |
1616 | 1610 |
1617 } } // namespace v8::internal | 1611 } } // namespace v8::internal |
OLD | NEW |