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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 264953004: For nullable/double typed fields compare with null for deoptimization, else assume double. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 (ToAbstractType()->Equals(*other->ToAbstractType())); 400 (ToAbstractType()->Equals(*other->ToAbstractType()));
401 } 401 }
402 402
403 bool IsNone() const { 403 bool IsNone() const {
404 return (cid_ == kIllegalCid) && (type_ == NULL); 404 return (cid_ == kIllegalCid) && (type_ == NULL);
405 } 405 }
406 406
407 void PrintTo(BufferFormatter* f) const; 407 void PrintTo(BufferFormatter* f) const;
408 const char* ToCString() const; 408 const char* ToCString() const;
409 409
410 intptr_t cid() const { return cid_; }
Vyacheslav Egorov (Google) 2014/05/02 00:39:24 There is already ToNullableCid() getter, no need t
srdjan 2014/05/02 15:35:50 Removed and replaced.
411
410 private: 412 private:
411 bool CanComputeIsInstanceOf(const AbstractType& type, 413 bool CanComputeIsInstanceOf(const AbstractType& type,
412 bool is_nullable, 414 bool is_nullable,
413 bool* is_instance); 415 bool* is_instance);
414 416
415 bool is_nullable_; 417 bool is_nullable_;
416 intptr_t cid_; 418 intptr_t cid_;
417 const AbstractType* type_; 419 const AbstractType* type_;
418 }; 420 };
419 421
(...skipping 7520 matching lines...) Expand 10 before | Expand all | Expand 10 after
7940 ForwardInstructionIterator* current_iterator_; 7942 ForwardInstructionIterator* current_iterator_;
7941 7943
7942 private: 7944 private:
7943 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 7945 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
7944 }; 7946 };
7945 7947
7946 7948
7947 } // namespace dart 7949 } // namespace dart
7948 7950
7949 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 7951 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698