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

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

Issue 1811613002: Timeline API fixes for Flutter (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
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 20 matching lines...) Expand all
31 #include "vm/parser.h" 31 #include "vm/parser.h"
32 #include "vm/precompiler.h" 32 #include "vm/precompiler.h"
33 #include "vm/profiler.h" 33 #include "vm/profiler.h"
34 #include "vm/reusable_handles.h" 34 #include "vm/reusable_handles.h"
35 #include "vm/runtime_entry.h" 35 #include "vm/runtime_entry.h"
36 #include "vm/scopes.h" 36 #include "vm/scopes.h"
37 #include "vm/stack_frame.h" 37 #include "vm/stack_frame.h"
38 #include "vm/symbols.h" 38 #include "vm/symbols.h"
39 #include "vm/tags.h" 39 #include "vm/tags.h"
40 #include "vm/thread_registry.h" 40 #include "vm/thread_registry.h"
41 #include "vm/timeline.h"
41 #include "vm/timer.h" 42 #include "vm/timer.h"
42 #include "vm/unicode.h" 43 #include "vm/unicode.h"
43 #include "vm/verified_memory.h" 44 #include "vm/verified_memory.h"
44 #include "vm/weak_code.h" 45 #include "vm/weak_code.h"
45 46
46 namespace dart { 47 namespace dart {
47 48
48 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000, 49 DEFINE_FLAG(int, huge_method_cutoff_in_code_size, 200000,
49 "Huge method cutoff in unoptimized code size (in bytes)."); 50 "Huge method cutoff in unoptimized code size (in bytes).");
50 DEFINE_FLAG(int, huge_method_cutoff_in_tokens, 20000, 51 DEFINE_FLAG(int, huge_method_cutoff_in_tokens, 20000,
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 lib.AddClass(cls); 1098 lib.AddClass(cls);
1098 } 1099 }
1099 1100
1100 1101
1101 RawError* Object::Init(Isolate* isolate) { 1102 RawError* Object::Init(Isolate* isolate) {
1102 Thread* thread = Thread::Current(); 1103 Thread* thread = Thread::Current();
1103 Zone* zone = thread->zone(); 1104 Zone* zone = thread->zone();
1104 ASSERT(isolate == thread->isolate()); 1105 ASSERT(isolate == thread->isolate());
1105 NOT_IN_PRODUCT( 1106 NOT_IN_PRODUCT(
1106 TimelineDurationScope tds(thread, 1107 TimelineDurationScope tds(thread,
1107 isolate->GetIsolateStream(), 1108 Timeline::GetIsolateStream(),
1108 "Object::Init"); 1109 "Object::Init");
1109 ) 1110 )
1110 1111
1111 #if defined(DART_NO_SNAPSHOT) 1112 #if defined(DART_NO_SNAPSHOT)
1112 // Object::Init version when we are running in a version of dart that does 1113 // Object::Init version when we are running in a version of dart that does
1113 // not have a full snapshot linked in. 1114 // not have a full snapshot linked in.
1114 ObjectStore* object_store = isolate->object_store(); 1115 ObjectStore* object_store = isolate->object_store();
1115 1116
1116 Class& cls = Class::Handle(zone); 1117 Class& cls = Class::Handle(zone);
1117 Type& type = Type::Handle(zone); 1118 Type& type = Type::Handle(zone);
(...skipping 20799 matching lines...) Expand 10 before | Expand all | Expand 10 after
21917 return UserTag::null(); 21918 return UserTag::null();
21918 } 21919 }
21919 21920
21920 21921
21921 const char* UserTag::ToCString() const { 21922 const char* UserTag::ToCString() const {
21922 const String& tag_label = String::Handle(label()); 21923 const String& tag_label = String::Handle(label());
21923 return tag_label.ToCString(); 21924 return tag_label.ToCString();
21924 } 21925 }
21925 21926
21926 } // namespace dart 21927 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698