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

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

Issue 12773008: Support checked mode for VM tests on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 NULL)) { 222 NULL)) {
223 __ j(ZERO, is_instance_lbl); 223 __ j(ZERO, is_instance_lbl);
224 } else { 224 } else {
225 __ j(ZERO, is_not_instance_lbl); 225 __ j(ZERO, is_not_instance_lbl);
226 } 226 }
227 // Compare if the classes are equal. 227 // Compare if the classes are equal.
228 const Register kClassIdReg = ECX; 228 const Register kClassIdReg = ECX;
229 __ LoadClassId(kClassIdReg, kInstanceReg); 229 __ LoadClassId(kClassIdReg, kInstanceReg);
230 __ cmpl(kClassIdReg, Immediate(type_class.id())); 230 __ cmpl(kClassIdReg, Immediate(type_class.id()));
231 __ j(EQUAL, is_instance_lbl); 231 __ j(EQUAL, is_instance_lbl);
232 // See ClassFinalizer::ResolveSuperTypeAndInterfaces for list of restricted
233 // interfaces.
232 // Bool interface can be implemented only by core class Bool. 234 // Bool interface can be implemented only by core class Bool.
233 // (see ClassFinalizer::ResolveInterfaces for list of restricted interfaces).
234 if (type.IsBoolType()) { 235 if (type.IsBoolType()) {
235 __ cmpl(kClassIdReg, Immediate(kBoolCid)); 236 __ cmpl(kClassIdReg, Immediate(kBoolCid));
236 __ j(EQUAL, is_instance_lbl); 237 __ j(EQUAL, is_instance_lbl);
237 __ jmp(is_not_instance_lbl); 238 __ jmp(is_not_instance_lbl);
238 return false; 239 return false;
239 } 240 }
240 if (type.IsFunctionType()) { 241 if (type.IsFunctionType()) {
241 // Check if instance is a closure. 242 // Check if instance is a closure.
242 const Immediate& raw_null = 243 const Immediate& raw_null =
243 Immediate(reinterpret_cast<intptr_t>(Object::null())); 244 Immediate(reinterpret_cast<intptr_t>(Object::null()));
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 __ popl(ECX); 1718 __ popl(ECX);
1718 __ popl(EAX); 1719 __ popl(EAX);
1719 } 1720 }
1720 1721
1721 1722
1722 #undef __ 1723 #undef __
1723 1724
1724 } // namespace dart 1725 } // namespace dart
1725 1726
1726 #endif // defined TARGET_ARCH_IA32 1727 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698