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

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

Issue 293963008: Make compilation VM tags more fine grained (Closed) Base URL: https://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/compiler.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);
Ivan Posva 2014/05/21 18:01:32 Why not set the scanner tag here? Creating the Tok
7858 TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer); 7857 TimerScope timer(FLAG_compiler_stats, &CompilerStats::scanner_timer);
7859 const String& src = String::Handle(isolate, Source()); 7858 const String& src = String::Handle(isolate, Source());
7860 Scanner scanner(src, private_key); 7859 Scanner scanner(src, private_key);
7861 set_tokens(TokenStream::Handle(isolate, 7860 set_tokens(TokenStream::Handle(isolate,
7862 TokenStream::New(scanner.GetStream(), 7861 TokenStream::New(scanner.GetStream(),
7863 private_key))); 7862 private_key)));
7864 if (FLAG_compiler_stats) { 7863 if (FLAG_compiler_stats) {
7865 CompilerStats::src_length += src.Length(); 7864 CompilerStats::src_length += src.Length();
7866 } 7865 }
7867 } 7866 }
(...skipping 10986 matching lines...) Expand 10 before | Expand all | Expand 10 after
18854 return tag_label.ToCString(); 18853 return tag_label.ToCString();
18855 } 18854 }
18856 18855
18857 18856
18858 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 18857 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
18859 Instance::PrintJSONImpl(stream, ref); 18858 Instance::PrintJSONImpl(stream, ref);
18860 } 18859 }
18861 18860
18862 18861
18863 } // namespace dart 18862 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698