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

Unified Diff: src/code-stub-assembler.h

Issue 2188993003: [stubs] Port CreateWeakCellStub to turbofan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix stack overflow Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 83096044cc6a2a7161e3203efe34a53a66f8c841..39aa95bfb5f77414458a3ce0508fb4e737182a0f 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -220,6 +220,8 @@ class CodeStubAssembler : public compiler::CodeAssembler {
// Store the Map of an HeapObject.
compiler::Node* StoreMapNoWriteBarrier(compiler::Node* object,
compiler::Node* map);
+ compiler::Node* StoreObjectFieldRoot(compiler::Node* object, int offset,
+ Heap::RootListIndex root);
// Store an array element to a FixedArray.
compiler::Node* StoreFixedArrayElement(
compiler::Node* object, compiler::Node* index, compiler::Node* value,
@@ -485,6 +487,12 @@ class CodeStubAssembler : public compiler::CodeAssembler {
CodeStubAssembler::Label* use_cache,
CodeStubAssembler::Label* use_runtime);
+ // Create a new weak cell with a specified value and install it into a
+ // feedback vector.
+ compiler::Node* CreateWeakCellInFeedbackVector(
+ compiler::Node* feedback_vector, compiler::Node* slot,
+ compiler::Node* value);
+
private:
compiler::Node* ElementOffsetFromIndex(compiler::Node* index,
ElementsKind kind, ParameterMode mode,

Powered by Google App Engine
This is Rietveld 408576698