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

Unified Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 253623003: Enables all startup code for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_arm64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_arm64.cc (revision 35439)
+++ runtime/vm/flow_graph_compiler_arm64.cc (working copy)
@@ -356,7 +356,9 @@
const ExternalLabel* label,
PcDescriptors::Kind kind,
LocationSummary* locs) {
- UNIMPLEMENTED();
+ __ BranchLinkPatchable(label);
+ AddCurrentDescriptor(kind, Isolate::kNoDeoptId, token_pos);
+ RecordSafepoint(locs);
}
@@ -437,7 +439,13 @@
intptr_t deopt_id,
intptr_t token_pos,
LocationSummary* locs) {
- UNIMPLEMENTED();
+ __ LoadObject(R5, ic_data, PP);
+ GenerateDartCall(deopt_id,
+ token_pos,
+ target_label,
+ PcDescriptors::kIcCall,
+ locs);
+ __ Drop(argument_count);
}
@@ -515,7 +523,27 @@
Register right,
bool needs_number_check,
intptr_t token_pos) {
- UNIMPLEMENTED();
+ if (needs_number_check) {
+ __ Push(left);
+ __ Push(right);
+ if (is_optimizing()) {
+ __ BranchLinkPatchable(
+ &StubCode::OptimizedIdenticalWithNumberCheckLabel());
+ } else {
+ __ BranchLinkPatchable(
+ &StubCode::UnoptimizedIdenticalWithNumberCheckLabel());
+ }
+ if (token_pos != Scanner::kNoSourcePos) {
+ AddCurrentDescriptor(PcDescriptors::kRuntimeCall,
+ Isolate::kNoDeoptId,
+ token_pos);
+ }
+ // Stub returns result in flags (result of a cmpl, we need ZF computed).
+ __ Pop(right);
+ __ Pop(left);
+ } else {
+ __ CompareRegisters(left, right);
+ }
}
« no previous file with comments | « runtime/vm/disassembler_arm64.cc ('k') | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698