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 48913008: Remove calls to JSObject::SetLocalPropertyIgnoreAttributesTrampoline within objects.cc (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: moar Created 7 years, 1 month 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
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 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1406 return *holder; 1406 return *holder;
1407 } 1407 }
1408 1408
1409 1409
1410 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAdd) { 1410 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetAdd) {
1411 HandleScope scope(isolate); 1411 HandleScope scope(isolate);
1412 ASSERT(args.length() == 2); 1412 ASSERT(args.length() == 2);
1413 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1413 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1414 Handle<Object> key(args[1], isolate); 1414 Handle<Object> key(args[1], isolate);
1415 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table())); 1415 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table()));
1416 table = ObjectHashSetAdd(table, key); 1416 table = ObjectHashSet::Add(table, key);
1417 holder->set_table(*table); 1417 holder->set_table(*table);
1418 return isolate->heap()->undefined_value(); 1418 return isolate->heap()->undefined_value();
1419 } 1419 }
1420 1420
1421 1421
1422 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHas) { 1422 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetHas) {
1423 HandleScope scope(isolate); 1423 HandleScope scope(isolate);
1424 ASSERT(args.length() == 2); 1424 ASSERT(args.length() == 2);
1425 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1425 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1426 Handle<Object> key(args[1], isolate); 1426 Handle<Object> key(args[1], isolate);
1427 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table())); 1427 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table()));
1428 return isolate->heap()->ToBoolean(table->Contains(*key)); 1428 return isolate->heap()->ToBoolean(ObjectHashSet::Contains(table, key));
1429 } 1429 }
1430 1430
1431 1431
1432 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDelete) { 1432 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetDelete) {
1433 HandleScope scope(isolate); 1433 HandleScope scope(isolate);
1434 ASSERT(args.length() == 2); 1434 ASSERT(args.length() == 2);
1435 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1435 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1436 Handle<Object> key(args[1], isolate); 1436 Handle<Object> key(args[1], isolate);
1437 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table())); 1437 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table()));
1438 table = ObjectHashSetRemove(table, key); 1438 table = ObjectHashSet::Remove(table, key);
1439 holder->set_table(*table); 1439 holder->set_table(*table);
1440 return isolate->heap()->undefined_value(); 1440 return isolate->heap()->undefined_value();
1441 } 1441 }
1442 1442
1443 1443
1444 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetGetSize) { 1444 RUNTIME_FUNCTION(MaybeObject*, Runtime_SetGetSize) {
1445 HandleScope scope(isolate); 1445 HandleScope scope(isolate);
1446 ASSERT(args.length() == 1); 1446 ASSERT(args.length() == 1);
1447 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0); 1447 CONVERT_ARG_HANDLE_CHECKED(JSSet, holder, 0);
1448 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table())); 1448 Handle<ObjectHashSet> table(ObjectHashSet::cast(holder->table()));
(...skipping 13417 matching lines...) Expand 10 before | Expand all | Expand 10 after
14866 // Handle last resort GC and make sure to allow future allocations 14866 // Handle last resort GC and make sure to allow future allocations
14867 // to grow the heap without causing GCs (if possible). 14867 // to grow the heap without causing GCs (if possible).
14868 isolate->counters()->gc_last_resort_from_js()->Increment(); 14868 isolate->counters()->gc_last_resort_from_js()->Increment();
14869 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14869 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14870 "Runtime::PerformGC"); 14870 "Runtime::PerformGC");
14871 } 14871 }
14872 } 14872 }
14873 14873
14874 14874
14875 } } // namespace v8::internal 14875 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698