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

Unified Diff: runtime/vm/code_descriptors_test.cc

Issue 10375017: Remove old x64 code generator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | runtime/vm/code_generator_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors_test.cc
===================================================================
--- runtime/vm/code_descriptors_test.cc (revision 7349)
+++ runtime/vm/code_descriptors_test.cc (working copy)
@@ -9,9 +9,10 @@
#include "vm/ast.h"
#include "vm/assembler.h"
#include "vm/code_descriptors.h"
-#include "vm/code_generator.h"
+#include "vm/compiler.h"
#include "vm/dart_entry.h"
#include "vm/native_entry.h"
+#include "vm/parser.h"
#include "vm/unit_test.h"
namespace dart {
@@ -51,8 +52,6 @@
LongJump jump;
isolate->set_long_jump_base(&jump);
if (setjmp(*jump.Set()) == 0) {
- CodeGenerator code_gen(&assembler, parsed_function);
-
// Build some stack map entries.
StackmapBuilder* builder = new StackmapBuilder();
EXPECT(builder != NULL);
@@ -75,13 +74,14 @@
}
builder->SetSlotAsObject(10);
builder->AddEntry(3); // Add a stack map entry at pc offset 3.
- code_gen.GenerateCode();
- const char* function_fullname = function.ToFullyQualifiedCString();
- const Code& code =
- Code::Handle(Code::FinalizeCode(function_fullname, &assembler));
+
+ const Error& error =
+ Error::Handle(Compiler::CompileParsedFunction(parsed_function));
+ EXPECT(error.IsNull());
+ const Code& code = Code::Handle(function.CurrentCode());
+
const Array& stack_maps = Array::Handle(builder->FinalizeStackmaps(code));
code.set_stackmaps(stack_maps);
- function.SetCode(code);
const Array& stack_map_list = Array::Handle(code.stackmaps());
EXPECT(!stack_map_list.IsNull());
Stackmap& stack_map = Stackmap::Handle();
« no previous file with comments | « no previous file | runtime/vm/code_generator_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698