Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Side by Side Diff: src/bootstrapper.cc

Issue 123014: Add x64 implementation test support for assembler and code generator. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/x64/codegen-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
1117 MacroAssembler::ConstructAndTestJSFunction();
1118 CodeGenerator::TestCodeGenerator();
1116 // TODO(X64): Reenable remaining initialization when code generation works. 1119 // TODO(X64): Reenable remaining initialization when code generation works.
1117 return true; 1120 return true;
1118 #endif // V8_HOST_ARCH_64_BIT 1121 #endif // V8_HOST_ARCH_64_BIT
1119 1122
1120 1123
1121 if (FLAG_natives_file == NULL) { 1124 if (FLAG_natives_file == NULL) {
1122 // Without natives file, install default natives. 1125 // Without natives file, install default natives.
1123 for (int i = Natives::GetDelayCount(); 1126 for (int i = Natives::GetDelayCount();
1124 i < Natives::GetBuiltinsCount(); 1127 i < Natives::GetBuiltinsCount();
1125 i++) { 1128 i++) {
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 } 1616 }
1614 1617
1615 1618
1616 // Restore statics that are thread local. 1619 // Restore statics that are thread local.
1617 char* Genesis::RestoreState(char* from) { 1620 char* Genesis::RestoreState(char* from) {
1618 current_ = *reinterpret_cast<Genesis**>(from); 1621 current_ = *reinterpret_cast<Genesis**>(from);
1619 return from + sizeof(current_); 1622 return from + sizeof(current_);
1620 } 1623 }
1621 1624
1622 } } // namespace v8::internal 1625 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698