| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |