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

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

Issue 1419003002: [Interpreter] Unify global and unallocated variable access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix unallocated variable error Created 5 years, 1 month 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!
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 // Generates code to perform the binary operations via |function_id|. 53 // Generates code to perform the binary operations via |function_id|.
54 void DoBinaryOp(Runtime::FunctionId function_id, 54 void DoBinaryOp(Runtime::FunctionId function_id,
55 compiler::InterpreterAssembler* assembler); 55 compiler::InterpreterAssembler* assembler);
56 56
57 // Generates code to perform the comparison operation associated with 57 // Generates code to perform the comparison operation associated with
58 // |compare_op|. 58 // |compare_op|.
59 void DoCompareOp(Token::Value compare_op, 59 void DoCompareOp(Token::Value compare_op,
60 compiler::InterpreterAssembler* assembler); 60 compiler::InterpreterAssembler* assembler);
61 61
62 // Generates code to perform a property load via |ic|. 62 // Generates code to perform a global load via |ic|.
63 void DoPropertyLoadIC(Callable ic, compiler::InterpreterAssembler* assembler); 63 void DoLoadGlobal(Callable ic, compiler::InterpreterAssembler* assembler);
64 64
65 // Generates code to perform a property store via |ic|. 65 // Generates code to perform a global store via |ic|.
66 void DoPropertyStoreIC(Callable ic, 66 void DoStoreGlobal(Callable ic, compiler::InterpreterAssembler* assembler);
67 compiler::InterpreterAssembler* assembler); 67
68 // Generates code to perform a named property load via |ic|.
69 void DoLoadIC(Callable ic, compiler::InterpreterAssembler* assembler);
70
71 // Generates code to perform a keyed property load via |ic|.
72 void DoKeyedLoadIC(Callable ic, compiler::InterpreterAssembler* assembler);
73
74 // Generates code to perform a namedproperty store via |ic|.
75 void DoStoreIC(Callable ic, compiler::InterpreterAssembler* assembler);
76
77 // Generates code to perform a keyed property store via |ic|.
78 void DoKeyedStoreIC(Callable ic, compiler::InterpreterAssembler* assembler);
68 79
69 // Generates code ro create a literal via |function_id|. 80 // Generates code ro create a literal via |function_id|.
70 void DoCreateLiteral(Runtime::FunctionId function_id, 81 void DoCreateLiteral(Runtime::FunctionId function_id,
71 compiler::InterpreterAssembler* assembler); 82 compiler::InterpreterAssembler* assembler);
72 83
73 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table); 84 bool IsInterpreterTableInitialized(Handle<FixedArray> handler_table);
74 85
75 Isolate* isolate_; 86 Isolate* isolate_;
76 87
77 DISALLOW_COPY_AND_ASSIGN(Interpreter); 88 DISALLOW_COPY_AND_ASSIGN(Interpreter);
78 }; 89 };
79 90
80 } // namespace interpreter 91 } // namespace interpreter
81 } // namespace internal 92 } // namespace internal
82 } // namespace v8 93 } // namespace v8
83 94
84 #endif // V8_INTERPRETER_INTERPRETER_H_ 95 #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