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

Side by Side Diff: src/objects.cc

Issue 6745029: Removing more TLS fetches (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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/log.cc ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 7558 matching lines...) Expand 10 before | Expand all | Expand 10 after
7569 7569
7570 7570
7571 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver, 7571 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver,
7572 uint32_t index) { 7572 uint32_t index) {
7573 Isolate* isolate = GetIsolate(); 7573 Isolate* isolate = GetIsolate();
7574 // Make sure that the top context does not change when doing 7574 // Make sure that the top context does not change when doing
7575 // callbacks or interceptor calls. 7575 // callbacks or interceptor calls.
7576 AssertNoContextChange ncc; 7576 AssertNoContextChange ncc;
7577 HandleScope scope(isolate); 7577 HandleScope scope(isolate);
7578 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor()); 7578 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor());
7579 Handle<Object> this_handle(receiver); 7579 Handle<Object> this_handle(receiver, isolate);
7580 Handle<JSObject> holder_handle(this); 7580 Handle<JSObject> holder_handle(this);
7581 7581
7582 if (!interceptor->getter()->IsUndefined()) { 7582 if (!interceptor->getter()->IsUndefined()) {
7583 v8::IndexedPropertyGetter getter = 7583 v8::IndexedPropertyGetter getter =
7584 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); 7584 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter());
7585 LOG(isolate, 7585 LOG(isolate,
7586 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index)); 7586 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index));
7587 CustomArguments args(isolate, interceptor->data(), receiver, this); 7587 CustomArguments args(isolate, interceptor->data(), receiver, this);
7588 v8::AccessorInfo info(args.end()); 7588 v8::AccessorInfo info(args.end());
7589 v8::Handle<v8::Value> result; 7589 v8::Handle<v8::Value> result;
(...skipping 2656 matching lines...) Expand 10 before | Expand all | Expand 10 after
10246 if (break_point_objects()->IsUndefined()) return 0; 10246 if (break_point_objects()->IsUndefined()) return 0;
10247 // Single beak point. 10247 // Single beak point.
10248 if (!break_point_objects()->IsFixedArray()) return 1; 10248 if (!break_point_objects()->IsFixedArray()) return 1;
10249 // Multiple break points. 10249 // Multiple break points.
10250 return FixedArray::cast(break_point_objects())->length(); 10250 return FixedArray::cast(break_point_objects())->length();
10251 } 10251 }
10252 #endif 10252 #endif
10253 10253
10254 10254
10255 } } // namespace v8::internal 10255 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698