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

Unified Diff: src/compiler/frame-access-state.cc

Issue 1460183002: [turbofan] Add general support for sp-based frame access (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: All platforms Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/frame-access-state.cc
diff --git a/src/compiler/frame-access-state.cc b/src/compiler/frame-access-state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..60684095cffc031904cc8371e348e5793b92d6e7
--- /dev/null
+++ b/src/compiler/frame-access-state.cc
@@ -0,0 +1,21 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "src/compiler/frame-access-state.h"
+
+namespace v8 {
+namespace internal {
+namespace compiler {
+
+void FrameAccessState::UseDefaultFrameAccess() {
+ if (frame()->needs_frame() && !FLAG_turbo_sp_frame_access) {
+ UseFPToAccessFrame();
+ } else {
+ UseSPToAccessFrame();
+ }
+}
+
+} // namespace compiler
+} // namespace internal
+} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698