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

Side by Side Diff: src/runtime.cc

Issue 170253002: Revert r19409: "Allow ICs to be generated for own global proxy." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | 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 14631 matching lines...) Expand 10 before | Expand all | Expand 10 after
14642 } 14642 }
14643 return object; 14643 return object;
14644 } 14644 }
14645 14645
14646 14646
14647 RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessAllowedForObserver) { 14647 RUNTIME_FUNCTION(MaybeObject*, Runtime_IsAccessAllowedForObserver) {
14648 HandleScope scope(isolate); 14648 HandleScope scope(isolate);
14649 ASSERT(args.length() == 3); 14649 ASSERT(args.length() == 3);
14650 CONVERT_ARG_HANDLE_CHECKED(JSFunction, observer, 0); 14650 CONVERT_ARG_HANDLE_CHECKED(JSFunction, observer, 0);
14651 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 1); 14651 CONVERT_ARG_HANDLE_CHECKED(JSObject, object, 1);
14652 ASSERT(object->map()->is_access_check_needed()); 14652 ASSERT(object->IsAccessCheckNeeded());
14653 Handle<Object> key = args.at<Object>(2); 14653 Handle<Object> key = args.at<Object>(2);
14654 SaveContext save(isolate); 14654 SaveContext save(isolate);
14655 isolate->set_context(observer->context()); 14655 isolate->set_context(observer->context());
14656 if (!isolate->MayNamedAccess(*object, isolate->heap()->undefined_value(), 14656 if (!isolate->MayNamedAccess(*object, isolate->heap()->undefined_value(),
14657 v8::ACCESS_KEYS)) { 14657 v8::ACCESS_KEYS)) {
14658 return isolate->heap()->false_value(); 14658 return isolate->heap()->false_value();
14659 } 14659 }
14660 bool access_allowed = false; 14660 bool access_allowed = false;
14661 uint32_t index = 0; 14661 uint32_t index = 0;
14662 if (key->ToArrayIndex(&index) || 14662 if (key->ToArrayIndex(&index) ||
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
14879 // Handle last resort GC and make sure to allow future allocations 14879 // Handle last resort GC and make sure to allow future allocations
14880 // to grow the heap without causing GCs (if possible). 14880 // to grow the heap without causing GCs (if possible).
14881 isolate->counters()->gc_last_resort_from_js()->Increment(); 14881 isolate->counters()->gc_last_resort_from_js()->Increment();
14882 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14882 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14883 "Runtime::PerformGC"); 14883 "Runtime::PerformGC");
14884 } 14884 }
14885 } 14885 }
14886 14886
14887 14887
14888 } } // namespace v8::internal 14888 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698