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

Side by Side Diff: include/v8.h

Issue 1162363005: Remove usage of to-be-deprecated APIs from v8 core (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 6 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
« no previous file with comments | « no previous file | src/accessors.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 7692 matching lines...) Expand 10 before | Expand all | Expand 10 after
7703 return (I::GetInstanceType(obj) < I::kFirstNonstringType); 7703 return (I::GetInstanceType(obj) < I::kFirstNonstringType);
7704 } 7704 }
7705 7705
7706 7706
7707 template <class T> Value* Value::Cast(T* value) { 7707 template <class T> Value* Value::Cast(T* value) {
7708 return static_cast<Value*>(value); 7708 return static_cast<Value*>(value);
7709 } 7709 }
7710 7710
7711 7711
7712 Local<Boolean> Value::ToBoolean() const { 7712 Local<Boolean> Value::ToBoolean() const {
7713 return ToBoolean(Isolate::GetCurrent()); 7713 return ToBoolean(Isolate::GetCurrent()->GetCurrentContext())
7714 .FromMaybe(Local<Boolean>());
7714 } 7715 }
7715 7716
7716 7717
7717 Local<Number> Value::ToNumber() const { 7718 Local<Number> Value::ToNumber() const {
7718 return ToNumber(Isolate::GetCurrent()); 7719 return ToNumber(Isolate::GetCurrent()->GetCurrentContext())
7720 .FromMaybe(Local<Number>());
7719 } 7721 }
7720 7722
7721 7723
7722 Local<String> Value::ToString() const { 7724 Local<String> Value::ToString() const {
7723 return ToString(Isolate::GetCurrent()); 7725 return ToString(Isolate::GetCurrent()->GetCurrentContext())
7726 .FromMaybe(Local<String>());
7724 } 7727 }
7725 7728
7726 7729
7727 Local<String> Value::ToDetailString() const { 7730 Local<String> Value::ToDetailString() const {
7728 return ToDetailString(Isolate::GetCurrent()); 7731 return ToDetailString(Isolate::GetCurrent()->GetCurrentContext())
7732 .FromMaybe(Local<String>());
7729 } 7733 }
7730 7734
7731 7735
7732 Local<Object> Value::ToObject() const { 7736 Local<Object> Value::ToObject() const {
7733 return ToObject(Isolate::GetCurrent()); 7737 return ToObject(Isolate::GetCurrent()->GetCurrentContext())
7738 .FromMaybe(Local<Object>());
7734 } 7739 }
7735 7740
7736 7741
7737 Local<Integer> Value::ToInteger() const { 7742 Local<Integer> Value::ToInteger() const {
7738 return ToInteger(Isolate::GetCurrent()); 7743 return ToInteger(Isolate::GetCurrent()->GetCurrentContext())
7744 .FromMaybe(Local<Integer>());
7739 } 7745 }
7740 7746
7741 7747
7742 Local<Uint32> Value::ToUint32() const { 7748 Local<Uint32> Value::ToUint32() const {
7743 return ToUint32(Isolate::GetCurrent()); 7749 return ToUint32(Isolate::GetCurrent()->GetCurrentContext())
7750 .FromMaybe(Local<Uint32>());
7744 } 7751 }
7745 7752
7746 7753
7747 Local<Int32> Value::ToInt32() const { return ToInt32(Isolate::GetCurrent()); } 7754 Local<Int32> Value::ToInt32() const {
7755 return ToInt32(Isolate::GetCurrent()->GetCurrentContext())
7756 .FromMaybe(Local<Int32>());
7757 }
7748 7758
7749 7759
7750 Boolean* Boolean::Cast(v8::Value* value) { 7760 Boolean* Boolean::Cast(v8::Value* value) {
7751 #ifdef V8_ENABLE_CHECKS 7761 #ifdef V8_ENABLE_CHECKS
7752 CheckCast(value); 7762 CheckCast(value);
7753 #endif 7763 #endif
7754 return static_cast<Boolean*>(value); 7764 return static_cast<Boolean*>(value);
7755 } 7765 }
7756 7766
7757 7767
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
8309 */ 8319 */
8310 8320
8311 8321
8312 } // namespace v8 8322 } // namespace v8
8313 8323
8314 8324
8315 #undef TYPE_CHECK 8325 #undef TYPE_CHECK
8316 8326
8317 8327
8318 #endif // V8_H_ 8328 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698