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

Unified Diff: src/full-codegen/full-codegen.cc

Issue 2227763003: [turbofan] Rewrite ToObject as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add comment with ES6 section Created 4 years, 4 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/full-codegen/full-codegen.cc
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
index 6a583a2ccd667e3bf98a1858ca67a0fd2051ec9c..08ad2d80b198f5f1fe4961fd590afbebeed0a6bf 100644
--- a/src/full-codegen/full-codegen.cc
+++ b/src/full-codegen/full-codegen.cc
@@ -1067,8 +1067,10 @@ void FullCodeGenerator::VisitWithStatement(WithStatement* stmt) {
VisitForAccumulatorValue(stmt->expression());
Callable callable = CodeFactory::ToObject(isolate());
+ __ Push(context_register());
__ Move(callable.descriptor().GetRegisterParameter(0), result_register());
__ Call(callable.code(), RelocInfo::CODE_TARGET);
+ __ Pop(context_register());
Michael Starzinger 2016/08/09 10:24:29 Please use FullCodeGenerator::RestoreContext after
Franzi 2016/08/09 11:21:38 Done.
PrepareForBailoutForId(stmt->ToObjectId(), BailoutState::TOS_REGISTER);
PushOperand(result_register());
PushFunctionArgumentForContextAllocation();

Powered by Google App Engine
This is Rietveld 408576698