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

Side by Side Diff: src/arm64/macro-assembler-arm64.cc

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Re-factoring to enable FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be used by oth… Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 3046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3057 void MacroAssembler::Prologue(bool code_pre_aging) { 3057 void MacroAssembler::Prologue(bool code_pre_aging) {
3058 if (code_pre_aging) { 3058 if (code_pre_aging) {
3059 Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); 3059 Code* stub = Code::GetPreAgedCodeAgeStub(isolate());
3060 __ EmitCodeAgeSequence(stub); 3060 __ EmitCodeAgeSequence(stub);
3061 } else { 3061 } else {
3062 __ EmitFrameSetupForCodeAgePatching(); 3062 __ EmitFrameSetupForCodeAgePatching();
3063 } 3063 }
3064 } 3064 }
3065 3065
3066 3066
3067 void MacroAssembler::EnterFrame(StackFrame::Type type) { 3067 void MacroAssembler::EnterFrame(StackFrame::Type type,
3068 bool load_constant_pool_pointer_reg) {
3069 DCHECK(!load_constant_pool_pointer_reg);
rmcilroy 2014/10/02 15:01:38 Rather than adding the unnecessary argument to thi
baixo 2014/10/09 09:08:14 Done.
3068 DCHECK(jssp.Is(StackPointer())); 3070 DCHECK(jssp.Is(StackPointer()));
3069 UseScratchRegisterScope temps(this); 3071 UseScratchRegisterScope temps(this);
3070 Register type_reg = temps.AcquireX(); 3072 Register type_reg = temps.AcquireX();
3071 Register code_reg = temps.AcquireX(); 3073 Register code_reg = temps.AcquireX();
3072 3074
3073 Push(lr, fp, cp); 3075 Push(lr, fp, cp);
3074 Mov(type_reg, Smi::FromInt(type)); 3076 Mov(type_reg, Smi::FromInt(type));
3075 Mov(code_reg, Operand(CodeObject())); 3077 Mov(code_reg, Operand(CodeObject()));
3076 Push(type_reg, code_reg); 3078 Push(type_reg, code_reg);
3077 // jssp[4] : lr 3079 // jssp[4] : lr
(...skipping 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
5381 } 5383 }
5382 } 5384 }
5383 5385
5384 5386
5385 #undef __ 5387 #undef __
5386 5388
5387 5389
5388 } } // namespace v8::internal 5390 } } // namespace v8::internal
5389 5391
5390 #endif // V8_TARGET_ARCH_ARM64 5392 #endif // V8_TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698