Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 676 FunctionTemplate::New(Float64Array)); | 676 FunctionTemplate::New(Float64Array)); |
| 677 global_template->Set(String::New("PixelArray"), | 677 global_template->Set(String::New("PixelArray"), |
| 678 FunctionTemplate::New(PixelArray)); | 678 FunctionTemplate::New(PixelArray)); |
| 679 | 679 |
| 680 #ifdef LIVE_OBJECT_LIST | 680 #ifdef LIVE_OBJECT_LIST |
| 681 global_template->Set(String::New("lol_is_enabled"), True()); | 681 global_template->Set(String::New("lol_is_enabled"), True()); |
| 682 #else | 682 #else |
| 683 global_template->Set(String::New("lol_is_enabled"), False()); | 683 global_template->Set(String::New("lol_is_enabled"), False()); |
| 684 #endif | 684 #endif |
| 685 | 685 |
| 686 #ifndef V8_SHARED | 686 #if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64) |
|
Yang
2011/09/06 14:37:51
There is no windows implementation of the os objec
| |
| 687 Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); | 687 Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); |
| 688 AddOSMethods(os_templ); | 688 AddOSMethods(os_templ); |
| 689 global_template->Set(String::New("os"), os_templ); | 689 global_template->Set(String::New("os"), os_templ); |
| 690 #endif // V8_SHARED | 690 #endif // V8_SHARED |
| 691 | 691 |
| 692 return global_template; | 692 return global_template; |
| 693 } | 693 } |
| 694 | 694 |
| 695 | 695 |
| 696 void Shell::Initialize() { | 696 void Shell::Initialize() { |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 } // namespace v8 | 1300 } // namespace v8 |
| 1301 | 1301 |
| 1302 | 1302 |
| 1303 #ifndef GOOGLE3 | 1303 #ifndef GOOGLE3 |
| 1304 int main(int argc, char* argv[]) { | 1304 int main(int argc, char* argv[]) { |
| 1305 return v8::Shell::Main(argc, argv); | 1305 return v8::Shell::Main(argc, argv); |
| 1306 } | 1306 } |
| 1307 #endif | 1307 #endif |
| OLD | NEW |