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

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

Issue 1300813005: [Interpreter] Add implementations of arithmetic binary op bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@mstar_v8h
Patch Set: Fix unittest too... 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
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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!
11 #include "src/base/macros.h" 11 #include "src/base/macros.h"
12 #include "src/builtins.h"
12 #include "src/interpreter/bytecodes.h" 13 #include "src/interpreter/bytecodes.h"
13 14
14 namespace v8 { 15 namespace v8 {
15 namespace internal { 16 namespace internal {
16 17
17 class Isolate; 18 class Isolate;
18 class CompilationInfo; 19 class CompilationInfo;
19 20
20 namespace compiler { 21 namespace compiler {
21 class InterpreterAssembler; 22 class InterpreterAssembler;
(...skipping 17 matching lines...) Expand all
39 // Generate bytecode for |info|. 40 // Generate bytecode for |info|.
40 static bool MakeBytecode(CompilationInfo* info); 41 static bool MakeBytecode(CompilationInfo* info);
41 42
42 private: 43 private:
43 // Bytecode handler generator functions. 44 // Bytecode handler generator functions.
44 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 45 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
45 void Do##Name(compiler::InterpreterAssembler* assembler); 46 void Do##Name(compiler::InterpreterAssembler* assembler);
46 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 47 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
47 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 48 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
48 49
50 // Generates code to perform the binary operations via |binop_builtin|.
51 void DoBinaryOp(Builtins::JavaScript binop_builtin,
52 compiler::InterpreterAssembler* assembler);
53
49 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); 54 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table);
50 55
51 Isolate* isolate_; 56 Isolate* isolate_;
52 57
53 DISALLOW_COPY_AND_ASSIGN(Interpreter); 58 DISALLOW_COPY_AND_ASSIGN(Interpreter);
54 }; 59 };
55 60
56 } // namespace interpreter 61 } // namespace interpreter
57 } // namespace internal 62 } // namespace internal
58 } // namespace v8 63 } // namespace v8
59 64
60 #endif // V8_INTERPRETER_INTERPRETER_H_ 65 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698