| 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 return CreateExternalArray( | 900 return CreateExternalArray( |
| 901 args, kExternalDoubleArray, sizeof(double)); // NOLINT | 901 args, kExternalDoubleArray, sizeof(double)); // NOLINT |
| 902 } | 902 } |
| 903 | 903 |
| 904 | 904 |
| 905 Handle<Value> Shell::Uint8ClampedArray(const Arguments& args) { | 905 Handle<Value> Shell::Uint8ClampedArray(const Arguments& args) { |
| 906 return CreateExternalArray(args, kExternalPixelArray, sizeof(uint8_t)); | 906 return CreateExternalArray(args, kExternalPixelArray, sizeof(uint8_t)); |
| 907 } | 907 } |
| 908 | 908 |
| 909 | 909 |
| 910 Handle<Value> Shell::Yield(const Arguments& args) { | |
| 911 v8::Unlocker unlocker(args.GetIsolate()); | |
| 912 return Undefined(args.GetIsolate()); | |
| 913 } | |
| 914 | |
| 915 | |
| 916 Handle<Value> Shell::Quit(const Arguments& args) { | 910 Handle<Value> Shell::Quit(const Arguments& args) { |
| 917 int exit_code = args[0]->Int32Value(); | 911 int exit_code = args[0]->Int32Value(); |
| 918 OnExit(); | 912 OnExit(); |
| 919 exit(exit_code); | 913 exit(exit_code); |
| 920 return Undefined(args.GetIsolate()); | 914 return Undefined(args.GetIsolate()); |
| 921 } | 915 } |
| 922 | 916 |
| 923 | 917 |
| 924 Handle<Value> Shell::Version(const Arguments& args) { | 918 Handle<Value> Shell::Version(const Arguments& args) { |
| 925 return String::New(V8::GetVersion()); | 919 return String::New(V8::GetVersion()); |
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1987 } | 1981 } |
| 1988 | 1982 |
| 1989 } // namespace v8 | 1983 } // namespace v8 |
| 1990 | 1984 |
| 1991 | 1985 |
| 1992 #ifndef GOOGLE3 | 1986 #ifndef GOOGLE3 |
| 1993 int main(int argc, char* argv[]) { | 1987 int main(int argc, char* argv[]) { |
| 1994 return v8::Shell::Main(argc, argv); | 1988 return v8::Shell::Main(argc, argv); |
| 1995 } | 1989 } |
| 1996 #endif | 1990 #endif |
| OLD | NEW |