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/intermediate_language.h

Issue 1410733006: More general CHA-based inlining and devirtualization for precompiled code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments, fixed type propagation assertion failure Created 5 years, 2 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/flow_graph_type_propagator.cc ('k') | runtime/vm/object.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 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 CompileType* Type(); 330 CompileType* Type();
331 331
332 void SetReachingType(CompileType* type) { 332 void SetReachingType(CompileType* type) {
333 reaching_type_ = type; 333 reaching_type_ = type;
334 } 334 }
335 335
336 void PrintTo(BufferFormatter* f) const; 336 void PrintTo(BufferFormatter* f) const;
337 337
338 const char* ToCString() const; 338 const char* ToCString() const;
339 339
340 const char* DebugName() const { return "Value"; }
341
342 bool IsSmiValue() { return Type()->ToCid() == kSmiCid; } 340 bool IsSmiValue() { return Type()->ToCid() == kSmiCid; }
343 341
344 // Returns true if this value binds to the constant: 0xFFFFFFFF. 342 // Returns true if this value binds to the constant: 0xFFFFFFFF.
345 bool BindsTo32BitMaskConstant() const; 343 bool BindsTo32BitMaskConstant() const;
346 344
347 // Return true if the value represents a constant. 345 // Return true if the value represents a constant.
348 bool BindsToConstant() const; 346 bool BindsToConstant() const;
349 347
350 // Return true if the value represents the constant null. 348 // Return true if the value represents the constant null.
351 bool BindsToConstantNull() const; 349 bool BindsToConstantNull() const;
(...skipping 7761 matching lines...) Expand 10 before | Expand all | Expand 10 after
8113 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \ 8111 LocationSummary* Name::MakeLocationSummary(Zone* zone, bool opt) const { \
8114 UNIMPLEMENTED(); \ 8112 UNIMPLEMENTED(); \
8115 return NULL; \ 8113 return NULL; \
8116 } \ 8114 } \
8117 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); } 8115 void Name::EmitNativeCode(FlowGraphCompiler* compiler) { UNIMPLEMENTED(); }
8118 8116
8119 8117
8120 } // namespace dart 8118 } // namespace dart
8121 8119
8122 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 8120 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_type_propagator.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698