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

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

Issue 1576093004: [Interpreter] Add ForInPrepare runtime function which returns a ObjectTriple. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MIPS port 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 } \ 1011 } \
1011 masm-> 1012 masm->
1012 #else 1013 #else
1013 #define ACCESS_MASM(masm) masm-> 1014 #define ACCESS_MASM(masm) masm->
1014 #endif 1015 #endif
1015 1016
1016 } // namespace internal 1017 } // namespace internal
1017 } // namespace v8 1018 } // namespace v8
1018 1019
1019 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1020 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698