7 #include <readline/readline.h>
8 #include <readline/history.h>
17 #if RL_READLINE_VERSION >= 0x0500
18 #define completion_matches rl_completion_matches
49 '\\',
'\'',
'`',
'@',
'.',
'>',
'<',
'=',
';',
'|',
'&',
'{',
'(',
65 rl_bind_key(
'\t', rl_insert);
71 rl_bind_key(
'\t', rl_complete);
85 result = readline(prompt);
94 if (strlen(str) == 0)
return;
96 history_set_pos(history_length-1);
97 if (current_history()) {
99 if (strcmp(current_history()->line, str) == 0) {
100 remove_history(where_history());
103 }
while (previous_history());
114 rl_attempted_completion_over =
true;
120 static unsigned current_index;
133 current_completions.
Reset(isolate, completions);
138 if (current_index < completions->Length()) {
145 current_completions.
Reset();
A stack-allocated class that governs a number of local handles.
An object reference managed by the v8 garbage collector.
static Local< Integer > New(Isolate *isolate, int32_t value)
Isolate represents an isolated instance of the V8 engine.
A light-weight stack-allocated object handle.
static Local< T > New(Isolate *isolate, Handle< T > that)
Create a local handle for the content of another handle.
void Reset()
If non-empty, destroy the underlying storage cell IsEmpty() will return true after this call.
A PersistentBase which allows copy and assignment.
static char * CompletionGenerator(const char *text, int state)
static char kWordBreakCharacters[]
static const char * kHistoryFileName
static char ** AttemptedCompletion(const char *text, int start, int end)
virtual Handle< String > Prompt(const char *prompt)
virtual bool Open(Isolate *isolate)
virtual void AddHistory(const char *str)
static const int kMaxHistoryEntries
static Handle< Array > GetCompletions(Isolate *isolate, Handle< String > text, Handle< String > full)
Converts an object to a UTF-8-encoded character array.
static Local< String > NewFromUtf8(Isolate *isolate, const char *data, NewStringType type=kNormalString, int length=-1)
Allocates a new string from UTF-8 data.
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
Debugger support for the V8 JavaScript engine.
static ReadLineEditor read_line_editor