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

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

Issue 21029008: Fix build fail on mac. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | « no previous file | runtime/vm/object.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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after
2156 Register result) { 2156 Register result) {
2157 if (FLAG_throw_on_javascript_int_overflow) { 2157 if (FLAG_throw_on_javascript_int_overflow) {
2158 ASSERT(overflow != NULL); 2158 ASSERT(overflow != NULL);
2159 __ movq(TMP, result); // result is a tagged Smi. 2159 __ movq(TMP, result); // result is a tagged Smi.
2160 // Bits 55...64 must be all 0 or all 1. (It would be bit 54, but result 2160 // Bits 55...64 must be all 0 or all 1. (It would be bit 54, but result
2161 // is tagged.) 2161 // is tagged.)
2162 __ shlq(result, Immediate(64 - 55)); 2162 __ shlq(result, Immediate(64 - 55));
2163 __ sarq(result, Immediate(64 - 55)); 2163 __ sarq(result, Immediate(64 - 55));
2164 __ cmpq(result, TMP); 2164 __ cmpq(result, TMP);
2165 __ j(NOT_EQUAL, overflow); // 54-bit overflow. 2165 __ j(NOT_EQUAL, overflow); // 54-bit overflow.
2166 __ cmpq(result, Immediate(-0x1FFFFFFFFFFFFF-1)); 2166 __ cmpq(result, Immediate(-0x1FFFFFFFFFFFFFLL - 1));
2167 __ j(EQUAL, overflow); // The most negative 54-bit int is also disallowed. 2167 __ j(EQUAL, overflow); // The most negative 54-bit int is also disallowed.
2168 } 2168 }
2169 } 2169 }
2170 2170
2171 2171
2172 static void EmitSmiShiftLeft(FlowGraphCompiler* compiler, 2172 static void EmitSmiShiftLeft(FlowGraphCompiler* compiler,
2173 BinarySmiOpInstr* shift_left) { 2173 BinarySmiOpInstr* shift_left) {
2174 const bool is_truncating = shift_left->is_truncating(); 2174 const bool is_truncating = shift_left->is_truncating();
2175 const LocationSummary& locs = *shift_left->locs(); 2175 const LocationSummary& locs = *shift_left->locs();
2176 Register left = locs.in(0).reg(); 2176 Register left = locs.in(0).reg();
(...skipping 2376 matching lines...) Expand 10 before | Expand all | Expand 10 after
4553 PcDescriptors::kOther, 4553 PcDescriptors::kOther,
4554 locs()); 4554 locs());
4555 __ Drop(2); // Discard type arguments and receiver. 4555 __ Drop(2); // Discard type arguments and receiver.
4556 } 4556 }
4557 4557
4558 } // namespace dart 4558 } // namespace dart
4559 4559
4560 #undef __ 4560 #undef __
4561 4561
4562 #endif // defined TARGET_ARCH_X64 4562 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698