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

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

Issue 2314133003: AOT: Use a cid range check when possible to implement type tests. (Closed)
Patch Set: symbols 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 | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/flow_graph_compiler.h » ('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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 const bool use_speculative_inlining = false; 684 const bool use_speculative_inlining = false;
685 685
686 while (!done) { 686 while (!done) {
687 const intptr_t prev_deopt_id = thread()->deopt_id(); 687 const intptr_t prev_deopt_id = thread()->deopt_id();
688 thread()->set_deopt_id(0); 688 thread()->set_deopt_id(0);
689 LongJumpScope jump; 689 LongJumpScope jump;
690 const intptr_t val = setjmp(*jump.Set()); 690 const intptr_t val = setjmp(*jump.Set());
691 if (val == 0) { 691 if (val == 0) {
692 FlowGraph* flow_graph = NULL; 692 FlowGraph* flow_graph = NULL;
693 693
694 // Class hierarchy analysis is registered with the isolate in the 694 // Class hierarchy analysis is registered with the thread in the
695 // constructor and unregisters itself upon destruction. 695 // constructor and unregisters itself upon destruction.
696 CHA cha(thread()); 696 CHA cha(thread());
697 697
698 // TimerScope needs an isolate to be properly terminated in case of a 698 // TimerScope needs an isolate to be properly terminated in case of a
699 // LongJump. 699 // LongJump.
700 { 700 {
701 CSTAT_TIMER_SCOPE(thread(), graphbuilder_timer); 701 CSTAT_TIMER_SCOPE(thread(), graphbuilder_timer);
702 ZoneGrowableArray<const ICData*>* ic_data_array = 702 ZoneGrowableArray<const ICData*>* ic_data_array =
703 new(zone) ZoneGrowableArray<const ICData*>(); 703 new(zone) ZoneGrowableArray<const ICData*>();
704 if (optimized()) { 704 if (optimized()) {
(...skipping 1474 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 | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698