| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 } | 393 } |
| 394 static Tag tagged_tag(Tagged* tagged) { | 394 static Tag tagged_tag(Tagged* tagged) { |
| 395 return static_cast<Tag>(reinterpret_cast<intptr_t>(tagged->at(0))); | 395 return static_cast<Tag>(reinterpret_cast<intptr_t>(tagged->at(0))); |
| 396 } | 396 } |
| 397 template<class T> | 397 template<class T> |
| 398 static T tagged_get(Tagged* tagged, int i) { | 398 static T tagged_get(Tagged* tagged, int i) { |
| 399 return reinterpret_cast<T>(tagged->at(i + 1)); | 399 return reinterpret_cast<T>(tagged->at(i + 1)); |
| 400 } | 400 } |
| 401 template<class T> | 401 template<class T> |
| 402 static void tagged_set(Tagged* tagged, int i, T value) { | 402 static void tagged_set(Tagged* tagged, int i, T value) { |
| 403 tagged->at(i + 1) = reinterpret_cast<void*>(value); | 403 tagged->Set(i + 1, reinterpret_cast<void*>(value)); |
| 404 } | 404 } |
| 405 static int tagged_length(Tagged* tagged) { | 405 static int tagged_length(Tagged* tagged) { |
| 406 return tagged->length() - 1; | 406 return tagged->length() - 1; |
| 407 } | 407 } |
| 408 | 408 |
| 409 public: | 409 public: |
| 410 typedef TypeImpl<ZoneTypeConfig> Type; | 410 typedef TypeImpl<ZoneTypeConfig> Type; |
| 411 class Base {}; | 411 class Base {}; |
| 412 typedef i::ZoneList<Type*> Unioned; | 412 typedef i::ZoneList<Type*> Unioned; |
| 413 typedef i::Zone Region; | 413 typedef i::Zone Region; |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 return that.lower->Is(this->lower) && this->upper->Is(that.upper); | 640 return that.lower->Is(this->lower) && this->upper->Is(that.upper); |
| 641 } | 641 } |
| 642 }; | 642 }; |
| 643 | 643 |
| 644 typedef BoundsImpl<ZoneTypeConfig> Bounds; | 644 typedef BoundsImpl<ZoneTypeConfig> Bounds; |
| 645 | 645 |
| 646 | 646 |
| 647 } } // namespace v8::internal | 647 } } // namespace v8::internal |
| 648 | 648 |
| 649 #endif // V8_TYPES_H_ | 649 #endif // V8_TYPES_H_ |
| OLD | NEW |