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

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

Issue 1643023003: Precompilation: when removing top-level fields and functions, also remove them from the library dic… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/dart_api_impl.cc » ('j') | runtime/vm/object.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 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 if (start_task) { 1935 if (start_task) {
1936 Dart::thread_pool()->Run(isolate->background_compiler()); 1936 Dart::thread_pool()->Run(isolate->background_compiler());
1937 } 1937 }
1938 } 1938 }
1939 1939
1940 1940
1941 #else // DART_PRECOMPILED_RUNTIME 1941 #else // DART_PRECOMPILED_RUNTIME
1942 1942
1943 1943
1944 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { 1944 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
1945 UNREACHABLE(); 1945 const Function& function = Function::CheckedHandle(arguments.ArgAt(0));
1946 FATAL3("Precompilation missed function %s (%" Pd ", %s)\n",
1947 function.ToLibNamePrefixedQualifiedCString(),
1948 function.token_pos(),
1949 Function::KindToCString(function.kind()));
1946 } 1950 }
1947 1951
1948 1952
1949 bool Compiler::IsBackgroundCompilation() { 1953 bool Compiler::IsBackgroundCompilation() {
1950 UNREACHABLE(); 1954 UNREACHABLE();
1951 return false; 1955 return false;
1952 } 1956 }
1953 1957
1954 1958
1955 RawError* Compiler::Compile(const Library& library, const Script& script) { 1959 RawError* Compiler::Compile(const Library& library, const Script& script) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 } 2043 }
2040 2044
2041 2045
2042 void BackgroundCompiler::EnsureInit(Thread* thread) { 2046 void BackgroundCompiler::EnsureInit(Thread* thread) {
2043 UNREACHABLE(); 2047 UNREACHABLE();
2044 } 2048 }
2045 2049
2046 #endif // DART_PRECOMPILED_RUNTIME 2050 #endif // DART_PRECOMPILED_RUNTIME
2047 2051
2048 } // namespace dart 2052 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/dart_api_impl.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698