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

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

Issue 12330072: Ensure that compile time types for comparisons are recomputed once comparison are specialized. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 Register result = locs()->out().reg(); 1087 Register result = locs()->out().reg();
1088 __ movl(result, 1088 __ movl(result,
1089 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress()))); 1089 Immediate(reinterpret_cast<uword>(Symbols::PredefinedAddress())));
1090 __ movl(result, Address(result, 1090 __ movl(result, Address(result,
1091 char_code, 1091 char_code,
1092 TIMES_HALF_WORD_SIZE, // Char code is a smi. 1092 TIMES_HALF_WORD_SIZE, // Char code is a smi.
1093 Symbols::kNullCharCodeSymbolOffset * kWordSize)); 1093 Symbols::kNullCharCodeSymbolOffset * kWordSize));
1094 } 1094 }
1095 1095
1096 1096
1097 CompileType* LoadIndexedInstr::ComputeInitialType() const { 1097 CompileType LoadIndexedInstr::ComputeType() const {
1098 switch (class_id_) { 1098 switch (class_id_) {
1099 case kArrayCid: 1099 case kArrayCid:
1100 case kImmutableArrayCid: 1100 case kImmutableArrayCid:
1101 return CompileType::Dynamic(); 1101 return CompileType::Dynamic();
1102 1102
1103 case kFloat32ArrayCid : 1103 case kFloat32ArrayCid :
1104 case kFloat64ArrayCid : 1104 case kFloat64ArrayCid :
1105 return CompileType::FromCid(kDoubleCid); 1105 return CompileType::FromCid(kDoubleCid);
1106 1106
1107 case kInt8ArrayCid: 1107 case kInt8ArrayCid:
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
3505 PcDescriptors::kOther, 3505 PcDescriptors::kOther,
3506 locs()); 3506 locs());
3507 __ Drop(2); // Discard type arguments and receiver. 3507 __ Drop(2); // Discard type arguments and receiver.
3508 } 3508 }
3509 3509
3510 } // namespace dart 3510 } // namespace dart
3511 3511
3512 #undef __ 3512 #undef __
3513 3513
3514 #endif // defined TARGET_ARCH_IA32 3514 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698