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

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

Issue 1833643002: [Interpreter] Remove separate Ignition snapshot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add back interpreter initialization to tests 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/base.isolate ('k') | src/isolate.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 #include "src/interpreter/interpreter.h" 5 #include "src/interpreter/interpreter.h"
6 6
7 #include "src/ast/prettyprinter.h" 7 #include "src/ast/prettyprinter.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 10 matching lines...) Expand all
21 21
22 using compiler::Node; 22 using compiler::Node;
23 23
24 #define __ assembler-> 24 #define __ assembler->
25 25
26 Interpreter::Interpreter(Isolate* isolate) : isolate_(isolate) { 26 Interpreter::Interpreter(Isolate* isolate) : isolate_(isolate) {
27 memset(dispatch_table_, 0, sizeof(dispatch_table_)); 27 memset(dispatch_table_, 0, sizeof(dispatch_table_));
28 } 28 }
29 29
30 void Interpreter::Initialize() { 30 void Interpreter::Initialize() {
31 DCHECK(FLAG_ignition);
32 if (IsDispatchTableInitialized()) return; 31 if (IsDispatchTableInitialized()) return;
33 Zone zone(isolate_->allocator()); 32 Zone zone(isolate_->allocator());
34 HandleScope scope(isolate_); 33 HandleScope scope(isolate_);
35 34
36 // Generate bytecode handlers for all bytecodes and scales. 35 // Generate bytecode handlers for all bytecodes and scales.
37 for (OperandScale operand_scale = OperandScale::kSingle; 36 for (OperandScale operand_scale = OperandScale::kSingle;
38 operand_scale <= OperandScale::kMaxValid; 37 operand_scale <= OperandScale::kMaxValid;
39 operand_scale = Bytecodes::NextOperandScale(operand_scale)) { 38 operand_scale = Bytecodes::NextOperandScale(operand_scale)) {
40 #define GENERATE_CODE(Name, ...) \ 39 #define GENERATE_CODE(Name, ...) \
41 { \ 40 { \
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 // Illegal 1613 // Illegal
1615 // 1614 //
1616 // An invalid bytecode aborting execution if dispatched. 1615 // An invalid bytecode aborting execution if dispatched.
1617 void Interpreter::DoIllegal(InterpreterAssembler* assembler) { 1616 void Interpreter::DoIllegal(InterpreterAssembler* assembler) {
1618 __ Abort(kInvalidBytecode); 1617 __ Abort(kInvalidBytecode);
1619 } 1618 }
1620 1619
1621 } // namespace interpreter 1620 } // namespace interpreter
1622 } // namespace internal 1621 } // namespace internal
1623 } // namespace v8 1622 } // namespace v8
OLDNEW
« no previous file with comments | « src/base.isolate ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698