OLD | NEW |
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 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 CreateArrayTemplate(Int32Array), attr); | 1228 CreateArrayTemplate(Int32Array), attr); |
1229 global_template->Set(String::New("Uint32Array"), | 1229 global_template->Set(String::New("Uint32Array"), |
1230 CreateArrayTemplate(Uint32Array), attr); | 1230 CreateArrayTemplate(Uint32Array), attr); |
1231 global_template->Set(String::New("Float32Array"), | 1231 global_template->Set(String::New("Float32Array"), |
1232 CreateArrayTemplate(Float32Array), attr); | 1232 CreateArrayTemplate(Float32Array), attr); |
1233 global_template->Set(String::New("Float64Array"), | 1233 global_template->Set(String::New("Float64Array"), |
1234 CreateArrayTemplate(Float64Array), attr); | 1234 CreateArrayTemplate(Float64Array), attr); |
1235 global_template->Set(String::New("Uint8ClampedArray"), | 1235 global_template->Set(String::New("Uint8ClampedArray"), |
1236 CreateArrayTemplate(Uint8ClampedArray), attr); | 1236 CreateArrayTemplate(Uint8ClampedArray), attr); |
1237 | 1237 |
1238 #ifdef LIVE_OBJECT_LIST | |
1239 global_template->Set(String::New("lol_is_enabled"), True()); | |
1240 #else | |
1241 global_template->Set(String::New("lol_is_enabled"), False()); | |
1242 #endif | |
1243 | |
1244 #if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64) | 1238 #if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64) |
1245 Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); | 1239 Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); |
1246 AddOSMethods(os_templ); | 1240 AddOSMethods(os_templ); |
1247 global_template->Set(String::New("os"), os_templ); | 1241 global_template->Set(String::New("os"), os_templ); |
1248 #endif // V8_SHARED | 1242 #endif // V8_SHARED |
1249 | 1243 |
1250 return global_template; | 1244 return global_template; |
1251 } | 1245 } |
1252 | 1246 |
1253 | 1247 |
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 } | 1961 } |
1968 | 1962 |
1969 } // namespace v8 | 1963 } // namespace v8 |
1970 | 1964 |
1971 | 1965 |
1972 #ifndef GOOGLE3 | 1966 #ifndef GOOGLE3 |
1973 int main(int argc, char* argv[]) { | 1967 int main(int argc, char* argv[]) { |
1974 return v8::Shell::Main(argc, argv); | 1968 return v8::Shell::Main(argc, argv); |
1975 } | 1969 } |
1976 #endif | 1970 #endif |
OLD | NEW |