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

Side by Side Diff: src/ic.cc

Issue 105313008: Delete unused TypeInfo class (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2667 if (object->IsBoolean() && is_truncating) { 2667 if (object->IsBoolean() && is_truncating) {
2668 // Booleans will be automatically truncated by HChange. 2668 // Booleans will be automatically truncated by HChange.
2669 new_kind = INT32; 2669 new_kind = INT32;
2670 } else if (object->IsUndefined()) { 2670 } else if (object->IsUndefined()) {
2671 // Undefined will be automatically truncated by HChange. 2671 // Undefined will be automatically truncated by HChange.
2672 new_kind = is_truncating ? INT32 : NUMBER; 2672 new_kind = is_truncating ? INT32 : NUMBER;
2673 } else if (object->IsSmi()) { 2673 } else if (object->IsSmi()) {
2674 new_kind = SMI; 2674 new_kind = SMI;
2675 } else if (object->IsHeapNumber()) { 2675 } else if (object->IsHeapNumber()) {
2676 double value = Handle<HeapNumber>::cast(object)->value(); 2676 double value = Handle<HeapNumber>::cast(object)->value();
2677 new_kind = TypeInfo::IsInt32Double(value) ? INT32 : NUMBER; 2677 new_kind = IsInt32Double(value) ? INT32 : NUMBER;
2678 } else if (object->IsString() && op() == Token::ADD) { 2678 } else if (object->IsString() && op() == Token::ADD) {
2679 new_kind = STRING; 2679 new_kind = STRING;
2680 } 2680 }
2681 if (new_kind == INT32 && SmiValuesAre32Bits()) { 2681 if (new_kind == INT32 && SmiValuesAre32Bits()) {
2682 new_kind = NUMBER; 2682 new_kind = NUMBER;
2683 } 2683 }
2684 if (kind != NONE && 2684 if (kind != NONE &&
2685 ((new_kind <= NUMBER && kind > NUMBER) || 2685 ((new_kind <= NUMBER && kind > NUMBER) ||
2686 (new_kind > NUMBER && kind <= NUMBER))) { 2686 (new_kind > NUMBER && kind <= NUMBER))) {
2687 new_kind = GENERIC; 2687 new_kind = GENERIC;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
3138 #undef ADDR 3138 #undef ADDR
3139 }; 3139 };
3140 3140
3141 3141
3142 Address IC::AddressFromUtilityId(IC::UtilityId id) { 3142 Address IC::AddressFromUtilityId(IC::UtilityId id) {
3143 return IC_utilities[id]; 3143 return IC_utilities[id];
3144 } 3144 }
3145 3145
3146 3146
3147 } } // namespace v8::internal 3147 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/property-details.h » ('j') | src/property-details.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698