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

Side by Side Diff: runtime/vm/intermediate_language_arm.cc

Issue 53583003: Implement latest spec changes regarding malformed types (see issue 14006): (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_ARM. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM.
6 #if defined(TARGET_ARCH_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ASSERT(locs->always_calls()); 241 ASSERT(locs->always_calls());
242 Label done; 242 Label done;
243 __ CompareObject(reg, Bool::True()); 243 __ CompareObject(reg, Bool::True());
244 __ b(&done, EQ); 244 __ b(&done, EQ);
245 __ CompareObject(reg, Bool::False()); 245 __ CompareObject(reg, Bool::False());
246 __ b(&done, EQ); 246 __ b(&done, EQ);
247 247
248 __ Push(reg); // Push the source object. 248 __ Push(reg); // Push the source object.
249 compiler->GenerateRuntimeCall(token_pos, 249 compiler->GenerateRuntimeCall(token_pos,
250 deopt_id, 250 deopt_id,
251 kConditionTypeErrorRuntimeEntry, 251 kNonBoolTypeErrorRuntimeEntry,
252 1, 252 1,
253 locs); 253 locs);
254 // We should never return here. 254 // We should never return here.
255 __ bkpt(0); 255 __ bkpt(0);
256 __ Bind(&done); 256 __ Bind(&done);
257 } 257 }
258 258
259 259
260 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 260 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
261 Register obj = locs()->in(0).reg(); 261 Register obj = locs()->in(0).reg();
(...skipping 4423 matching lines...) Expand 10 before | Expand all | Expand 10 after
4685 compiler->GenerateCall(token_pos(), 4685 compiler->GenerateCall(token_pos(),
4686 &label, 4686 &label,
4687 PcDescriptors::kOther, 4687 PcDescriptors::kOther,
4688 locs()); 4688 locs());
4689 __ Drop(2); // Discard type arguments and receiver. 4689 __ Drop(2); // Discard type arguments and receiver.
4690 } 4690 }
4691 4691
4692 } // namespace dart 4692 } // namespace dart
4693 4693
4694 #endif // defined TARGET_ARCH_ARM 4694 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698