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

Side by Side Diff: src/compiler/interpreter-assembler.h

Issue 1422033002: [Interpreter] Add support for for..in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment nits. 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
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Node* SmiUntag(Node* value); 85 Node* SmiUntag(Node* value);
86 86
87 // Basic arithmetic operations. 87 // Basic arithmetic operations.
88 Node* IntPtrAdd(Node* a, Node* b); 88 Node* IntPtrAdd(Node* a, Node* b);
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 an element from a fixed array on the heap.
96 Node* LoadFixedArrayElement(Node* fixed_array, int index);
97
95 // Load a field from an object on the heap. 98 // Load a field from an object on the heap.
96 Node* LoadObjectField(Node* object, int offset); 99 Node* LoadObjectField(Node* object, int offset);
97 100
98 // Load |slot_index| from |context|. 101 // Load |slot_index| from |context|.
99 Node* LoadContextSlot(Node* context, int slot_index); 102 Node* LoadContextSlot(Node* context, int slot_index);
100 Node* LoadContextSlot(Node* context, Node* slot_index); 103 Node* LoadContextSlot(Node* context, Node* slot_index);
101 // Stores |value| into |slot_index| of |context|. 104 // Stores |value| into |slot_index| of |context|.
102 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value); 105 Node* StoreContextSlot(Node* context, Node* slot_index, Node* value);
103 106
104 // Load the TypeFeedbackVector for the current function. 107 // Load the TypeFeedbackVector for the current function.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 bool code_generated_; 211 bool code_generated_;
209 212
210 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 213 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
211 }; 214 };
212 215
213 } // namespace compiler 216 } // namespace compiler
214 } // namespace internal 217 } // namespace internal
215 } // namespace v8 218 } // namespace v8
216 219
217 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 220 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698