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

Unified Diff: dart/runtime/vm/intermediate_language_arm.cc

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 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 | « dart/runtime/vm/intermediate_language.cc ('k') | dart/runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/runtime/vm/intermediate_language_arm.cc
===================================================================
--- dart/runtime/vm/intermediate_language_arm.cc (revision 31530)
+++ dart/runtime/vm/intermediate_language_arm.cc (working copy)
@@ -99,13 +99,6 @@
#endif
__ LeaveDartFrame();
__ Ret();
-
- // No need to generate NOP instructions so that the debugger can patch the
- // return pattern (3 instructions) with a call to the debug stub (also 3
- // instructions).
- compiler->AddCurrentDescriptor(PcDescriptors::kReturn,
- Isolate::kNoDeoptId,
- token_pos());
}
@@ -745,6 +738,26 @@
}
+LocationSummary* StringToCharCodeInstr::MakeLocationSummary(bool opt) const {
+ const intptr_t kNumInputs = 1;
+ return LocationSummary::Make(kNumInputs,
+ Location::RequiresRegister(),
+ LocationSummary::kNoCall);
+}
+
+
+void StringToCharCodeInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ ASSERT(cid_ == kOneByteStringCid);
+ Register str = locs()->in(0).reg();
+ Register result = locs()->out().reg();
+ __ ldr(result, FieldAddress(str, String::length_offset()));
+ __ cmp(result, ShifterOperand(Smi::RawValue(1)));
+ __ LoadImmediate(result, Smi::RawValue(-1), NE);
+ __ ldrb(result, FieldAddress(str, OneByteString::data_offset()), EQ);
+ __ SmiTag(result);
+}
+
+
LocationSummary* StringInterpolateInstr::MakeLocationSummary(bool opt) const {
const intptr_t kNumInputs = 1;
const intptr_t kNumTemps = 0;
« no previous file with comments | « dart/runtime/vm/intermediate_language.cc ('k') | dart/runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698