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

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

Issue 2300873002: VM: Compute static guarded cid for final instance fields. (Closed)
Patch Set: Clean up Created 4 years, 3 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 | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/precompiler.cc » ('J')
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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 } 1370 }
1371 UNREACHABLE(); 1371 UNREACHABLE();
1372 return Error::null(); 1372 return Error::null();
1373 } 1373 }
1374 1374
1375 1375
1376 RawError* Compiler::CompileFunction(Thread* thread, 1376 RawError* Compiler::CompileFunction(Thread* thread,
1377 const Function& function) { 1377 const Function& function) {
1378 #ifdef DART_PRECOMPILER 1378 #ifdef DART_PRECOMPILER
1379 if (FLAG_precompiled_mode) { 1379 if (FLAG_precompiled_mode) {
1380 return Precompiler::CompileFunction(thread, function); 1380 return Precompiler::CompileFunction(thread, thread->zone(), function);
1381 } 1381 }
1382 #endif 1382 #endif
1383 Isolate* isolate = thread->isolate(); 1383 Isolate* isolate = thread->isolate();
1384 NOT_IN_PRODUCT( 1384 NOT_IN_PRODUCT(
1385 VMTagScope tagScope(thread, VMTag::kCompileUnoptimizedTagId); 1385 VMTagScope tagScope(thread, VMTag::kCompileUnoptimizedTagId);
1386 TIMELINE_FUNCTION_COMPILATION_DURATION(thread, "CompileFunction", function); 1386 TIMELINE_FUNCTION_COMPILATION_DURATION(thread, "CompileFunction", function);
1387 ) // !PRODUCT 1387 ) // !PRODUCT
1388 1388
1389 if (!isolate->compilation_allowed()) { 1389 if (!isolate->compilation_allowed()) {
1390 FATAL3("Precompilation missed function %s (%s, %s)\n", 1390 FATAL3("Precompilation missed function %s (%s, %s)\n",
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 2179
2180 2180
2181 bool BackgroundCompiler::IsDisabled() { 2181 bool BackgroundCompiler::IsDisabled() {
2182 UNREACHABLE(); 2182 UNREACHABLE();
2183 return true; 2183 return true;
2184 } 2184 }
2185 2185
2186 #endif // DART_PRECOMPILED_RUNTIME 2186 #endif // DART_PRECOMPILED_RUNTIME
2187 2187
2188 } // namespace dart 2188 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/precompiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698