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

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

Issue 2679953003: Reland 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 };
95 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index, 96 BytecodeArrayBuilder& LoadContextSlot(Register context, int slot_index,
96 int depth); 97 int depth,
98 ContextSlotMutability immutable);
97 99
98 // Stores the object in the accumulator into |slot_index| at |depth| in the 100 // Stores the object in the accumulator into |slot_index| at |depth| in the
99 // context chain starting with |context|. 101 // context chain starting with |context|.
100 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index, 102 BytecodeArrayBuilder& StoreContextSlot(Register context, int slot_index,
101 int depth); 103 int depth);
102 104
103 // Load from a module variable into the accumulator. |depth| is the depth of 105 // Load from a module variable into the accumulator. |depth| is the depth of
104 // the current context relative to the module context. 106 // the current context relative to the module context.
105 BytecodeArrayBuilder& LoadModuleVariable(int cell_index, int depth); 107 BytecodeArrayBuilder& LoadModuleVariable(int cell_index, int depth);
106 108
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 static int const kNoFeedbackSlot = 0; 451 static int const kNoFeedbackSlot = 0;
450 452
451 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder); 453 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayBuilder);
452 }; 454 };
453 455
454 } // namespace interpreter 456 } // namespace interpreter
455 } // namespace internal 457 } // namespace internal
456 } // namespace v8 458 } // namespace v8
457 459
458 #endif // V8_INTERPRETER_BYTECODE_ARRAY_BUILDER_H_ 460 #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