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/interpreter/bytecode-array-builder.h

Issue 2680923003: Revert of Thread maybe-assigned through the bytecodes. (Closed)
Patch Set: Created 3 years, 10 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/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.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_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/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // Global loads to the accumulator and stores from the accumulator. 86 // Global loads to the accumulator and stores from the accumulator.
87 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot, 87 BytecodeArrayBuilder& LoadGlobal(const Handle<String> name, int feedback_slot,
88 TypeofMode typeof_mode); 88 TypeofMode typeof_mode);
89 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name, 89 BytecodeArrayBuilder& StoreGlobal(const Handle<String> name,
90 int feedback_slot, 90 int feedback_slot,
91 LanguageMode language_mode); 91 LanguageMode language_mode);
92 92
93 // Load the object at |slot_index| at |depth| in the context chain starting 93 // Load the object at |slot_index| at |depth| in the context chain starting
94 // with |context| into the accumulator. 94 // with |context| into the accumulator.
95 enum ContextSlotMutability { kImmutableSlot, kMutableSlot };
96 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index, 95 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index,
97 int depth, 96 int depth);
98 ContextSlotMutability immutable);
99 97
100 // Stores the object in the accumulator into |slot_index| at |depth| in the 98 // Stores the object in the accumulator into |slot_index| at |depth| in the
101 // context chain starting with |context|. 99 // context chain starting with |context|.
102 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index, 100 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index,
103 int depth); 101 int depth);
104 102
105 // Load from a module variable into the accumulator. |depth| is the depth of 103 // Load from a module variable into the accumulator. |depth| is the depth of
106 // the current context relative to the module context. 104 // the current context relative to the module context.
107 BytecodeArrayBuilder& LoadModuleVariable(int cell_index, int depth); 105 BytecodeArrayBuilder& LoadModuleVariable(int cell_index, int depth);
108 106
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 static int const kNoFeedbackSlot = 0; 449 static int const kNoFeedbackSlot = 0;
452 450
453 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 451 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
454 }; 452 };
455 453
456 } // namespace interpreter 454 } // namespace interpreter
457 } // namespace internal 455 } // namespace internal
458 } // namespace v8 456 } // namespace v8
459 457
460 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 458 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/bytecode-array-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698