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

Unified Diff: src/factory.h

Issue 7344013: Expose APIs for detecting boxed primitives, native errors and Math. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index 19f09a15ce3ddae09ed05b06cf49a98b39f2f377..36f46f587dcb8fd773c2c6ba08345c53267853fb 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -225,6 +225,10 @@ class Factory {
Handle<Object> NewNumberFromInt(int value);
Handle<Object> NewNumberFromUint(uint32_t value);
+ Handle<Object> NewBoxedNumber(double value);
+ Handle<Object> NewBoxedString(Handle<String> value);
+ Handle<Object> NewBoxedBoolean(bool value);
+
// These objects are used by the api to create env-independent data
// structures in the heap.
Handle<JSObject> NewNeanderObject();

Powered by Google App Engine
This is Rietveld 408576698