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

Side by Side Diff: src/interpreter/bytecode-array-builder.h

Issue 2343633002: [interpreter] Add a fast path for dynamic local load (Closed)
Patch Set: Disable clang format for the new test Created 4 years, 3 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
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_BYTECODE_ARRAY_BUILDER_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-register-allocator.h" 10 #include "src/interpreter/bytecode-register-allocator.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int feedback_slot, 124 int feedback_slot,
125 LanguageMode language_mode); 125 LanguageMode language_mode);
126 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key, 126 BytecodeArrayBuilder& StoreKeyedProperty(Register object, Register key,
127 int feedback_slot, 127 int feedback_slot,
128 LanguageMode language_mode); 128 LanguageMode language_mode);
129 129
130 // Lookup the variable with |name|. 130 // Lookup the variable with |name|.
131 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name, 131 BytecodeArrayBuilder& LoadLookupSlot(const Handle<String> name,
132 TypeofMode typeof_mode); 132 TypeofMode typeof_mode);
133 133
134 // Lookup the variable with |name|, which is known to be at |slot_index| at
135 // |depth| in the context chain if not shadowed by a context extension
136 // somewhere in that context chain.
137 BytecodeArrayBuilder& LoadLookupContextSlot(const Handle<String> name,
138 TypeofMode typeof_mode,
139 int slot_index, int depth);
140
134 // Store value in the accumulator into the variable with |name|. 141 // Store value in the accumulator into the variable with |name|.
135 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name, 142 BytecodeArrayBuilder& StoreLookupSlot(const Handle<String> name,
136 LanguageMode language_mode); 143 LanguageMode language_mode);
137 144
138 // Create a new closure for a SharedFunctionInfo which will be inserted at 145 // Create a new closure for a SharedFunctionInfo which will be inserted at
139 // constant pool index |entry|. 146 // constant pool index |entry|.
140 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags); 147 BytecodeArrayBuilder& CreateClosure(size_t entry, int flags);
141 148
142 // Create a new local context for a |scope_info| and a closure which should be 149 // Create a new local context for a |scope_info| and a closure which should be
143 // in the accumulator. 150 // in the accumulator.
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 static int const kNoFeedbackSlot = 0; 412 static int const kNoFeedbackSlot = 0;
406 413
407 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 414 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
408 }; 415 };
409 416
410 } // namespace interpreter 417 } // namespace interpreter
411 } // namespace internal 418 } // namespace internal
412 } // namespace v8 419 } // namespace v8
413 420
414 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 421 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698