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

Unified Diff: src/runtime.cc

Issue 12296026: ES6 symbols: Implement Symbol intrinsic and basic functionality (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment Created 7 years, 10 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/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 959dec418ea393f3ed7cf66e2bbb35eed3cf2500..a3690c45c3f163238284a41706b8adb73eee5bce 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -679,6 +679,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateArrayLiteralShallow) {
}
+RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateSymbol) {
Michael Starzinger 2013/02/26 20:41:49 Let's play it safe and add "NoHandleAllocation ha;
rossberg 2013/02/27 13:12:23 Done.
+ ASSERT(args.length() == 0);
+ return isolate->heap()->AllocateSymbol();
+}
+
+
RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateJSProxy) {
ASSERT(args.length() == 2);
CONVERT_ARG_CHECKED(JSReceiver, handler, 0);

Powered by Google App Engine
This is Rietveld 408576698