Commit 64aa4834 authored by dcarney@chromium.org's avatar dcarney@chromium.org

build fix for 14738

BUG=
R=svenpanne@chromium.org

Review URL: https://codereview.chromium.org/15688003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14739 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1045d627
......@@ -2750,6 +2750,8 @@ class V8EXPORT ReturnValue {
V8_INLINE(void SetNull(Isolate* isolate));
V8_INLINE(void SetUndefined(Isolate* isolate));
private:
V8_INLINE(void SetTrue(Isolate* isolate));
V8_INLINE(void SetFalse(Isolate* isolate));
internal::Object** value_;
};
......@@ -5680,9 +5682,23 @@ void ReturnValue<T>::Set(Isolate* isolate, uint32_t i) {
template<typename T>
void ReturnValue<T>::Set(Isolate* isolate, bool value) {
if (value) {
SetTrue(isolate);
} else {
SetFalse(isolate);
}
}
template<typename T>
void ReturnValue<T>::SetTrue(Isolate* isolate) {
typedef internal::Internals I;
*value_ = *I::GetRoot(isolate, I::kTrueValueRootIndex);
}
template<typename T>
void ReturnValue<T>::SetFalse(Isolate* isolate) {
typedef internal::Internals I;
*value_ = *I::GetRoot(
isolate, value ? I::kTrueValueRootIndex : I::kFalseValueRootIndex);
*value_ = *I::GetRoot(isolate, I::kFalseValueRootIndex);
}
template<typename T>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment