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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10665038: Remove old code generator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 9119)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/flow_graph_compiler.h"
+#include "vm/dart_entry.h"
#include "vm/debugger.h"
#include "vm/il_printer.h"
#include "vm/intrinsifier.h"
@@ -80,6 +81,13 @@
}
+bool FlowGraphCompiler::CanOptimize() {
+ return !FLAG_report_usage_count &&
+ (FLAG_optimization_counter_threshold >= 0) &&
+ !Isolate::Current()->debugger()->IsActive();
+}
+
+
void FlowGraphCompiler::VisitBlocks() {
for (intptr_t i = 0; i < block_order().length(); ++i) {
ASSERT(frame_register_allocator()->IsSpilled());
@@ -231,13 +239,6 @@
}
-static bool CanOptimize() {
- return !FLAG_report_usage_count &&
- (FLAG_optimization_counter_threshold >= 0) &&
- !Isolate::Current()->debugger()->IsActive();
-}
-
-
// Returns 'true' if code generation for this function is complete, i.e.,
// no fall-through to regular code is needed.
bool FlowGraphCompiler::TryIntrinsify() {
@@ -295,7 +296,7 @@
cid,
checked_argument_count));
const Array& arguments_descriptor =
- CodeGenerator::ArgumentsDescriptor(argument_count, argument_names);
+ DartEntry::ArgumentsDescriptor(argument_count, argument_names);
uword label_address = 0;
switch (checked_argument_count) {
case 1:
@@ -330,7 +331,7 @@
ASSERT(frame_register_allocator()->IsSpilled());
const Array& arguments_descriptor =
- CodeGenerator::ArgumentsDescriptor(argument_count, argument_names);
+ DartEntry::ArgumentsDescriptor(argument_count, argument_names);
const intptr_t descr_offset = EmitStaticCall(function,
arguments_descriptor,
argument_count);
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/flow_graph_compiler_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698