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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 2090723005: [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing condition in SafeStackFrameIter::frame() Created 4 years, 5 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
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_
6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 DwVfpRegister double_scratch0, 583 DwVfpRegister double_scratch0,
584 LowDwVfpRegister double_scratch1, 584 LowDwVfpRegister double_scratch1,
585 Label* not_int32); 585 Label* not_int32);
586 586
587 // Generates function and stub prologue code. 587 // Generates function and stub prologue code.
588 void StubPrologue(StackFrame::Type type); 588 void StubPrologue(StackFrame::Type type);
589 void Prologue(bool code_pre_aging); 589 void Prologue(bool code_pre_aging);
590 590
591 // Enter exit frame. 591 // Enter exit frame.
592 // stack_space - extra stack space, used for alignment before call to C. 592 // stack_space - extra stack space, used for alignment before call to C.
593 void EnterExitFrame(bool save_doubles, int stack_space = 0); 593 void EnterExitFrame(bool save_doubles, int stack_space = 0,
594 StackFrame::Type frame_type = StackFrame::EXIT);
594 595
595 // Leave the current exit frame. Expects the return value in r0. 596 // Leave the current exit frame. Expects the return value in r0.
596 // Expect the number of values, pushed prior to the exit frame, to 597 // Expect the number of values, pushed prior to the exit frame, to
597 // remove in a register (or no_reg, if there is nothing to remove). 598 // remove in a register (or no_reg, if there is nothing to remove).
598 void LeaveExitFrame(bool save_doubles, Register argument_count, 599 void LeaveExitFrame(bool save_doubles, Register argument_count,
599 bool restore_context, 600 bool restore_context,
600 bool argument_count_is_length = false); 601 bool argument_count_is_length = false);
601 602
602 // Get the actual activation frame alignment for target environment. 603 // Get the actual activation frame alignment for target environment.
603 static int ActivationFrameAlignment(); 604 static int ActivationFrameAlignment();
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 int num_reg_arguments, 1160 int num_reg_arguments,
1160 int num_double_arguments); 1161 int num_double_arguments);
1161 void CallCFunction(Register function, 1162 void CallCFunction(Register function,
1162 int num_reg_arguments, 1163 int num_reg_arguments,
1163 int num_double_arguments); 1164 int num_double_arguments);
1164 1165
1165 void MovFromFloatParameter(DwVfpRegister dst); 1166 void MovFromFloatParameter(DwVfpRegister dst);
1166 void MovFromFloatResult(DwVfpRegister dst); 1167 void MovFromFloatResult(DwVfpRegister dst);
1167 1168
1168 // Jump to a runtime routine. 1169 // Jump to a runtime routine.
1169 void JumpToExternalReference(const ExternalReference& builtin); 1170 void JumpToExternalReference(const ExternalReference& builtin,
1171 bool builtin_exit_frame = false);
1170 1172
1171 Handle<Object> CodeObject() { 1173 Handle<Object> CodeObject() {
1172 DCHECK(!code_object_.is_null()); 1174 DCHECK(!code_object_.is_null());
1173 return code_object_; 1175 return code_object_;
1174 } 1176 }
1175 1177
1176 1178
1177 // Emit code for a truncating division by a constant. The dividend register is 1179 // Emit code for a truncating division by a constant. The dividend register is
1178 // unchanged and ip gets clobbered. Dividend and result must be different. 1180 // unchanged and ip gets clobbered. Dividend and result must be different.
1179 void TruncatingDiv(Register result, Register dividend, int32_t divisor); 1181 void TruncatingDiv(Register result, Register dividend, int32_t divisor);
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1578 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1577 #else 1579 #else
1578 #define ACCESS_MASM(masm) masm-> 1580 #define ACCESS_MASM(masm) masm->
1579 #endif 1581 #endif
1580 1582
1581 1583
1582 } // namespace internal 1584 } // namespace internal
1583 } // namespace v8 1585 } // namespace v8
1584 1586
1585 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1587 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698