summaryrefslogtreecommitdiff
path: root/deps/v8/src/arm/frames-arm.cc
blob: 605f9f42233c101e1c36318b7fd5cd279748031e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Copyright 2011 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 "v8.h"

#if V8_TARGET_ARCH_ARM

#include "assembler.h"
#include "assembler-arm.h"
#include "assembler-arm-inl.h"
#include "frames.h"
#include "macro-assembler.h"
#include "macro-assembler-arm.h"

namespace v8 {
namespace internal {


Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
Register JavaScriptFrame::context_register() { return cp; }
Register JavaScriptFrame::constant_pool_pointer_register() {
  ASSERT(FLAG_enable_ool_constant_pool);
  return pp;
}


Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
Register StubFailureTrampolineFrame::context_register() { return cp; }
Register StubFailureTrampolineFrame::constant_pool_pointer_register() {
  ASSERT(FLAG_enable_ool_constant_pool);
  return pp;
}


Object*& ExitFrame::constant_pool_slot() const {
  ASSERT(FLAG_enable_ool_constant_pool);
  const int offset = ExitFrameConstants::kConstantPoolOffset;
  return Memory::Object_at(fp() + offset);
}


} }  // namespace v8::internal

#endif  // V8_TARGET_ARCH_ARM