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

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

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
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/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); 530 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl);
531 } 531 }
532 532
533 533
534 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg, 534 void FlowGraphCompiler::GenerateStringTypeCheck(Register kClassIdReg,
535 Label* is_instance_lbl, 535 Label* is_instance_lbl,
536 Label* is_not_instance_lbl) { 536 Label* is_not_instance_lbl) {
537 GrowableArray<intptr_t> args; 537 GrowableArray<intptr_t> args;
538 args.Add(kOneByteStringCid); 538 args.Add(kOneByteStringCid);
539 args.Add(kTwoByteStringCid); 539 args.Add(kTwoByteStringCid);
540 args.Add(kFourByteStringCid);
541 args.Add(kExternalOneByteStringCid); 540 args.Add(kExternalOneByteStringCid);
542 args.Add(kExternalTwoByteStringCid); 541 args.Add(kExternalTwoByteStringCid);
543 args.Add(kExternalFourByteStringCid);
544 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl); 542 CheckClassIds(kClassIdReg, args, is_instance_lbl, is_not_instance_lbl);
545 } 543 }
546 544
547 545
548 void FlowGraphCompiler::GenerateListTypeCheck(Register kClassIdReg, 546 void FlowGraphCompiler::GenerateListTypeCheck(Register kClassIdReg,
549 Label* is_instance_lbl) { 547 Label* is_instance_lbl) {
550 Label unknown; 548 Label unknown;
551 GrowableArray<intptr_t> args; 549 GrowableArray<intptr_t> args;
552 args.Add(kArrayCid); 550 args.Add(kArrayCid);
553 args.Add(kGrowableObjectArrayCid); 551 args.Add(kGrowableObjectArrayCid);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 ASSERT(Utils::IsInt(31, disp)); 914 ASSERT(Utils::IsInt(31, disp));
917 return FieldAddress(array, disp); 915 return FieldAddress(array, disp);
918 } 916 }
919 default: 917 default:
920 UNIMPLEMENTED(); 918 UNIMPLEMENTED();
921 return FieldAddress(SPREG, 0); 919 return FieldAddress(SPREG, 0);
922 } 920 }
923 } 921 }
924 922
925 } // namespace dart 923 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698