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

Side by Side Diff: src/profile-generator.cc

Issue 2866008: [Isolates] Move contents of Top into Isolate.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: ensure we're synced Created 10 years, 6 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/platform-linux.cc ('k') | src/regexp-macro-assembler.cc » ('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 12 matching lines...) Expand all
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifdef ENABLE_LOGGING_AND_PROFILING 28 #ifdef ENABLE_LOGGING_AND_PROFILING
29 29
30 #include "v8.h" 30 #include "v8.h"
31 #include "global-handles.h" 31 #include "global-handles.h"
32 #include "scopeinfo.h" 32 #include "scopeinfo.h"
33 #include "top.h"
34 #include "zone-inl.h" 33 #include "zone-inl.h"
35 34
36 #include "profile-generator-inl.h" 35 #include "profile-generator-inl.h"
37 36
38 namespace v8 { 37 namespace v8 {
39 namespace internal { 38 namespace internal {
40 39
41 40
42 TokenEnumerator::TokenEnumerator() 41 TokenEnumerator::TokenEnumerator()
43 : token_locations_(4), 42 : token_locations_(4),
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 } // namespace 1382 } // namespace
1384 1383
1385 void HeapSnapshot::CutObjectsFromForeignSecurityContexts() { 1384 void HeapSnapshot::CutObjectsFromForeignSecurityContexts() {
1386 EdgesCutter cutter(GetGlobalSecurityToken()); 1385 EdgesCutter cutter(GetGlobalSecurityToken());
1387 entries_.Apply(&cutter); 1386 entries_.Apply(&cutter);
1388 } 1387 }
1389 1388
1390 1389
1391 int HeapSnapshot::GetGlobalSecurityToken() { 1390 int HeapSnapshot::GetGlobalSecurityToken() {
1392 return collection_->token_enumerator()->GetTokenId( 1391 return collection_->token_enumerator()->GetTokenId(
1393 Top::context()->global()->global_context()->security_token()); 1392 Isolate::Current()->context()->global()->global_context()->
1393 security_token());
1394 } 1394 }
1395 1395
1396 1396
1397 int HeapSnapshot::GetObjectSize(HeapObject* obj) { 1397 int HeapSnapshot::GetObjectSize(HeapObject* obj) {
1398 return obj->IsJSObject() ? 1398 return obj->IsJSObject() ?
1399 CalculateNetworkSize(JSObject::cast(obj)) : obj->Size(); 1399 CalculateNetworkSize(JSObject::cast(obj)) : obj->Size();
1400 } 1400 }
1401 1401
1402 1402
1403 int HeapSnapshot::GetObjectSecurityToken(HeapObject* obj) { 1403 int HeapSnapshot::GetObjectSecurityToken(HeapObject* obj) {
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 uint32_t index = static_cast<uint32_t>(k->Number()); 1605 uint32_t index = static_cast<uint32_t>(k->Number());
1606 snapshot_->SetElementReference(entry, index, dictionary->ValueAt(i)); 1606 snapshot_->SetElementReference(entry, index, dictionary->ValueAt(i));
1607 } 1607 }
1608 } 1608 }
1609 } 1609 }
1610 } 1610 }
1611 1611
1612 } } // namespace v8::internal 1612 } } // namespace v8::internal
1613 1613
1614 #endif // ENABLE_LOGGING_AND_PROFILING 1614 #endif // ENABLE_LOGGING_AND_PROFILING
OLDNEW
« no previous file with comments | « src/platform-linux.cc ('k') | src/regexp-macro-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698