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

Side by Side Diff: runtime/vm/deopt_instructions.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
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/deopt_instructions.h" 5 #include "vm/deopt_instructions.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/code_patcher.h" 8 #include "vm/code_patcher.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 dest_frame_ = NULL; 132 dest_frame_ = NULL;
133 133
134 // Delete all deferred objects. 134 // Delete all deferred objects.
135 for (intptr_t i = 0; i < deferred_objects_count_; i++) { 135 for (intptr_t i = 0; i < deferred_objects_count_; i++) {
136 delete deferred_objects_[i]; 136 delete deferred_objects_[i];
137 } 137 }
138 delete[] deferred_objects_; 138 delete[] deferred_objects_;
139 deferred_objects_ = NULL; 139 deferred_objects_ = NULL;
140 deferred_objects_count_ = 0; 140 deferred_objects_count_ = 0;
141 if (FLAG_support_timeline && (deopt_start_micros_ != 0)) { 141 if (FLAG_support_timeline && (deopt_start_micros_ != 0)) {
142 Isolate* isolate = Isolate::Current(); 142 TimelineStream* compiler_stream = Timeline::GetCompilerStream();
143 TimelineStream* compiler_stream = isolate->GetCompilerStream();
144 ASSERT(compiler_stream != NULL); 143 ASSERT(compiler_stream != NULL);
145 if (compiler_stream->Enabled()) { 144 if (compiler_stream->Enabled()) {
146 // Allocate all Dart objects needed before calling StartEvent, 145 // Allocate all Dart objects needed before calling StartEvent,
147 // which blocks safe points until Complete is called. 146 // which blocks safe points until Complete is called.
148 const Code& code = Code::Handle(zone(), code_); 147 const Code& code = Code::Handle(zone(), code_);
149 const Function& function = Function::Handle(zone(), code.function()); 148 const Function& function = Function::Handle(zone(), code.function());
150 const String& function_name = 149 const String& function_name =
151 String::Handle(zone(), function.QualifiedScrubbedName()); 150 String::Handle(zone(), function.QualifiedScrubbedName());
152 const char* reason = DeoptReasonToCString(deopt_reason()); 151 const char* reason = DeoptReasonToCString(deopt_reason());
153 const int counter = function.deoptimization_counter(); 152 const int counter = function.deoptimization_counter();
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 Smi* offset, 1309 Smi* offset,
1311 TypedData* info, 1310 TypedData* info,
1312 Smi* reason) { 1311 Smi* reason) {
1313 intptr_t i = index * kEntrySize; 1312 intptr_t i = index * kEntrySize;
1314 *offset ^= table.At(i); 1313 *offset ^= table.At(i);
1315 *info ^= table.At(i + 1); 1314 *info ^= table.At(i + 1);
1316 *reason ^= table.At(i + 2); 1315 *reason ^= table.At(i + 2);
1317 } 1316 }
1318 1317
1319 } // namespace dart 1318 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698