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

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

Issue 1702093002: Minor work for background compilation (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Minor work for background compilation 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 | « runtime/vm/class_table.cc ('k') | tests/standalone/assert_assignable_canon_test.dart » ('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/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 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1519 const Object& result = PassiveObject::Handle(thread->sticky_error()); 1519 const Object& result = PassiveObject::Handle(thread->sticky_error());
1520 thread->clear_sticky_error(); 1520 thread->clear_sticky_error();
1521 return result.raw(); 1521 return result.raw();
1522 } 1522 }
1523 UNREACHABLE(); 1523 UNREACHABLE();
1524 return Object::null(); 1524 return Object::null();
1525 } 1525 }
1526 1526
1527 1527
1528 void Compiler::AbortBackgroundCompilation(intptr_t deopt_id) { 1528 void Compiler::AbortBackgroundCompilation(intptr_t deopt_id) {
1529 if (FLAG_trace_compiler) {
1530 THR_Print("ABORT background compilation.");
1531 }
1529 ASSERT(Compiler::IsBackgroundCompilation()); 1532 ASSERT(Compiler::IsBackgroundCompilation());
1530 Thread::Current()->long_jump_base()->Jump( 1533 Thread::Current()->long_jump_base()->Jump(
1531 deopt_id, Object::background_compilation_error()); 1534 deopt_id, Object::background_compilation_error());
1532 } 1535 }
1533 1536
1534 1537
1535 // C-heap allocated background compilation queue element. 1538 // C-heap allocated background compilation queue element.
1536 class QueueElement { 1539 class QueueElement {
1537 public: 1540 public:
1538 explicit QueueElement(const Function& function) 1541 explicit QueueElement(const Function& function)
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 } 1887 }
1885 1888
1886 1889
1887 void BackgroundCompiler::EnsureInit(Thread* thread) { 1890 void BackgroundCompiler::EnsureInit(Thread* thread) {
1888 UNREACHABLE(); 1891 UNREACHABLE();
1889 } 1892 }
1890 1893
1891 #endif // DART_PRECOMPILED_RUNTIME 1894 #endif // DART_PRECOMPILED_RUNTIME
1892 1895
1893 } // namespace dart 1896 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/class_table.cc ('k') | tests/standalone/assert_assignable_canon_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698