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

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

Issue 1278413002: [interpreter] Fix nosnap build for interpreter table generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ensure table generated where approprate 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 10 matching lines...) Expand all
21 class InterpreterAssembler; 21 class InterpreterAssembler;
22 } 22 }
23 23
24 namespace interpreter { 24 namespace interpreter {
25 25
26 class Interpreter { 26 class Interpreter {
27 public: 27 public:
28 explicit Interpreter(Isolate* isolate); 28 explicit Interpreter(Isolate* isolate);
29 virtual ~Interpreter() {} 29 virtual ~Interpreter() {}
30 30
31 bool initialized() { return initialized_; }
32
33 // Creates an uninitialized interpreter handler table, where each handler
34 // points to the Illegal builtin.
35 static Handle<FixedArray> CreateUninitializedInterpreterTable(
36 Isolate* isolate);
37
38 // Initializes the interpreter, generating heap objects if
39 // |create_heap_objects| is true.
31 void Initialize(bool create_heap_objects); 40 void Initialize(bool create_heap_objects);
32 41
33 private: 42 private:
34 // Bytecode handler generator functions. 43 // Bytecode handler generator functions.
35 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 44 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
36 void Do##Name(compiler::InterpreterAssembler* assembler); 45 void Do##Name(compiler::InterpreterAssembler* assembler);
37 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 46 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
38 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 47 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
39 48
49 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table);
50
40 Isolate* isolate_; 51 Isolate* isolate_;
52 bool initialized_;
41 53
42 DISALLOW_COPY_AND_ASSIGN(Interpreter); 54 DISALLOW_COPY_AND_ASSIGN(Interpreter);
43 }; 55 };
44 56
45 } // namespace interpreter 57 } // namespace interpreter
46 } // namespace internal 58 } // namespace internal
47 } // namespace v8 59 } // namespace v8
48 60
49 #endif // V8_INTERPRETER_INTERPRETER_H_ 61 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/interpreter/interpreter.cc » ('j') | src/interpreter/interpreter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698