1// Copyright 2006-2008 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "src/v8.h"
6
7#if V8_TARGET_ARCH_X87
8
9#include "src/assembler.h"
10#include "src/frames.h"
11#include "src/x87/assembler-x87-inl.h"
12#include "src/x87/assembler-x87.h"
13
14namespace v8 {
15namespace internal {
16
17
18Register JavaScriptFrame::fp_register() { return ebp; }
19Register JavaScriptFrame::context_register() { return esi; }
20Register JavaScriptFrame::constant_pool_pointer_register() {
21  UNREACHABLE();
22  return no_reg;
23}
24
25
26Register StubFailureTrampolineFrame::fp_register() { return ebp; }
27Register StubFailureTrampolineFrame::context_register() { return esi; }
28Register StubFailureTrampolineFrame::constant_pool_pointer_register() {
29  UNREACHABLE();
30  return no_reg;
31}
32
33
34Object*& ExitFrame::constant_pool_slot() const {
35  UNREACHABLE();
36  return Memory::Object_at(NULL);
37}
38
39
40} }  // namespace v8::internal
41
42#endif  // V8_TARGET_ARCH_X87
43