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

Side by Side Diff: src/objects.cc

Issue 6816038: Do not rely on uniquiness of pthread_t Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Win32 build fix Created 9 years, 8 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/isolate.cc ('k') | src/platform.h » ('j') | 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 7617 matching lines...) Expand 10 before | Expand all | Expand 10 after
7628 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver, 7628 MaybeObject* JSObject::GetElementWithInterceptor(Object* receiver,
7629 uint32_t index) { 7629 uint32_t index) {
7630 Isolate* isolate = GetIsolate(); 7630 Isolate* isolate = GetIsolate();
7631 // Make sure that the top context does not change when doing 7631 // Make sure that the top context does not change when doing
7632 // callbacks or interceptor calls. 7632 // callbacks or interceptor calls.
7633 AssertNoContextChange ncc; 7633 AssertNoContextChange ncc;
7634 HandleScope scope(isolate); 7634 HandleScope scope(isolate);
7635 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor(), isolate); 7635 Handle<InterceptorInfo> interceptor(GetIndexedInterceptor(), isolate);
7636 Handle<Object> this_handle(receiver, isolate); 7636 Handle<Object> this_handle(receiver, isolate);
7637 Handle<JSObject> holder_handle(this, isolate); 7637 Handle<JSObject> holder_handle(this, isolate);
7638
7639 if (!interceptor->getter()->IsUndefined()) { 7638 if (!interceptor->getter()->IsUndefined()) {
7640 v8::IndexedPropertyGetter getter = 7639 v8::IndexedPropertyGetter getter =
7641 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); 7640 v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter());
7642 LOG(isolate, 7641 LOG(isolate,
7643 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index)); 7642 ApiIndexedPropertyAccess("interceptor-indexed-get", this, index));
7644 CustomArguments args(isolate, interceptor->data(), receiver, this); 7643 CustomArguments args(isolate, interceptor->data(), receiver, this);
7645 v8::AccessorInfo info(args.end()); 7644 v8::AccessorInfo info(args.end());
7646 v8::Handle<v8::Value> result; 7645 v8::Handle<v8::Value> result;
7647 { 7646 {
7648 // Leaving JavaScript. 7647 // Leaving JavaScript.
(...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after
10302 if (break_point_objects()->IsUndefined()) return 0; 10301 if (break_point_objects()->IsUndefined()) return 0;
10303 // Single beak point. 10302 // Single beak point.
10304 if (!break_point_objects()->IsFixedArray()) return 1; 10303 if (!break_point_objects()->IsFixedArray()) return 1;
10305 // Multiple break points. 10304 // Multiple break points.
10306 return FixedArray::cast(break_point_objects())->length(); 10305 return FixedArray::cast(break_point_objects())->length();
10307 } 10306 }
10308 #endif 10307 #endif
10309 10308
10310 10309
10311 } } // namespace v8::internal 10310 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698