| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 global_template->Set(String::New("Uint32Array"), | 671 global_template->Set(String::New("Uint32Array"), |
| 672 FunctionTemplate::New(Uint32Array)); | 672 FunctionTemplate::New(Uint32Array)); |
| 673 global_template->Set(String::New("Float32Array"), | 673 global_template->Set(String::New("Float32Array"), |
| 674 FunctionTemplate::New(Float32Array)); | 674 FunctionTemplate::New(Float32Array)); |
| 675 global_template->Set(String::New("Float64Array"), | 675 global_template->Set(String::New("Float64Array"), |
| 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"), Boolean::New(true)); | 681 global_template->Set(String::New("lol_is_enabled"), True()); |
| 682 #else | 682 #else |
| 683 global_template->Set(String::New("lol_is_enabled"), Boolean::New(false)); | 683 global_template->Set(String::New("lol_is_enabled"), False()); |
| 684 #endif | 684 #endif |
| 685 | 685 |
| 686 #ifndef V8_SHARED | 686 #ifndef V8_SHARED |
| 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 } |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 } // namespace v8 | 1298 } // namespace v8 |
| 1299 | 1299 |
| 1300 | 1300 |
| 1301 #ifndef GOOGLE3 | 1301 #ifndef GOOGLE3 |
| 1302 int main(int argc, char* argv[]) { | 1302 int main(int argc, char* argv[]) { |
| 1303 return v8::Shell::Main(argc, argv); | 1303 return v8::Shell::Main(argc, argv); |
| 1304 } | 1304 } |
| 1305 #endif | 1305 #endif |
| OLD | NEW |