Home | History | Annotate | Download | only in src

Lines Matching refs:New

228     return ThrowException(String::New("Error loading file"));
232 return ThrowException(String::New("Error loading file"));
241 Handle<String> accumulator = String::New("");
257 accumulator = String::Concat(accumulator, String::New(buffer, length));
260 accumulator = String::Concat(accumulator, String::New(buffer, length-1));
262 return String::Concat(accumulator, String::New(buffer, length-1));
273 return ThrowException(String::New("Error loading file"));
277 return ThrowException(String::New("Error loading file"));
279 if (!ExecuteString(source, String::New(*file), false, true)) {
280 return ThrowException(String::New("Error executing file"));
302 ThrowException(String::New("Array length must not be negative."));
312 String::New("Array length exceeds maximum length."));
335 String::New("Array constructor must have at least one "
341 String::New(kArrayBufferMarkerPropName))->IsTrue();
349 String::New("Array constructor from ArrayBuffer must "
355 ? args[0]->ToObject()->Get(String::New("length"))
364 Handle<Object> array = Object::New();
370 derived_from->Get(String::New("length")),
376 String::New("ArrayBuffer doesn't have data"));
387 String::New("offset must be multiple of element_size"));
393 String::New("byteOffset must be less than ArrayBuffer length."));
406 String::New("ArrayBuffer length minus the byteOffset must be a "
416 String::New("length references an area beyond the end of the "
421 array->Set(String::New(kArrayBufferReferencePropName), args[0], ReadOnly);
425 array->Set(String::New(kArrayBufferMarkerPropName), True(), ReadOnly);
428 Persistent<Object> persistent_array = Persistent<Object>::New(array);
434 return ThrowException(String::New("Memory allocation failed."));
441 array->Set(String::New("length"),
442 Int32::New(static_cast<int32_t>(length)), ReadOnly);
443 array->Set(String::New("BYTES_PER_ELEMENT"),
444 Int32::New(static_cast<int32_t>(element_size)));
451 Handle<String> prop_name = String::New(kArrayBufferReferencePropName);
531 return String::New(V8::GetVersion());
586 Handle<Value> fun = global->Get(String::New("GetCompletions"));
598 Handle<Value> fun = global->Get(String::New("DebugMessageDetails"));
609 Handle<Value> fun = global->Get(String::New("DebugCommandToJSONRequest"));
740 utility_context_->Global()->Set(String::New("$debug"),
751 Handle<String> source = String::New(shell_source.start(),
753 Handle<String> name = String::New(shell_source_name.start(),
805 Handle<ObjectTemplate> global_template = ObjectTemplate::New();
806 global_template->Set(String::New("print"), FunctionTemplate::New(Print));
807 global_template->Set(String::New("write"), FunctionTemplate::New(Write));
808 global_template->Set(String::New("read"), FunctionTemplate::New(Read));
809 global_template->Set(String::New("readbinary"),
810 FunctionTemplate::New(ReadBinary));
811 global_template->Set(String::New("readline"),
812 FunctionTemplate::New(ReadLine));
813 global_template->Set(String::New("load"), FunctionTemplate::New(Load));
814 global_template->Set(String::New("quit"), FunctionTemplate::New(Quit));
815 global_template->Set(String::New("version"), FunctionTemplate::New(Version));
816 global_template->Set(String::New("enableProfiler"),
817 FunctionTemplate::New(EnableProfiler));
818 global_template->Set(String::New("disableProfiler"),
819 FunctionTemplate::New(DisableProfiler));
822 global_template->Set(String::New("ArrayBuffer"),
823 FunctionTemplate::New(ArrayBuffer));
824 global_template->Set(String::New("Int8Array"),
825 FunctionTemplate::New(Int8Array));
826 global_template->Set(String::New("Uint8Array"),
827 FunctionTemplate::New(Uint8Array));
828 global_template->Set(String::New("Int16Array"),
829 FunctionTemplate::New(Int16Array));
830 global_template->Set(String::New("Uint16Array"),
831 FunctionTemplate::New(Uint16Array));
832 global_template->Set(String::New("Int32Array"),
833 FunctionTemplate::New(Int32Array));
834 global_template->Set(String::New("Uint32Array"),
835 FunctionTemplate::New(Uint32Array));
836 global_template->Set(String::New("Float32Array"),
837 FunctionTemplate::New(Float32Array));
838 global_template->Set(String::New("Float64Array"),
839 FunctionTemplate::New(Float64Array));
840 global_template->Set(String::New("PixelArray"),
841 FunctionTemplate::New(PixelArray));
844 global_template->Set(String::New("lol_is_enabled"), True());
846 global_template->Set(String::New("lol_is_enabled"), False());
850 Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
852 global_template->Set(String::New("os"), os_templ);
870 Shell::counter_map_ = new CounterMap();
886 utility_context_ = Context::New(NULL, global_template);
906 Persistent<Context> context = Context::New(NULL, global_template);
921 context->Global()->Set(String::New("arguments"),
957 CounterAndKey* counters = new CounterAndKey[number_of_counters];
1017 char* chars = new char[size + 1];
1033 return ThrowException(String::New("Error loading file"));
1037 return ThrowException(String::New("Error reading file"));
1041 BinaryResource* resource = new BinaryResource(chars, size);
1074 Handle<String> result = String::New(chars);
1084 Handle<String> name = String::New("(d8)");
1151 Shell::ExecuteString(str, String::New(filename), false, false);
1179 Handle<String> file_name = String::New("unnamed");
1180 Handle<String> source = String::New(argv_[i + 1]);
1190 Handle<String> file_name = String::New(arg);
1208 Handle<String> result = String::New(chars, size);
1225 Isolate* isolate = Isolate::New();
1247 thread_ = new IsolateThread(this);
1351 options.parallel_files = new char*[options.num_parallel_files];
1376 options.isolate_sources = new SourceGroup[options.num_isolates];
1409 ShellThread* thread = new ShellThread(threads.length(), files);