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

Side by Side Diff: src/interpreter/interpreter.h

Issue 1294543002: [Interpreter] Minimal bytecode generator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth-register-conversion
Patch Set: Incorporate comments on patch set 1 and add a simple test. Created 5 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_INTERPRETER_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_H_
6 #define V8_INTERPRETER_INTERPRETER_H_ 6 #define V8_INTERPRETER_INTERPRETER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of interpreter internals. 8 // Clients of this interface shouldn't depend on lots of interpreter internals.
9 // Do not include anything from src/interpreter other than 9 // Do not include anything from src/interpreter other than
10 // src/interpreter/bytecodes.h here! 10 // src/interpreter/bytecodes.h here!
(...skipping 18 matching lines...) Expand all
29 virtual ~Interpreter() {} 29 virtual ~Interpreter() {}
30 30
31 // Creates an uninitialized interpreter handler table, where each handler 31 // Creates an uninitialized interpreter handler table, where each handler
32 // points to the Illegal builtin. 32 // points to the Illegal builtin.
33 static Handle<FixedArray> CreateUninitializedInterpreterTable( 33 static Handle<FixedArray> CreateUninitializedInterpreterTable(
34 Isolate* isolate); 34 Isolate* isolate);
35 35
36 // Initializes the interpreter. 36 // Initializes the interpreter.
37 void Initialize(); 37 void Initialize();
38 38
39 // Generate bytecode for |info|.
40 static bool MakeBytecode(CompilationInfo* info);
41
39 private: 42 private:
40 // Bytecode handler generator functions. 43 // Bytecode handler generator functions.
41 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 44 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
42 void Do##Name(compiler::InterpreterAssembler* assembler); 45 void Do##Name(compiler::InterpreterAssembler* assembler);
43 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 46 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
44 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 47 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
45 48
46 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); 49 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table);
47 50
48 Isolate* isolate_; 51 Isolate* isolate_;
49 52
50 DISALLOW_COPY_AND_ASSIGN(Interpreter); 53 DISALLOW_COPY_AND_ASSIGN(Interpreter);
51 }; 54 };
52 55
53 } // namespace interpreter 56 } // namespace interpreter
54 } // namespace internal 57 } // namespace internal
55 } // namespace v8 58 } // namespace v8
56 59
57 #endif // V8_INTERPRETER_INTERPRETER_H_ 60 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698