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

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

Issue 1882073002: [Interpreter] Make dispatch table point to code entry instead of code objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix visiting dispatch table. Created 4 years, 8 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/ia32/builtins-ia32.cc ('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!
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // Get dispatch table index of bytecode. 139 // Get dispatch table index of bytecode.
140 static size_t GetDispatchTableIndex(Bytecode bytecode, 140 static size_t GetDispatchTableIndex(Bytecode bytecode,
141 OperandScale operand_scale); 141 OperandScale operand_scale);
142 142
143 bool IsDispatchTableInitialized(); 143 bool IsDispatchTableInitialized();
144 144
145 static const int kNumberOfWideVariants = 3; 145 static const int kNumberOfWideVariants = 3;
146 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1); 146 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1);
147 147
148 Isolate* isolate_; 148 Isolate* isolate_;
149 Code* dispatch_table_[kDispatchTableSize]; 149 Address dispatch_table_[kDispatchTableSize];
150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; 150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(Interpreter); 152 DISALLOW_COPY_AND_ASSIGN(Interpreter);
153 }; 153 };
154 154
155 } // namespace interpreter 155 } // namespace interpreter
156 } // namespace internal 156 } // namespace internal
157 } // namespace v8 157 } // namespace v8
158 158
159 #endif // V8_INTERPRETER_INTERPRETER_H_ 159 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698