frames-arm.cc 1.05 KB
Newer Older
1
// Copyright 2011 the V8 project authors. All rights reserved.
2 3
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
4

5
#if V8_TARGET_ARCH_ARM
6

7 8 9
#include "src/assembler.h"
#include "src/frames.h"
#include "src/macro-assembler.h"
10 11 12

#include "src/arm/assembler-arm-inl.h"
#include "src/arm/assembler-arm.h"
13
#include "src/arm/frames-arm.h"
14
#include "src/arm/macro-assembler-arm.h"
15

16 17
namespace v8 {
namespace internal {
18 19


20 21
Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
Register JavaScriptFrame::context_register() { return cp; }
22
Register JavaScriptFrame::constant_pool_pointer_register() {
23
  DCHECK(FLAG_enable_embedded_constant_pool);
24 25
  return pp;
}
26 27


28 29
Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
Register StubFailureTrampolineFrame::context_register() { return cp; }
30
Register StubFailureTrampolineFrame::constant_pool_pointer_register() {
31
  DCHECK(FLAG_enable_embedded_constant_pool);
32 33
  return pp;
}
34 35


36 37
}  // namespace internal
}  // namespace v8
38 39

#endif  // V8_TARGET_ARCH_ARM