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

Side by Side Diff: src/runtime.cc

Issue 260313003: OrderedHashTable::FindEntry() handlified. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 return isolate->heap()->undefined_value(); 1524 return isolate->heap()->undefined_value();
1525 } 1525 }
1526 1526
1527 1527
1528 RUNTIME_FUNCTION(Runtime_SetHas) { 1528 RUNTIME_FUNCTION(Runtime_SetHas) {
1529 HandleScope scope(isolate); 1529 HandleScope scope(isolate);
1530 ASSERT(args.length() == 2); 1530 ASSERT(args.length() == 2);
1531 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1531 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1532 CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); 1532 CONVERT_ARG_HANDLE_CHECKED(Object, key, 1);
1533 Handle<OrderedHashSet> table(OrderedHashSet::cast(holder->table())); 1533 Handle<OrderedHashSet> table(OrderedHashSet::cast(holder->table()));
1534 return isolate->heap()->ToBoolean(table->Contains(*key)); 1534 return isolate->heap()->ToBoolean(table->Contains(key));
1535 } 1535 }
1536 1536
1537 1537
1538 RUNTIME_FUNCTION(Runtime_SetDelete) { 1538 RUNTIME_FUNCTION(Runtime_SetDelete) {
1539 HandleScope scope(isolate); 1539 HandleScope scope(isolate);
1540 ASSERT(args.length() == 2); 1540 ASSERT(args.length() == 2);
1541 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1541 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1542 CONVERT_ARG_HANDLE_CHECKED(Object, key, 1); 1542 CONVERT_ARG_HANDLE_CHECKED(Object, key, 1);
1543 Handle<OrderedHashSet> table(OrderedHashSet::cast(holder->table())); 1543 Handle<OrderedHashSet> table(OrderedHashSet::cast(holder->table()));
1544 table = OrderedHashSet::Remove(table, key); 1544 table = OrderedHashSet::Remove(table, key);
(...skipping 13592 matching lines...) Expand 10 before | Expand all | Expand 10 after
15137 } 15137 }
15138 return NULL; 15138 return NULL;
15139 } 15139 }
15140 15140
15141 15141
15142 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15142 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15143 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15143 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15144 } 15144 }
15145 15145
15146 } } // namespace v8::internal 15146 } } // 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