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

Side by Side Diff: include/v8.h

Issue 849103007: arm (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 11 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/arm/code-stubs-arm.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 2767 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 static const int kCalleeIndex = 5; 2778 static const int kCalleeIndex = 5;
2779 static const int kContextSaveIndex = 6; 2779 static const int kContextSaveIndex = 6;
2780 2780
2781 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args, 2781 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
2782 internal::Object** values, 2782 internal::Object** values,
2783 int length, 2783 int length,
2784 bool is_construct_call); 2784 bool is_construct_call);
2785 internal::Object** implicit_args_; 2785 internal::Object** implicit_args_;
2786 internal::Object** values_; 2786 internal::Object** values_;
2787 int length_; 2787 int length_;
2788 bool is_construct_call_; 2788 int is_construct_call_;
2789 }; 2789 };
2790 2790
2791 2791
2792 /** 2792 /**
2793 * The information passed to a property callback about the context 2793 * The information passed to a property callback about the context
2794 * of the property access. 2794 * of the property access.
2795 */ 2795 */
2796 template<typename T> 2796 template<typename T>
2797 class PropertyCallbackInfo { 2797 class PropertyCallbackInfo {
2798 public: 2798 public:
(...skipping 3864 matching lines...) Expand 10 before | Expand all | Expand 10 after
6663 TYPE_CHECK(S*, Primitive); 6663 TYPE_CHECK(S*, Primitive);
6664 } 6664 }
6665 6665
6666 template<typename T> 6666 template<typename T>
6667 internal::Object* ReturnValue<T>::GetDefaultValue() { 6667 internal::Object* ReturnValue<T>::GetDefaultValue() {
6668 // Default value is always the pointer below value_ on the stack. 6668 // Default value is always the pointer below value_ on the stack.
6669 return value_[-1]; 6669 return value_[-1];
6670 } 6670 }
6671 6671
6672 6672
6673 template<typename T> 6673 template <typename T>
6674 FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args, 6674 FunctionCallbackInfo<T>::FunctionCallbackInfo(internal::Object** implicit_args,
6675 internal::Object** values, 6675 internal::Object** values,
6676 int length, 6676 int length,
6677 bool is_construct_call) 6677 bool is_construct_call)
6678 : implicit_args_(implicit_args), 6678 : implicit_args_(implicit_args),
6679 values_(values), 6679 values_(values),
6680 length_(length), 6680 length_(length),
6681 is_construct_call_(is_construct_call) { } 6681 is_construct_call_(is_construct_call ? 1 : 0) {}
6682 6682
6683 6683
6684 template<typename T> 6684 template<typename T>
6685 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const { 6685 Local<Value> FunctionCallbackInfo<T>::operator[](int i) const {
6686 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate())); 6686 if (i < 0 || length_ <= i) return Local<Value>(*Undefined(GetIsolate()));
6687 return Local<Value>(reinterpret_cast<Value*>(values_ - i)); 6687 return Local<Value>(reinterpret_cast<Value*>(values_ - i));
6688 } 6688 }
6689 6689
6690 6690
6691 template<typename T> 6691 template<typename T>
(...skipping 29 matching lines...) Expand all
6721 6721
6722 6722
6723 template<typename T> 6723 template<typename T>
6724 ReturnValue<T> FunctionCallbackInfo<T>::GetReturnValue() const { 6724 ReturnValue<T> FunctionCallbackInfo<T>::GetReturnValue() const {
6725 return ReturnValue<T>(&implicit_args_[kReturnValueIndex]); 6725 return ReturnValue<T>(&implicit_args_[kReturnValueIndex]);
6726 } 6726 }
6727 6727
6728 6728
6729 template<typename T> 6729 template<typename T>
6730 bool FunctionCallbackInfo<T>::IsConstructCall() const { 6730 bool FunctionCallbackInfo<T>::IsConstructCall() const {
6731 return is_construct_call_; 6731 return static_cast<bool>(is_construct_call_ & 0x1);
6732 } 6732 }
6733 6733
6734 6734
6735 template<typename T> 6735 template<typename T>
6736 int FunctionCallbackInfo<T>::Length() const { 6736 int FunctionCallbackInfo<T>::Length() const {
6737 return length_; 6737 return length_;
6738 } 6738 }
6739 6739
6740 6740
6741 Handle<Value> ScriptOrigin::ResourceName() const { 6741 Handle<Value> ScriptOrigin::ResourceName() const {
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
7500 */ 7500 */
7501 7501
7502 7502
7503 } // namespace v8 7503 } // namespace v8
7504 7504
7505 7505
7506 #undef TYPE_CHECK 7506 #undef TYPE_CHECK
7507 7507
7508 7508
7509 #endif // V8_H_ 7509 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698