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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); | 1106 Handle<Map> script_map = Handle<Map>(script_fun->initial_map()); |
1107 script_map->set_instance_descriptors(*script_descriptors); | 1107 script_map->set_instance_descriptors(*script_descriptors); |
1108 | 1108 |
1109 // Allocate the empty script. | 1109 // Allocate the empty script. |
1110 Handle<Script> script = Factory::NewScript(Factory::empty_string()); | 1110 Handle<Script> script = Factory::NewScript(Factory::empty_string()); |
1111 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); | 1111 script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
1112 global_context()->set_empty_script(*script); | 1112 global_context()->set_empty_script(*script); |
1113 } | 1113 } |
1114 | 1114 |
1115 #ifdef V8_HOST_ARCH_64_BIT | 1115 #ifdef V8_HOST_ARCH_64_BIT |
1116 // TODO(X64): Remove this test when code generation works and is stable. | 1116 // TODO(X64): Remove this when inline caches work. |
1117 CodeGenerator::TestCodeGenerator(); | 1117 FLAG_use_ic = false; |
1118 #endif // V8_HOST_ARCH_64_BIT | 1118 #endif // V8_HOST_ARCH_64_BIT |
1119 | 1119 |
1120 | 1120 |
1121 if (FLAG_natives_file == NULL) { | 1121 if (FLAG_natives_file == NULL) { |
1122 // Without natives file, install default natives. | 1122 // Without natives file, install default natives. |
1123 for (int i = Natives::GetDelayCount(); | 1123 for (int i = Natives::GetDelayCount(); |
1124 i < Natives::GetBuiltinsCount(); | 1124 i < Natives::GetBuiltinsCount(); |
1125 i++) { | 1125 i++) { |
1126 if (!CompileBuiltin(i)) return false; | 1126 if (!CompileBuiltin(i)) return false; |
1127 } | 1127 } |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 } | 1613 } |
1614 | 1614 |
1615 | 1615 |
1616 // Restore statics that are thread local. | 1616 // Restore statics that are thread local. |
1617 char* Genesis::RestoreState(char* from) { | 1617 char* Genesis::RestoreState(char* from) { |
1618 current_ = *reinterpret_cast<Genesis**>(from); | 1618 current_ = *reinterpret_cast<Genesis**>(from); |
1619 return from + sizeof(current_); | 1619 return from + sizeof(current_); |
1620 } | 1620 } |
1621 | 1621 |
1622 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
OLD | NEW |