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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | runtime/vm/parser.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 ASSERT(locs->always_calls()); 342 ASSERT(locs->always_calls());
343 Label done; 343 Label done;
344 __ CompareObject(reg, Bool::True(), PP); 344 __ CompareObject(reg, Bool::True(), PP);
345 __ j(EQUAL, &done, Assembler::kNearJump); 345 __ j(EQUAL, &done, Assembler::kNearJump);
346 __ CompareObject(reg, Bool::False(), PP); 346 __ CompareObject(reg, Bool::False(), PP);
347 __ j(EQUAL, &done, Assembler::kNearJump); 347 __ j(EQUAL, &done, Assembler::kNearJump);
348 348
349 __ pushq(reg); // Push the source object. 349 __ pushq(reg); // Push the source object.
350 compiler->GenerateRuntimeCall(token_pos, 350 compiler->GenerateRuntimeCall(token_pos,
351 deopt_id, 351 deopt_id,
352 kConditionTypeErrorRuntimeEntry, 352 kNonBoolTypeErrorRuntimeEntry,
353 1, 353 1,
354 locs); 354 locs);
355 // We should never return here. 355 // We should never return here.
356 __ int3(); 356 __ int3();
357 __ Bind(&done); 357 __ Bind(&done);
358 } 358 }
359 359
360 360
361 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 361 void AssertBooleanInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
362 Register obj = locs()->in(0).reg(); 362 Register obj = locs()->in(0).reg();
(...skipping 4443 matching lines...) Expand 10 before | Expand all | Expand 10 after
4806 PcDescriptors::kOther, 4806 PcDescriptors::kOther,
4807 locs()); 4807 locs());
4808 __ Drop(2); // Discard type arguments and receiver. 4808 __ Drop(2); // Discard type arguments and receiver.
4809 } 4809 }
4810 4810
4811 } // namespace dart 4811 } // namespace dart
4812 4812
4813 #undef __ 4813 #undef __
4814 4814
4815 #endif // defined TARGET_ARCH_X64 4815 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698