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

Side by Side Diff: src/property-details.h

Issue 535093002: Version 3.28.71.7 (merged r23397) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.28
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/property-details-inl.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PROPERTY_DETAILS_H_ 5 #ifndef V8_PROPERTY_DETAILS_H_
6 #define V8_PROPERTY_DETAILS_H_ 6 #define V8_PROPERTY_DETAILS_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/utils.h" 10 #include "src/utils.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 if (IsHeapObject()) return other.IsNone(); 117 if (IsHeapObject()) return other.IsNone();
118 if (kind_ == kUInteger8 && other.kind_ == kInteger8) return false; 118 if (kind_ == kUInteger8 && other.kind_ == kInteger8) return false;
119 if (kind_ == kUInteger16 && other.kind_ == kInteger16) return false; 119 if (kind_ == kUInteger16 && other.kind_ == kInteger16) return false;
120 return kind_ > other.kind_; 120 return kind_ > other.kind_;
121 } 121 }
122 122
123 bool fits_into(const Representation& other) const { 123 bool fits_into(const Representation& other) const {
124 return other.is_more_general_than(*this) || other.Equals(*this); 124 return other.is_more_general_than(*this) || other.Equals(*this);
125 } 125 }
126 126
127 bool CanContainDouble(double value);
128
129 Representation generalize(Representation other) { 127 Representation generalize(Representation other) {
130 if (other.fits_into(*this)) return *this; 128 if (other.fits_into(*this)) return *this;
131 if (other.is_more_general_than(*this)) return other; 129 if (other.is_more_general_than(*this)) return other;
132 return Representation::Tagged(); 130 return Representation::Tagged();
133 } 131 }
134 132
135 int size() const { 133 int size() const {
136 DCHECK(!IsNone()); 134 DCHECK(!IsNone());
137 if (IsInteger8() || IsUInteger8()) { 135 if (IsInteger8() || IsUInteger8()) {
138 return sizeof(uint8_t); 136 return sizeof(uint8_t);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 PropertyDetails(int value, PropertyAttributes attributes) { 296 PropertyDetails(int value, PropertyAttributes attributes) {
299 value_ = AttributesField::update(value, attributes); 297 value_ = AttributesField::update(value, attributes);
300 } 298 }
301 299
302 uint32_t value_; 300 uint32_t value_;
303 }; 301 };
304 302
305 } } // namespace v8::internal 303 } } // namespace v8::internal
306 304
307 #endif // V8_PROPERTY_DETAILS_H_ 305 #endif // V8_PROPERTY_DETAILS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/property-details-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698