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 these tests when code generation works and is stable. | 1116 // TODO(X64): Remove this test when code generation works and is stable. |
1117 MacroAssembler::ConstructAndTestJSFunction(); | |
1118 CodeGenerator::TestCodeGenerator(); | 1117 CodeGenerator::TestCodeGenerator(); |
1119 // TODO(X64): Reenable remaining initialization when code generation works. | |
1120 return true; | |
1121 #endif // V8_HOST_ARCH_64_BIT | 1118 #endif // V8_HOST_ARCH_64_BIT |
1122 | 1119 |
1123 | 1120 |
1124 if (FLAG_natives_file == NULL) { | 1121 if (FLAG_natives_file == NULL) { |
1125 // Without natives file, install default natives. | 1122 // Without natives file, install default natives. |
1126 for (int i = Natives::GetDelayCount(); | 1123 for (int i = Natives::GetDelayCount(); |
1127 i < Natives::GetBuiltinsCount(); | 1124 i < Natives::GetBuiltinsCount(); |
1128 i++) { | 1125 i++) { |
1129 if (!CompileBuiltin(i)) return false; | 1126 if (!CompileBuiltin(i)) return false; |
1130 } | 1127 } |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1616 } | 1613 } |
1617 | 1614 |
1618 | 1615 |
1619 // Restore statics that are thread local. | 1616 // Restore statics that are thread local. |
1620 char* Genesis::RestoreState(char* from) { | 1617 char* Genesis::RestoreState(char* from) { |
1621 current_ = *reinterpret_cast<Genesis**>(from); | 1618 current_ = *reinterpret_cast<Genesis**>(from); |
1622 return from + sizeof(current_); | 1619 return from + sizeof(current_); |
1623 } | 1620 } |
1624 | 1621 |
1625 } } // namespace v8::internal | 1622 } } // namespace v8::internal |
OLD | NEW |