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

Side by Side Diff: src/compiler/interpreter-assembler.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/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.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_COMPILER_INTERPRETER_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 Node* IntPtrSub(Node* a, Node* b); 89 Node* IntPtrSub(Node* a, Node* b);
90 Node* WordShl(Node* value, int shift); 90 Node* WordShl(Node* value, int shift);
91 91
92 // Load constant at |index| in the constant pool. 92 // Load constant at |index| in the constant pool.
93 Node* LoadConstantPoolEntry(Node* index); 93 Node* LoadConstantPoolEntry(Node* index);
94 94
95 // Load a field from an object on the heap. 95 // Load a field from an object on the heap.
96 Node* LoadObjectField(Node* object, int offset); 96 Node* LoadObjectField(Node* object, int offset);
97 97
98 // Load |slot_index| from |context|. 98 // Load |slot_index| from |context|.
99 Node* LoadContextSlot(Node* context, int slot_index);
99 Node* LoadContextSlot(Node* context, Node* slot_index); 100 Node* LoadContextSlot(Node* context, Node* slot_index);
100 // Stores |value| into |slot_index| of |context|. 101 // Stores |value| into |slot_index| of |context|.
101 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); 102 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value);
102 103
103 // Load the TypeFeedbackVector for the current function. 104 // Load the TypeFeedbackVector for the current function.
104 Node* LoadTypeFeedbackVector(); 105 Node* LoadTypeFeedbackVector();
105 106
106 // Call constructor |constructor| with |arg_count| arguments (not 107 // Call constructor |constructor| with |arg_count| arguments (not
107 // including receiver) and the first argument located at 108 // including receiver) and the first argument located at
108 // |first_arg|. The |original_constructor| is the same as the 109 // |first_arg|. The |original_constructor| is the same as the
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 bool code_generated_; 208 bool code_generated_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 210 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
210 }; 211 };
211 212
212 } // namespace compiler 213 } // namespace compiler
213 } // namespace internal 214 } // namespace internal
214 } // namespace v8 215 } // namespace v8
215 216
216 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 217 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/compiler/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698