OLD | NEW |
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 4683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4694 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Value>()); | 4694 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Value>()); |
4695 return Utils::ToLocal(obj); | 4695 return Utils::ToLocal(obj); |
4696 } | 4696 } |
4697 | 4697 |
4698 | 4698 |
4699 double v8::Date::NumberValue() const { | 4699 double v8::Date::NumberValue() const { |
4700 i::Isolate* isolate = i::Isolate::Current(); | 4700 i::Isolate* isolate = i::Isolate::Current(); |
4701 if (IsDeadCheck(isolate, "v8::Date::NumberValue()")) return 0; | 4701 if (IsDeadCheck(isolate, "v8::Date::NumberValue()")) return 0; |
4702 LOG_API(isolate, "Date::NumberValue"); | 4702 LOG_API(isolate, "Date::NumberValue"); |
4703 i::Handle<i::Object> obj = Utils::OpenHandle(this); | 4703 i::Handle<i::Object> obj = Utils::OpenHandle(this); |
4704 i::Handle<i::JSValue> jsvalue = i::Handle<i::JSValue>::cast(obj); | 4704 i::Handle<i::JSDate> jsdate = i::Handle<i::JSDate>::cast(obj); |
4705 return jsvalue->value()->Number(); | 4705 return jsdate->value()->Number(); |
4706 } | 4706 } |
4707 | 4707 |
4708 | 4708 |
4709 void v8::Date::DateTimeConfigurationChangeNotification() { | 4709 void v8::Date::DateTimeConfigurationChangeNotification() { |
4710 i::Isolate* isolate = i::Isolate::Current(); | 4710 i::Isolate* isolate = i::Isolate::Current(); |
4711 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()", | 4711 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()", |
4712 return); | 4712 return); |
4713 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification"); | 4713 LOG_API(isolate, "Date::DateTimeConfigurationChangeNotification"); |
4714 ENTER_V8(isolate); | 4714 ENTER_V8(isolate); |
4715 | 4715 |
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6166 | 6166 |
6167 | 6167 |
6168 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6168 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6169 HandleScopeImplementer* scope_implementer = | 6169 HandleScopeImplementer* scope_implementer = |
6170 reinterpret_cast<HandleScopeImplementer*>(storage); | 6170 reinterpret_cast<HandleScopeImplementer*>(storage); |
6171 scope_implementer->IterateThis(v); | 6171 scope_implementer->IterateThis(v); |
6172 return storage + ArchiveSpacePerThread(); | 6172 return storage + ArchiveSpacePerThread(); |
6173 } | 6173 } |
6174 | 6174 |
6175 } } // namespace v8::internal | 6175 } } // namespace v8::internal |
OLD | NEW |