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

Unified Diff: src/code-stubs.h

Issue 1922523002: [Interpreter] Use FastCloneShallowObjectStub in CreateObjectLiteral bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add todo Created 4 years, 8 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
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 090f88423a70c1830dca40be5434556a10772464..75b0364cc4a7b45fb1cae7715bcfb280c15b4aef 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -1134,6 +1134,14 @@ class FastCloneShallowObjectStub : public TurboFanCodeStub {
minor_key_ = LengthBits::encode(LengthBits::encode(length));
}
+ static compiler::Node* GenerateFastPath(
+ CodeStubAssembler* assembler,
+ compiler::CodeAssembler::Label* call_runtime, compiler::Node* closure,
+ compiler::Node* literals_index, compiler::Node* properties_count);
+
+ static bool IsSupported(ObjectLiteral* expr);
+ static int PropertiesCount(int literal_length);
+
int length() const { return LengthBits::decode(minor_key_); }
private:
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698