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

Side by Side Diff: runtime/vm/token.h

Issue 10440099: Adding unary op optimizations. missing assembly operations/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/token.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_TOKEN_H_ 5 #ifndef VM_TOKEN_H_
6 #define VM_TOKEN_H_ 6 #define VM_TOKEN_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 ASSERT(tok < kNumTokens); 263 ASSERT(tok < kNumTokens);
264 return ((tok == Token::kINTEGER) || 264 return ((tok == Token::kINTEGER) ||
265 (tok == Token::kSTRING) || 265 (tok == Token::kSTRING) ||
266 (tok == Token::kINTERPOL_VAR) || 266 (tok == Token::kINTERPOL_VAR) ||
267 (tok == Token::kERROR) || 267 (tok == Token::kERROR) ||
268 (tok == Token::kDOUBLE)); 268 (tok == Token::kDOUBLE));
269 } 269 }
270 270
271 // Returns kILLEGAL if 'name' does not match a BinaryOp. 271 // Returns kILLEGAL if 'name' does not match a BinaryOp.
272 static Token::Kind GetBinaryOp(const String& name); 272 static Token::Kind GetBinaryOp(const String& name);
273 static Token::Kind GetUnaryOp(const String& name);
273 274
274 private: 275 private:
275 static const char* name_[]; 276 static const char* name_[];
276 static const char* tok_str_[]; 277 static const char* tok_str_[];
277 static const uint8_t precedence_[]; 278 static const uint8_t precedence_[];
278 static const Attribute attributes_[]; 279 static const Attribute attributes_[];
279 }; 280 };
280 281
281 282
282 } // namespace dart 283 } // namespace dart
283 284
284 #endif // VM_TOKEN_H_ 285 #endif // VM_TOKEN_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698