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

Side by Side Diff: src/objects-inl.h

Issue 9572008: Implement date library functions in C++. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.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 // 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 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after
4121 4121
4122 4122
4123 JSValue* JSValue::cast(Object* obj) { 4123 JSValue* JSValue::cast(Object* obj) {
4124 ASSERT(obj->IsJSValue()); 4124 ASSERT(obj->IsJSValue());
4125 ASSERT(HeapObject::cast(obj)->Size() == JSValue::kSize); 4125 ASSERT(HeapObject::cast(obj)->Size() == JSValue::kSize);
4126 return reinterpret_cast<JSValue*>(obj); 4126 return reinterpret_cast<JSValue*>(obj);
4127 } 4127 }
4128 4128
4129 4129
4130 ACCESSORS(JSDate, value, Object, kValueOffset) 4130 ACCESSORS(JSDate, value, Object, kValueOffset)
4131 ACCESSORS(JSDate, local, Object, kLocalOffset) 4131 ACCESSORS(JSDate, cache_stamp, Object, kCacheStampOffset)
4132 ACCESSORS(JSDate, year, Object, kYearOffset) 4132 ACCESSORS(JSDate, year, Object, kYearOffset)
4133 ACCESSORS(JSDate, month, Object, kMonthOffset) 4133 ACCESSORS(JSDate, month, Object, kMonthOffset)
4134 ACCESSORS(JSDate, day, Object, kDayOffset) 4134 ACCESSORS(JSDate, day, Object, kDayOffset)
4135 ACCESSORS(JSDate, weekday, Object, kWeekdayOffset)
4135 ACCESSORS(JSDate, hour, Object, kHourOffset) 4136 ACCESSORS(JSDate, hour, Object, kHourOffset)
4136 ACCESSORS(JSDate, min, Object, kMinOffset) 4137 ACCESSORS(JSDate, min, Object, kMinOffset)
4137 ACCESSORS(JSDate, sec, Object, kSecOffset) 4138 ACCESSORS(JSDate, sec, Object, kSecOffset)
4138 ACCESSORS(JSDate, weekday, Object, kWeekdayOffset)
4139 4139
4140 4140
4141 JSDate* JSDate::cast(Object* obj) { 4141 JSDate* JSDate::cast(Object* obj) {
4142 ASSERT(obj->IsJSDate()); 4142 ASSERT(obj->IsJSDate());
4143 ASSERT(HeapObject::cast(obj)->Size() == JSDate::kSize); 4143 ASSERT(HeapObject::cast(obj)->Size() == JSDate::kSize);
4144 return reinterpret_cast<JSDate*>(obj); 4144 return reinterpret_cast<JSDate*>(obj);
4145 } 4145 }
4146 4146
4147 4147
4148 ACCESSORS(JSMessageObject, type, String, kTypeOffset) 4148 ACCESSORS(JSMessageObject, type, String, kTypeOffset)
(...skipping 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
4951 #undef WRITE_INT_FIELD 4951 #undef WRITE_INT_FIELD
4952 #undef READ_SHORT_FIELD 4952 #undef READ_SHORT_FIELD
4953 #undef WRITE_SHORT_FIELD 4953 #undef WRITE_SHORT_FIELD
4954 #undef READ_BYTE_FIELD 4954 #undef READ_BYTE_FIELD
4955 #undef WRITE_BYTE_FIELD 4955 #undef WRITE_BYTE_FIELD
4956 4956
4957 4957
4958 } } // namespace v8::internal 4958 } } // namespace v8::internal
4959 4959
4960 #endif // V8_OBJECTS_INL_H_ 4960 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698