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

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

Issue 294943008: - Landing https://codereview.chromium.org/293963008/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/debugger.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) 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 7836 matching lines...) Expand 10 before | Expand all | Expand 10 after
7847 7847
7848 7848
7849 void Script::Tokenize(const String& private_key) const { 7849 void Script::Tokenize(const String& private_key) const {
7850 Isolate* isolate = Isolate::Current(); 7850 Isolate* isolate = Isolate::Current();
7851 const TokenStream& tkns = TokenStream::Handle(isolate, tokens()); 7851 const TokenStream& tkns = TokenStream::Handle(isolate, tokens());
7852 if (!tkns.IsNull()) { 7852 if (!tkns.IsNull()) {
7853 // Already tokenized. 7853 // Already tokenized.
7854 return; 7854 return;
7855 } 7855 }
7856 // Get the source, scan and allocate the token stream. 7856 // Get the source, scan and allocate the token stream.
7857 VMTagScope tagScope(isolate, VMTag::kCompileTagId); 7857 VMTagScope tagScope(isolate, VMTag::kCompileScannerTagId);
7858 TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer); 7858 TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer);
7859 const String& src = String::Handle(isolate, Source()); 7859 const String& src = String::Handle(isolate, Source());
7860 Scanner scanner(src, private_key); 7860 Scanner scanner(src, private_key);
7861 set_tokens(TokenStream::Handle(isolate, 7861 set_tokens(TokenStream::Handle(isolate,
7862 TokenStream::New(scanner.GetStream(), 7862 TokenStream::New(scanner.GetStream(),
7863 private_key))); 7863 private_key)));
7864 if (FLAG_compiler_stats) { 7864 if (FLAG_compiler_stats) {
7865 CompilerStats::src_length += src.Length(); 7865 CompilerStats::src_length += src.Length();
7866 } 7866 }
7867 } 7867 }
(...skipping 10986 matching lines...) Expand 10 before | Expand all | Expand 10 after
18854 return tag_label.ToCString(); 18854 return tag_label.ToCString();
18855 } 18855 }
18856 18856
18857 18857
18858 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 18858 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
18859 Instance::PrintJSONImpl(stream, ref); 18859 Instance::PrintJSONImpl(stream, ref);
18860 } 18860 }
18861 18861
18862 18862
18863 } // namespace dart 18863 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698