OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |