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

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

Issue 118115: X64: JSEntry Stub (Closed)
Patch Set: Addressed review comments Created 11 years, 6 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/x64/frames-x64.h ('k') | src/x64/macro-assembler-x64.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 15 matching lines...) Expand all
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ 28 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
29 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 29 #define V8_X64_MACRO_ASSEMBLER_X64_H_
30 30
31 #include "assembler.h" 31 #include "assembler.h"
32 32
33 namespace v8 { 33 namespace v8 {
34 namespace internal { 34 namespace internal {
35 35
36 // Default scratch register used by MacroAssembler (and other code that needs
37 // a spare register). The register isn't callee save, and not used by the
38 // function calling convention.
36 static const Register kScratchRegister = r10; 39 static const Register kScratchRegister = r10;
37 40
38 // Forward declaration. 41 // Forward declaration.
39 class JumpTarget; 42 class JumpTarget;
40 43
41 44
42 // Helper types to make flags easier to read at call sites. 45 // Helper types to make flags easier to read at call sites.
43 enum InvokeFlag { 46 enum InvokeFlag {
44 CALL_FUNCTION, 47 CALL_FUNCTION,
45 JUMP_FUNCTION 48 JUMP_FUNCTION
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 154
152 // FCmp is similar to integer cmp, but requires unsigned 155 // FCmp is similar to integer cmp, but requires unsigned
153 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). 156 // jcc instructions (je, ja, jae, jb, jbe, je, and jz).
154 void FCmp(); 157 void FCmp();
155 158
156 // --------------------------------------------------------------------------- 159 // ---------------------------------------------------------------------------
157 // Exception handling 160 // Exception handling
158 161
159 // Push a new try handler and link into try handler chain. 162 // Push a new try handler and link into try handler chain.
160 // The return address must be pushed before calling this helper. 163 // The return address must be pushed before calling this helper.
161 // On exit, eax contains TOS (next_sp). 164 // On exit, rax contains TOS (next_sp).
162 void PushTryHandler(CodeLocation try_location, HandlerType type); 165 void PushTryHandler(CodeLocation try_location, HandlerType type);
163 166
164 167
165 // --------------------------------------------------------------------------- 168 // ---------------------------------------------------------------------------
166 // Inline caching support 169 // Inline caching support
167 170
168 // Generates code that verifies that the maps of objects in the 171 // Generates code that verifies that the maps of objects in the
169 // prototype chain of object hasn't changed since the code was 172 // prototype chain of object hasn't changed since the code was
170 // generated and branches to the miss label if any map has. If 173 // generated and branches to the miss label if any map has. If
171 // necessary the function also generates code for security check 174 // necessary the function also generates code for security check
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 } \ 368 } \
366 masm-> 369 masm->
367 #else 370 #else
368 #define ACCESS_MASM(masm) masm-> 371 #define ACCESS_MASM(masm) masm->
369 #endif 372 #endif
370 373
371 374
372 } } // namespace v8::internal 375 } } // namespace v8::internal
373 376
374 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 377 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/frames-x64.h ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698