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

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

Issue 1603493002: X87: [Interpreter] Add ForInPrepare runtime function which returns a ObjectTriple. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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"
11 #include "src/globals.h" 11 #include "src/globals.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 // Give alias names to registers for calling conventions. 16 // Give alias names to registers for calling conventions.
17 const Register kReturnRegister0 = {Register::kCode_eax}; 17 const Register kReturnRegister0 = {Register::kCode_eax};
18 const Register kReturnRegister1 = {Register::kCode_edx}; 18 const Register kReturnRegister1 = {Register::kCode_edx};
19 const Register kReturnRegister2 = {Register::kCode_edi};
19 const Register kJSFunctionRegister = {Register::kCode_edi}; 20 const Register kJSFunctionRegister = {Register::kCode_edi};
20 const Register kContextRegister = {Register::kCode_esi}; 21 const Register kContextRegister = {Register::kCode_esi};
21 const Register kInterpreterAccumulatorRegister = {Register::kCode_eax}; 22 const Register kInterpreterAccumulatorRegister = {Register::kCode_eax};
22 const Register kInterpreterRegisterFileRegister = {Register::kCode_edx}; 23 const Register kInterpreterRegisterFileRegister = {Register::kCode_edx};
23 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_ecx}; 24 const Register kInterpreterBytecodeOffsetRegister = {Register::kCode_ecx};
24 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_edi}; 25 const Register kInterpreterBytecodeArrayRegister = {Register::kCode_edi};
25 const Register kJavaScriptCallArgCountRegister = {Register::kCode_eax}; 26 const Register kJavaScriptCallArgCountRegister = {Register::kCode_eax};
26 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_edx}; 27 const Register kJavaScriptCallNewTargetRegister = {Register::kCode_edx};
27 const Register kRuntimeCallFunctionRegister = {Register::kCode_ebx}; 28 const Register kRuntimeCallFunctionRegister = {Register::kCode_ebx};
28 const Register kRuntimeCallArgCountRegister = {Register::kCode_eax}; 29 const Register kRuntimeCallArgCountRegister = {Register::kCode_eax};
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 void DebugBreak(); 219 void DebugBreak();
219 220
220 // Generates function and stub prologue code. 221 // Generates function and stub prologue code.
221 void StubPrologue(); 222 void StubPrologue();
222 void Prologue(bool code_pre_aging); 223 void Prologue(bool code_pre_aging);
223 224
224 // Enter specific kind of exit frame. Expects the number of 225 // Enter specific kind of exit frame. Expects the number of
225 // arguments in register eax and sets up the number of arguments in 226 // arguments in register eax and sets up the number of arguments in
226 // register edi and the pointer to the first argument in register 227 // register edi and the pointer to the first argument in register
227 // esi. 228 // esi.
228 void EnterExitFrame(bool save_doubles); 229 void EnterExitFrame(int argc, bool save_doubles);
229 230
230 void EnterApiExitFrame(int argc); 231 void EnterApiExitFrame(int argc);
231 232
232 // Leave the current exit frame. Expects the return value in 233 // Leave the current exit frame. Expects the return value in
233 // register eax:edx (untouched) and the pointer to the first 234 // register eax:edx (untouched) and the pointer to the first
234 // argument in register esi (if pop_arguments == true). 235 // argument in register esi (if pop_arguments == true).
235 void LeaveExitFrame(bool save_doubles, bool pop_arguments = true); 236 void LeaveExitFrame(bool save_doubles, bool pop_arguments = true);
236 237
237 // Leave the current exit frame. Expects the return value in 238 // Leave the current exit frame. Expects the return value in
238 // register eax (untouched). 239 // register eax (untouched).
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
990 } \ 991 } \
991 masm-> 992 masm->
992 #else 993 #else
993 #define ACCESS_MASM(masm) masm-> 994 #define ACCESS_MASM(masm) masm->
994 #endif 995 #endif
995 996
996 } // namespace internal 997 } // namespace internal
997 } // namespace v8 998 } // namespace v8
998 999
999 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1000 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698