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

Side by Side Diff: runtime/vm/intermediate_language_ia32.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/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ASSERT(locs->always_calls()); 189 ASSERT(locs->always_calls());
190 Label done; 190 Label done;
191 __ CompareObject(reg, Bool::True()); 191 __ CompareObject(reg, Bool::True());
192 __ j(EQUAL, &done, Assembler::kNearJump); 192 __ j(EQUAL, &done, Assembler::kNearJump);
193 __ CompareObject(reg, Bool::False()); 193 __ CompareObject(reg, Bool::False());
194 __ j(EQUAL, &done, Assembler::kNearJump); 194 __ j(EQUAL, &done, Assembler::kNearJump);
195 195
196 __ pushl(reg); // Push the source object. 196 __ pushl(reg); // Push the source object.
197 compiler->GenerateRuntimeCall(token_pos, 197 compiler->GenerateRuntimeCall(token_pos,
198 deopt_id, 198 deopt_id,
199 kConditionTypeErrorRuntimeEntry, 199 kNonBoolTypeErrorRuntimeEntry,
200 1, 200 1,
201 locs); 201 locs);
202 // We should never return here. 202 // We should never return here.
203 __ int3(); 203 __ int3();
204 __ Bind(&done); 204 __ Bind(&done);
205 } 205 }
206 206
207 207
208 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 208 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
209 Register obj = locs()->in(0).reg(); 209 Register obj = locs()->in(0).reg();
(...skipping 4963 matching lines...) Expand 10 before | Expand all | Expand 10 after
5173 PcDescriptors::kOther, 5173 PcDescriptors::kOther,
5174 locs()); 5174 locs());
5175 __ Drop(2); // Discard type arguments and receiver. 5175 __ Drop(2); // Discard type arguments and receiver.
5176 } 5176 }
5177 5177
5178 } // namespace dart 5178 } // namespace dart
5179 5179
5180 #undef __ 5180 #undef __
5181 5181
5182 #endif // defined TARGET_ARCH_IA32 5182 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698