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

Side by Side Diff: src/code-stub-assembler.h

Issue 2473003004: [compiler] Generalize context load/store operations in code-stub-assembler. (Closed)
Patch Set: Remove tests. Created 4 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 | « no previous file | src/code-stub-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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 compiler::Node* LoadDoubleWithHoleCheck( 324 compiler::Node* LoadDoubleWithHoleCheck(
325 compiler::Node* base, compiler::Node* offset, Label* if_hole, 325 compiler::Node* base, compiler::Node* offset, Label* if_hole,
326 MachineType machine_type = MachineType::Float64()); 326 MachineType machine_type = MachineType::Float64());
327 compiler::Node* LoadFixedTypedArrayElement( 327 compiler::Node* LoadFixedTypedArrayElement(
328 compiler::Node* data_pointer, compiler::Node* index_node, 328 compiler::Node* data_pointer, compiler::Node* index_node,
329 ElementsKind elements_kind, 329 ElementsKind elements_kind,
330 ParameterMode parameter_mode = INTEGER_PARAMETERS); 330 ParameterMode parameter_mode = INTEGER_PARAMETERS);
331 331
332 // Context manipulation 332 // Context manipulation
333 compiler::Node* LoadContextElement(compiler::Node* context, int slot_index); 333 compiler::Node* LoadContextElement(compiler::Node* context, int slot_index);
334 compiler::Node* LoadContextElement(compiler::Node* context,
335 compiler::Node* slot_index);
334 compiler::Node* StoreContextElement(compiler::Node* context, int slot_index, 336 compiler::Node* StoreContextElement(compiler::Node* context, int slot_index,
335 compiler::Node* value); 337 compiler::Node* value);
338 compiler::Node* StoreContextElement(compiler::Node* context,
339 compiler::Node* slot_index,
340 compiler::Node* value);
336 compiler::Node* LoadNativeContext(compiler::Node* context); 341 compiler::Node* LoadNativeContext(compiler::Node* context);
337 342
338 compiler::Node* LoadJSArrayElementsMap(ElementsKind kind, 343 compiler::Node* LoadJSArrayElementsMap(ElementsKind kind,
339 compiler::Node* native_context); 344 compiler::Node* native_context);
340 345
341 // Store the floating point value of a HeapNumber. 346 // Store the floating point value of a HeapNumber.
342 compiler::Node* StoreHeapNumberValue(compiler::Node* object, 347 compiler::Node* StoreHeapNumberValue(compiler::Node* object,
343 compiler::Node* value); 348 compiler::Node* value);
344 // Store a field to an object on the heap. 349 // Store a field to an object on the heap.
345 compiler::Node* StoreObjectField( 350 compiler::Node* StoreObjectField(
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 } 1270 }
1266 #else 1271 #else
1267 #define CSA_SLOW_ASSERT(x) 1272 #define CSA_SLOW_ASSERT(x)
1268 #endif 1273 #endif
1269 1274
1270 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1275 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1271 1276
1272 } // namespace internal 1277 } // namespace internal
1273 } // namespace v8 1278 } // namespace v8
1274 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1279 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698