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

Side by Side Diff: src/types.h

Issue 143973004: Silence another VS warning (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | test/cctest/test-types.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 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 static bool is_tagged(Type* type) { return !is_bitset(type); } 348 static bool is_tagged(Type* type) { return !is_bitset(type); }
349 static bool is_class(Type* type) { return is(type, kClassTag); } 349 static bool is_class(Type* type) { return is(type, kClassTag); }
350 static bool is_constant(Type* type) { return is(type, kConstantTag); } 350 static bool is_constant(Type* type) { return is(type, kConstantTag); }
351 static bool is_union(Type* type) { return is(type, kUnionTag); } 351 static bool is_union(Type* type) { return is(type, kUnionTag); }
352 static bool tagged_is_union(Tagged* tagged) { 352 static bool tagged_is_union(Tagged* tagged) {
353 return is(from_tagged(tagged), kUnionTag); 353 return is(from_tagged(tagged), kUnionTag);
354 } 354 }
355 355
356 static int as_bitset(Type* type) { 356 static int as_bitset(Type* type) {
357 ASSERT(is_bitset(type)); 357 ASSERT(is_bitset(type));
358 return reinterpret_cast<intptr_t>(type) >> 1; 358 return static_cast<int>(reinterpret_cast<intptr_t>(type) >> 1);
359 } 359 }
360 static Tagged* as_tagged(Type* type) { 360 static Tagged* as_tagged(Type* type) {
361 ASSERT(is_tagged(type)); 361 ASSERT(is_tagged(type));
362 return reinterpret_cast<Tagged*>(type); 362 return reinterpret_cast<Tagged*>(type);
363 } 363 }
364 static i::Handle<i::Map> as_class(Type* type) { 364 static i::Handle<i::Map> as_class(Type* type) {
365 ASSERT(is_class(type)); 365 ASSERT(is_class(type));
366 return i::Handle<i::Map>(tagged_get<i::Map**>(as_tagged(type), 0)); 366 return i::Handle<i::Map>(tagged_get<i::Map**>(as_tagged(type), 0));
367 } 367 }
368 static i::Handle<i::Object> as_constant(Type* type) { 368 static i::Handle<i::Object> as_constant(Type* type) {
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 } 550 }
551 }; 551 };
552 552
553 typedef BoundsImpl<ZoneTypeConfig> ZoneBounds; 553 typedef BoundsImpl<ZoneTypeConfig> ZoneBounds;
554 typedef BoundsImpl<HeapTypeConfig> Bounds; 554 typedef BoundsImpl<HeapTypeConfig> Bounds;
555 555
556 556
557 } } // namespace v8::internal 557 } } // namespace v8::internal
558 558
559 #endif // V8_TYPES_H_ 559 #endif // V8_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698