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

Unified Diff: src/objects.cc

Issue 11190044: dom-query.html spends ~10% of total time in OSAtomicAdd32Barrier on my Mac (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index 17351755714cb80ed076b491010f09b6793ee1e3..33afc3f804433bad658b19fca48037d3d2714fd9 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -708,7 +708,8 @@ MaybeObject* Object::GetElementWithReceiver(Object* receiver, uint32_t index) {
}
if (js_object->HasIndexedInterceptor()) {
- return js_object->GetElementWithInterceptor(receiver, index);
+ return js_object->GetElementWithInterceptor(
+ receiver, index, heap->isolate());
}
if (js_object->elements() != heap->empty_fixed_array()) {
@@ -10179,8 +10180,8 @@ MaybeObject* JSArray::JSArrayUpdateLengthFromIndex(uint32_t index,
MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver,
- uint32_t index) {
- Isolate* isolate = GetIsolate();
+ uint32_t index,
+ Isolate* isolate) {
// Make sure that the top context does not change when doing
// callbacks or interceptor calls.
AssertNoContextChange ncc;
« no previous file with comments | « src/objects.h ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698