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

Side by Side Diff: vm/ast.cc

Issue 9203004: - Remove support for ">>>" operator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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 | « lib/integers.cc ('k') | vm/opt_code_generator_ia32.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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/ast.h" 5 #include "vm/ast.h"
6 #include "vm/compiler.h" 6 #include "vm/compiler.h"
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object_store.h" 9 #include "vm/object_store.h"
10 10
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 case Token::kMUL: 159 case Token::kMUL:
160 case Token::kDIV: 160 case Token::kDIV:
161 case Token::kTRUNCDIV: 161 case Token::kTRUNCDIV:
162 case Token::kMOD: 162 case Token::kMOD:
163 case Token::kOR: 163 case Token::kOR:
164 case Token::kAND: 164 case Token::kAND:
165 case Token::kBIT_OR: 165 case Token::kBIT_OR:
166 case Token::kBIT_XOR: 166 case Token::kBIT_XOR:
167 case Token::kBIT_AND: 167 case Token::kBIT_AND:
168 case Token::kSHL: 168 case Token::kSHL:
169 case Token::kSAR:
170 case Token::kSHR: 169 case Token::kSHR:
171 return true; 170 return true;
172 default: 171 default:
173 return false; 172 return false;
174 } 173 }
175 } 174 }
176 175
177 176
178 const char* BinaryOpNode::Name() const { 177 const char* BinaryOpNode::Name() const {
179 return Token::Str(kind_); 178 return Token::Str(kind_);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } else if (left_val->IsNumber() && 218 } else if (left_val->IsNumber() &&
220 right_val->IsNumber()) { 219 right_val->IsNumber()) {
221 return left_val; 220 return left_val;
222 } 221 }
223 return NULL; 222 return NULL;
224 case Token::kTRUNCDIV: 223 case Token::kTRUNCDIV:
225 case Token::kBIT_OR: 224 case Token::kBIT_OR:
226 case Token::kBIT_XOR: 225 case Token::kBIT_XOR:
227 case Token::kBIT_AND: 226 case Token::kBIT_AND:
228 case Token::kSHL: 227 case Token::kSHL:
229 case Token::kSAR:
230 case Token::kSHR: 228 case Token::kSHR:
231 if (left_val->IsInteger() && 229 if (left_val->IsInteger() &&
232 right_val->IsInteger()) { 230 right_val->IsInteger()) {
233 return right_val; 231 return right_val;
234 } 232 }
235 return NULL; 233 return NULL;
236 case Token::kOR: 234 case Token::kOR:
237 case Token::kAND: 235 case Token::kAND:
238 if (left_val->IsBool() && right_val->IsBool()) { 236 if (left_val->IsBool() && right_val->IsBool()) {
239 return left_val; 237 return left_val;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 if (field_value.IsUnhandledException()) { 445 if (field_value.IsUnhandledException()) {
448 return NULL; 446 return NULL;
449 } 447 }
450 if (!field_value.IsNull()) { 448 if (!field_value.IsNull()) {
451 return &field_value; 449 return &field_value;
452 } 450 }
453 return NULL; 451 return NULL;
454 } 452 }
455 453
456 } // namespace dart 454 } // namespace dart
OLDNEW
« no previous file with comments | « lib/integers.cc ('k') | vm/opt_code_generator_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698