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

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

Issue 9189003: Move assert.h/assert.cc from runtime/vm to runtime/platform (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing vm/assert.h for _macos, _win, _arm and _x64 files 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
OLDNEW
1 // Copyright (c) 2011, 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 #include "vm/scanner.h" 5 #include "platform/assert.h"
6
7 #include "vm/assert.h"
8 #include "vm/flags.h" 6 #include "vm/flags.h"
9 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/scanner.h"
Mads Ager (chromium) 2012/01/13 14:42:08 I don't think you should move this one down. This
Ivan Posva 2012/01/13 23:22:06 I agree, there quite a few files that broke the in
Søren Gjesse 2012/01/16 08:58:00 Done.
Søren Gjesse 2012/01/16 08:58:00 Done.
10 #include "vm/thread.h" 9 #include "vm/thread.h"
11 #include "vm/token.h" 10 #include "vm/token.h"
12 11
13 namespace dart { 12 namespace dart {
14 13
15 DEFINE_FLAG(bool, print_tokens, false, "Print scanned tokens."); 14 DEFINE_FLAG(bool, print_tokens, false, "Print scanned tokens.");
16 15
17 void Scanner::InitKeywordTable() { 16 void Scanner::InitKeywordTable() {
18 for (int i = 0; i < Token::numKeywords; i++) { 17 for (int i = 0; i < Token::numKeywords; i++) {
19 Token::Kind token = static_cast<Token::Kind>(Token::kFirstKeyword + i); 18 Token::Kind token = static_cast<Token::Kind>(Token::kFirstKeyword + i);
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); 844 "%c%"PRIxPTR, kPrivateKeySeparator, key_value);
846 const String& result = String::Handle(String::New(private_key)); 845 const String& result = String::Handle(String::New(private_key));
847 return result.raw(); 846 return result.raw();
848 } 847 }
849 848
850 849
851 void Scanner::InitOnce() { 850 void Scanner::InitOnce() {
852 } 851 }
853 852
854 } // namespace dart 853 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698