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

Unified Diff: include/v8-defaults.h

Issue 153953005: A64: Synchronize with r16993. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | « include/v8.h ('k') | include/v8-testing.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8-defaults.h
diff --git a/src/a64/frames-a64.cc b/include/v8-defaults.h
similarity index 72%
copy from src/a64/frames-a64.cc
copy to include/v8-defaults.h
index fc0ecb499594f06731abe87b29ab6df7f7f82ca0..381a48210d1b9895fbda4e4c89eb0e51fa61b6d0 100644
--- a/src/a64/frames-a64.cc
+++ b/include/v8-defaults.h
@@ -25,27 +25,30 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#include "v8.h"
-
-#if V8_TARGET_ARCH_A64
+#ifndef V8_V8_DEFAULTS_H_
+#define V8_V8_DEFAULTS_H_
-#include "assembler.h"
-#include "assembler-a64.h"
-#include "assembler-a64-inl.h"
-#include "frames.h"
+#include "v8.h"
+/**
+ * Default configuration support for the V8 JavaScript engine.
+ */
namespace v8 {
-namespace internal {
-
-
-Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
-Register JavaScriptFrame::context_register() { return cp; }
+/**
+ * Configures the constraints with reasonable default values based on the
+ * capabilities of the current device the VM is running on.
+ */
+bool V8_EXPORT ConfigureResourceConstraintsForCurrentPlatform(
+ ResourceConstraints* constraints);
-Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
-Register StubFailureTrampolineFrame::context_register() { return cp; }
+/**
+ * Convience function which performs SetResourceConstraints with the settings
+ * returned by ConfigureResourceConstraintsForCurrentPlatform.
+ */
+bool V8_EXPORT SetDefaultResourceConstraintsForCurrentPlatform();
-} } // namespace v8::internal
+} // namespace v8
-#endif // V8_TARGET_ARCH_A64
+#endif // V8_V8_DEFAULTS_H_
« no previous file with comments | « include/v8.h ('k') | include/v8-testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698