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

Unified Diff: src/register-allocator-inl.h

Issue 1277001: Store type information with constants. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/register-allocator.h ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/register-allocator-inl.h
===================================================================
--- src/register-allocator-inl.h (revision 4250)
+++ src/register-allocator-inl.h (working copy)
@@ -106,13 +106,7 @@
NumberInfo Result::number_info() const {
ASSERT(is_valid());
- if (!is_constant()) {
- return NumberInfo::FromInt(NumberInfoField::decode(value_));
- }
- Handle<Object> value = handle();
- if (value->IsSmi()) return NumberInfo::Smi();
- if (value->IsHeapNumber()) return NumberInfo::HeapNumber();
- return NumberInfo::Unknown();
+ return NumberInfo::FromInt(NumberInfoField::decode(value_));
}
@@ -138,8 +132,8 @@
}
-bool Result::is_heap_number() const {
- return number_info().IsHeapNumber();
+bool Result::is_double() const {
+ return number_info().IsDouble();
}
} } // namespace v8::internal
« no previous file with comments | « src/register-allocator.h ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698