Revision: 14739
Author:   [email protected]
Date:     Wed May 22 00:32:36 2013
Log:      build fix for 14738

BUG=
[email protected]

Review URL: https://codereview.chromium.org/15688003
http://code.google.com/p/v8/source/detail?r=14739

Modified:
 /branches/bleeding_edge/include/v8.h

=======================================
--- /branches/bleeding_edge/include/v8.h        Tue May 21 23:35:38 2013
+++ /branches/bleeding_edge/include/v8.h        Wed May 22 00:32:36 2013
@@ -2750,6 +2750,8 @@
   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 @@

 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, value ? I::kTrueValueRootIndex : I::kFalseValueRootIndex);
+  *value_ = *I::GetRoot(isolate, I::kTrueValueRootIndex);
+}
+
+template<typename T>
+void ReturnValue<T>::SetFalse(Isolate* isolate) {
+  typedef internal::Internals I;
+  *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