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

Unified Diff: vm/ic_data_test.cc

Issue 8382009: Fix broken build on non-ia32 architectures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/ic_data_test.cc
===================================================================
--- vm/ic_data_test.cc (revision 636)
+++ vm/ic_data_test.cc (working copy)
@@ -9,19 +9,14 @@
namespace dart {
static RawFunction* GetDummyTarget(const char* name) {
- Assembler assembler;
- assembler.ret();
- const Code& code =
- Code::Handle(Code::FinalizeCode(name, &assembler));
- const String& function_name =
- String::ZoneHandle(String::NewSymbol(name));
- const Function& function = Function::Handle(Function::New(
- function_name, RawFunction::kFunction, true, false, 0));
- function.SetCode(code);
- CodeIndexTable* code_index_table = Isolate::Current()->code_index_table();
- ASSERT(code_index_table != NULL);
- code_index_table->AddFunction(function);
- return function.raw();
+ const String& function_name = String::Handle(String::NewSymbol(name));
+ const bool is_static = false;
+ const bool is_const = false;
+ return Function::New(function_name,
+ RawFunction::kFunction,
+ is_static,
+ is_const,
+ 0);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698