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

Side by Side Diff: src/d8.cc

Issue 21786002: Fix Mac build after r16022. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 | « no previous file | 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 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after
1589 i::HeapObjectIterator it(heap->map_space()); 1589 i::HeapObjectIterator it(heap->map_space());
1590 printf("KNOWN_MAPS = {\n"); 1590 printf("KNOWN_MAPS = {\n");
1591 for (i::Object* o = it.Next(); o != NULL; o = it.Next()) { 1591 for (i::Object* o = it.Next(); o != NULL; o = it.Next()) {
1592 i::Map* m = i::Map::cast(o); 1592 i::Map* m = i::Map::cast(o);
1593 const char* n = NULL; 1593 const char* n = NULL;
1594 intptr_t p = reinterpret_cast<intptr_t>(m) & 0xfffff; 1594 intptr_t p = reinterpret_cast<intptr_t>(m) & 0xfffff;
1595 int t = m->instance_type(); 1595 int t = m->instance_type();
1596 ROOT_LIST(ROOT_LIST_CASE) 1596 ROOT_LIST(ROOT_LIST_CASE)
1597 STRUCT_LIST(STRUCT_LIST_CASE) 1597 STRUCT_LIST(STRUCT_LIST_CASE)
1598 if (n == NULL) continue; 1598 if (n == NULL) continue;
1599 printf(" 0x%05" V8_PTR_PREFIX "x: (%d, \"%s\"),\n", p, t, n); 1599 printf(" 0x%05" V8PRIxPTR ": (%d, \"%s\"),\n", p, t, n);
1600 } 1600 }
1601 printf("}\n"); 1601 printf("}\n");
1602 #undef STRUCT_LIST_CASE 1602 #undef STRUCT_LIST_CASE
1603 #undef ROOT_LIST_CASE 1603 #undef ROOT_LIST_CASE
1604 1604
1605 // Dump the KNOWN_OBJECTS table to the console. 1605 // Dump the KNOWN_OBJECTS table to the console.
1606 printf("\n# List of known V8 objects.\n"); 1606 printf("\n# List of known V8 objects.\n");
1607 #define ROOT_LIST_CASE(type, name, camel_name) \ 1607 #define ROOT_LIST_CASE(type, name, camel_name) \
1608 if (o == heap->name()) n = #camel_name; 1608 if (o == heap->name()) n = #camel_name;
1609 i::OldSpaces spit(heap); 1609 i::OldSpaces spit(heap);
1610 printf("KNOWN_OBJECTS = {\n"); 1610 printf("KNOWN_OBJECTS = {\n");
1611 for (i::PagedSpace* s = spit.next(); s != NULL; s = spit.next()) { 1611 for (i::PagedSpace* s = spit.next(); s != NULL; s = spit.next()) {
1612 i::HeapObjectIterator it(s); 1612 i::HeapObjectIterator it(s);
1613 const char* sname = AllocationSpaceName(s->identity()); 1613 const char* sname = AllocationSpaceName(s->identity());
1614 for (i::Object* o = it.Next(); o != NULL; o = it.Next()) { 1614 for (i::Object* o = it.Next(); o != NULL; o = it.Next()) {
1615 const char* n = NULL; 1615 const char* n = NULL;
1616 intptr_t p = reinterpret_cast<intptr_t>(o) & 0xfffff; 1616 intptr_t p = reinterpret_cast<intptr_t>(o) & 0xfffff;
1617 ROOT_LIST(ROOT_LIST_CASE) 1617 ROOT_LIST(ROOT_LIST_CASE)
1618 if (n == NULL) continue; 1618 if (n == NULL) continue;
1619 printf(" (\"%s\", 0x%05" V8_PTR_PREFIX "x): \"%s\",\n", sname, p, n); 1619 printf(" (\"%s\", 0x%05" V8PRIxPTR "): \"%s\",\n", sname, p, n);
1620 } 1620 }
1621 } 1621 }
1622 printf("}\n"); 1622 printf("}\n");
1623 #undef ROOT_LIST_CASE 1623 #undef ROOT_LIST_CASE
1624 } 1624 }
1625 #endif // V8_SHARED 1625 #endif // V8_SHARED
1626 1626
1627 1627
1628 class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator { 1628 class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
1629 public: 1629 public:
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 } 1726 }
1727 1727
1728 } // namespace v8 1728 } // namespace v8
1729 1729
1730 1730
1731 #ifndef GOOGLE3 1731 #ifndef GOOGLE3
1732 int main(int argc, char* argv[]) { 1732 int main(int argc, char* argv[]) {
1733 return v8::Shell::Main(argc, argv); 1733 return v8::Shell::Main(argc, argv);
1734 } 1734 }
1735 #endif 1735 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698