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

Side by Side Diff: src/d8.cc

Issue 7851013: Fixing shared library build of d8. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 3 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
« src/api.cc ('K') | « src/api.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 Handle<ObjectTemplate> Shell::CreateGlobalTemplate() { 661 Handle<ObjectTemplate> Shell::CreateGlobalTemplate() {
662 Handle<ObjectTemplate> global_template = ObjectTemplate::New(); 662 Handle<ObjectTemplate> global_template = ObjectTemplate::New();
663 global_template->Set(String::New("print"), FunctionTemplate::New(Print)); 663 global_template->Set(String::New("print"), FunctionTemplate::New(Print));
664 global_template->Set(String::New("write"), FunctionTemplate::New(Write)); 664 global_template->Set(String::New("write"), FunctionTemplate::New(Write));
665 global_template->Set(String::New("read"), FunctionTemplate::New(Read)); 665 global_template->Set(String::New("read"), FunctionTemplate::New(Read));
666 global_template->Set(String::New("readline"), 666 global_template->Set(String::New("readline"),
667 FunctionTemplate::New(ReadLine)); 667 FunctionTemplate::New(ReadLine));
668 global_template->Set(String::New("load"), FunctionTemplate::New(Load)); 668 global_template->Set(String::New("load"), FunctionTemplate::New(Load));
669 global_template->Set(String::New("quit"), FunctionTemplate::New(Quit)); 669 global_template->Set(String::New("quit"), FunctionTemplate::New(Quit));
670 global_template->Set(String::New("version"), FunctionTemplate::New(Version)); 670 global_template->Set(String::New("version"), FunctionTemplate::New(Version));
671 if (i::FLAG_prof) { 671 global_template->Set(String::New("enableProfiler"),
672 global_template->Set(String::New("enableProfiler"), 672 FunctionTemplate::New(EnableProfiler));
673 FunctionTemplate::New(EnableProfiler)); 673 global_template->Set(String::New("disableProfiler"),
674 global_template->Set(String::New("disableProfiler"), 674 FunctionTemplate::New(DisableProfiler));
675 FunctionTemplate::New(DisableProfiler));
676 }
677 675
678 // Bind the handlers for external arrays. 676 // Bind the handlers for external arrays.
679 global_template->Set(String::New("Int8Array"), 677 global_template->Set(String::New("Int8Array"),
680 FunctionTemplate::New(Int8Array)); 678 FunctionTemplate::New(Int8Array));
681 global_template->Set(String::New("Uint8Array"), 679 global_template->Set(String::New("Uint8Array"),
682 FunctionTemplate::New(Uint8Array)); 680 FunctionTemplate::New(Uint8Array));
683 global_template->Set(String::New("Int16Array"), 681 global_template->Set(String::New("Int16Array"),
684 FunctionTemplate::New(Int16Array)); 682 FunctionTemplate::New(Int16Array));
685 global_template->Set(String::New("Uint16Array"), 683 global_template->Set(String::New("Uint16Array"),
686 FunctionTemplate::New(Uint16Array)); 684 FunctionTemplate::New(Uint16Array));
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 } 1314 }
1317 1315
1318 } // namespace v8 1316 } // namespace v8
1319 1317
1320 1318
1321 #ifndef GOOGLE3 1319 #ifndef GOOGLE3
1322 int main(int argc, char* argv[]) { 1320 int main(int argc, char* argv[]) {
1323 return v8::Shell::Main(argc, argv); 1321 return v8::Shell::Main(argc, argv);
1324 } 1322 }
1325 #endif 1323 #endif
OLDNEW
« src/api.cc ('K') | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698