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

Side by Side Diff: src/runtime.cc

Issue 257633002: HashTable::New() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-dictionary.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 CONVERT_ARG_HANDLE_CHECKED(JSMapIterator, holder, 0); 1725 CONVERT_ARG_HANDLE_CHECKED(JSMapIterator, holder, 0);
1726 holder->Close(); 1726 holder->Close();
1727 return isolate->heap()->undefined_value(); 1727 return isolate->heap()->undefined_value();
1728 } 1728 }
1729 1729
1730 1730
1731 static Handle<JSWeakCollection> WeakCollectionInitialize( 1731 static Handle<JSWeakCollection> WeakCollectionInitialize(
1732 Isolate* isolate, 1732 Isolate* isolate,
1733 Handle<JSWeakCollection> weak_collection) { 1733 Handle<JSWeakCollection> weak_collection) {
1734 ASSERT(weak_collection->map()->inobject_properties() == 0); 1734 ASSERT(weak_collection->map()->inobject_properties() == 0);
1735 Handle<ObjectHashTable> table = isolate->factory()->NewObjectHashTable(0); 1735 Handle<ObjectHashTable> table = ObjectHashTable::New(isolate, 0);
1736 weak_collection->set_table(*table); 1736 weak_collection->set_table(*table);
1737 weak_collection->set_next(Smi::FromInt(0)); 1737 weak_collection->set_next(Smi::FromInt(0));
1738 return weak_collection; 1738 return weak_collection;
1739 } 1739 }
1740 1740
1741 1741
1742 RUNTIME_FUNCTION(Runtime_WeakCollectionInitialize) { 1742 RUNTIME_FUNCTION(Runtime_WeakCollectionInitialize) {
1743 HandleScope scope(isolate); 1743 HandleScope scope(isolate);
1744 ASSERT(args.length() == 1); 1744 ASSERT(args.length() == 1);
1745 CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0); 1745 CONVERT_ARG_HANDLE_CHECKED(JSWeakCollection, weak_collection, 0);
(...skipping 13399 matching lines...) Expand 10 before | Expand all | Expand 10 after
15145 } 15145 }
15146 return NULL; 15146 return NULL;
15147 } 15147 }
15148 15148
15149 15149
15150 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15150 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15151 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15151 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15152 } 15152 }
15153 15153
15154 } } // namespace v8::internal 15154 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-dictionary.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698