Reviewers: Sven Panne,

Message:
Committed patchset #1 manually as r14739 (presubmit successful).

Description:
build fix for 14738

BUG=
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=14739

Please review this at https://codereview.chromium.org/15688003/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M include/v8.h


Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 72737aab37e2cc2fb8a8e8aca5d2730b1f06bdb8..b3dff3fee107a6e3992e925b488d8ba760723e50 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -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>


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to