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

Unified Diff: src/d8.h

Issue 1184853003: Remove some unused definitions from d8.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.h
diff --git a/src/d8.h b/src/d8.h
index aac622833194e5815bd3a0424705049a79cefea7..3b06059323c81f1a4f7810d348d07a095790a22b 100644
--- a/src/d8.h
+++ b/src/d8.h
@@ -168,27 +168,6 @@ class SourceGroup {
};
-class BinaryResource : public v8::String::ExternalOneByteStringResource {
- public:
- BinaryResource(const char* string, int length)
- : data_(string),
- length_(length) { }
-
- ~BinaryResource() {
- delete[] data_;
- data_ = NULL;
- length_ = 0;
- }
-
- virtual const char* data() const { return data_; }
- virtual size_t length() const { return length_; }
-
- private:
- const char* data_;
- size_t length_;
-};
-
-
class ShellOptions {
public:
ShellOptions()
@@ -310,20 +289,6 @@ class Shell : public i::AllStatic {
args.GetReturnValue().Set(ReadFromStdin(args.GetIsolate()));
}
static void Load(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void ArrayBuffer(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Int8Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Uint8Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Int16Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Uint16Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Int32Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Uint32Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Float32Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Float64Array(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void Uint8ClampedArray(
- const v8::FunctionCallbackInfo<v8::Value>& args);
- static void ArrayBufferSlice(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void ArraySubArray(const v8::FunctionCallbackInfo<v8::Value>& args);
- static void ArraySet(const v8::FunctionCallbackInfo<v8::Value>& args);
// The OS object on the global object contains methods for performing
// operating system calls:
//
@@ -350,7 +315,6 @@ class Shell : public i::AllStatic {
// with the current umask. Intermediate directories are created if necessary.
// An exception is not thrown if the directory already exists. Analogous to
// the "mkdir -p" command.
- static void OSObject(const v8::FunctionCallbackInfo<v8::Value>& args);
static void System(const v8::FunctionCallbackInfo<v8::Value>& args);
static void ChangeDirectory(const v8::FunctionCallbackInfo<v8::Value>& args);
static void SetEnvironment(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -386,8 +350,6 @@ class Shell : public i::AllStatic {
static void RunShell(Isolate* isolate);
static bool SetOptions(int argc, char* argv[]);
static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
- static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback);
- static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698