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

Side by Side Diff: src/serialize.cc

Issue 6233: Removed the print, load, quit and version extensions from the VM. Moved the p... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/execution.cc ('k') | test/cctest/test-api.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 for (uint16_t i = 0; i < Top::k_top_address_count; ++i) { 530 for (uint16_t i = 0; i < Top::k_top_address_count; ++i) {
531 Vector<char> name = Vector<char>::New(top_format_length + 1); 531 Vector<char> name = Vector<char>::New(top_format_length + 1);
532 const char* chars = name.start(); 532 const char* chars = name.start();
533 OS::SNPrintF(name, top_address_format, i); 533 OS::SNPrintF(name, top_address_format, i);
534 Add(Top::get_address_from_id((Top::AddressId)i), TOP_ADDRESS, i, chars); 534 Add(Top::get_address_from_id((Top::AddressId)i), TOP_ADDRESS, i, chars);
535 } 535 }
536 536
537 // Extensions 537 // Extensions
538 Add(FUNCTION_ADDR(GCExtension::GC), EXTENSION, 1, 538 Add(FUNCTION_ADDR(GCExtension::GC), EXTENSION, 1,
539 "GCExtension::GC"); 539 "GCExtension::GC");
540 Add(FUNCTION_ADDR(PrintExtension::Print), EXTENSION, 2,
541 "PrintExtension::Print");
542 Add(FUNCTION_ADDR(LoadExtension::Load), EXTENSION, 3,
543 "LoadExtension::Load");
544 Add(FUNCTION_ADDR(QuitExtension::Quit), EXTENSION, 4,
545 "QuitExtension::Quit");
546 540
547 // Accessors 541 // Accessors
548 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \ 542 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
549 Add((Address)&Accessors::name, \ 543 Add((Address)&Accessors::name, \
550 ACCESSOR, \ 544 ACCESSOR, \
551 Accessors::k##name, \ 545 Accessors::k##name, \
552 "Accessors::" #name); 546 "Accessors::" #name);
553 547
554 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION) 548 ACCESSOR_DESCRIPTOR_LIST(ACCESSOR_DESCRIPTOR_DECLARATION)
555 #undef ACCESSOR_DESCRIPTOR_DECLARATION 549 #undef ACCESSOR_DESCRIPTOR_DECLARATION
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1531 ASSERT(index < large_objects_.length()); 1525 ASSERT(index < large_objects_.length());
1532 } 1526 }
1533 return large_objects_[index]; // s.page_offset() is ignored. 1527 return large_objects_[index]; // s.page_offset() is ignored.
1534 } 1528 }
1535 UNREACHABLE(); 1529 UNREACHABLE();
1536 return NULL; 1530 return NULL;
1537 } 1531 }
1538 1532
1539 1533
1540 } } // namespace v8::internal 1534 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698