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

Side by Side Diff: runtime/vm/intermediate_language.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h"
8 #include "vm/flow_graph_builder.h" 9 #include "vm/flow_graph_builder.h"
9 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
10 #include "vm/locations.h" 11 #include "vm/locations.h"
11 #include "vm/object.h" 12 #include "vm/object.h"
12 #include "vm/os.h" 13 #include "vm/os.h"
13 #include "vm/scopes.h" 14 #include "vm/scopes.h"
14 #include "vm/stub_code.h" 15 #include "vm/stub_code.h"
15 16
16 namespace dart { 17 namespace dart {
17 18
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1115 1116
1116 1117
1117 void ClosureCallComp::EmitNativeCode(FlowGraphCompiler* compiler) { 1118 void ClosureCallComp::EmitNativeCode(FlowGraphCompiler* compiler) {
1118 ASSERT(VerifyCallComputation(this)); 1119 ASSERT(VerifyCallComputation(this));
1119 // The arguments to the stub include the closure. The arguments 1120 // The arguments to the stub include the closure. The arguments
1120 // descriptor describes the closure's arguments (and so does not include 1121 // descriptor describes the closure's arguments (and so does not include
1121 // the closure). 1122 // the closure).
1122 Register temp_reg = locs()->temp(0).reg(); 1123 Register temp_reg = locs()->temp(0).reg();
1123 int argument_count = ArgumentCount(); 1124 int argument_count = ArgumentCount();
1124 const Array& arguments_descriptor = 1125 const Array& arguments_descriptor =
1125 CodeGenerator::ArgumentsDescriptor(argument_count - 1, 1126 DartEntry::ArgumentsDescriptor(argument_count - 1,
1126 argument_names()); 1127 argument_names());
1127 __ LoadObject(temp_reg, arguments_descriptor); 1128 __ LoadObject(temp_reg, arguments_descriptor);
1128 1129
1129 compiler->GenerateCall(token_pos(), 1130 compiler->GenerateCall(token_pos(),
1130 try_index(), 1131 try_index(),
1131 &StubCode::CallClosureFunctionLabel(), 1132 &StubCode::CallClosureFunctionLabel(),
1132 PcDescriptors::kOther); 1133 PcDescriptors::kOther);
1133 __ Drop(argument_count); 1134 __ Drop(argument_count);
1134 } 1135 }
1135 1136
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint()); 1308 const ExternalLabel label(closure_function.ToCString(), stub.EntryPoint());
1308 compiler->GenerateCall(token_pos(), try_index(), &label, 1309 compiler->GenerateCall(token_pos(), try_index(), &label,
1309 PcDescriptors::kOther); 1310 PcDescriptors::kOther);
1310 __ Drop(2); // Discard type arguments and receiver. 1311 __ Drop(2); // Discard type arguments and receiver.
1311 } 1312 }
1312 1313
1313 1314
1314 #undef __ 1315 #undef __
1315 1316
1316 } // namespace dart 1317 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698