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

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

Issue 1079006: Add basic C++ implementation of CPU profiler. (Closed)
Patch Set: Comments addressed Created 10 years, 9 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/codegen-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Smi tagging support. 182 // Smi tagging support.
183 void SmiTag(Register reg) { 183 void SmiTag(Register reg) {
184 ASSERT(kSmiTag == 0); 184 ASSERT(kSmiTag == 0);
185 shl(reg, kSmiTagSize); 185 shl(reg, kSmiTagSize);
186 } 186 }
187 void SmiUntag(Register reg) { 187 void SmiUntag(Register reg) {
188 sar(reg, kSmiTagSize); 188 sar(reg, kSmiTagSize);
189 } 189 }
190 190
191 // Abort execution if argument is not a number. Used in debug code. 191 // Abort execution if argument is not a number. Used in debug code.
192 void AbortIfNotNumber(Register object, const char* msg); 192 void AbortIfNotNumber(Register object);
193 193
194 // Abort execution if argument is not a smi. Used in debug code. 194 // Abort execution if argument is not a smi. Used in debug code.
195 void AbortIfNotSmi(Register object, const char* msg); 195 void AbortIfNotSmi(Register object);
196 196
197 // --------------------------------------------------------------------------- 197 // ---------------------------------------------------------------------------
198 // Exception handling 198 // Exception handling
199 199
200 // Push a new try handler and link into try handler chain. The return 200 // Push a new try handler and link into try handler chain. The return
201 // address must be pushed before calling this helper. 201 // address must be pushed before calling this helper.
202 void PushTryHandler(CodeLocation try_location, HandlerType type); 202 void PushTryHandler(CodeLocation try_location, HandlerType type);
203 203
204 // Unlink the stack handler on top of the stack from the try handler chain. 204 // Unlink the stack handler on top of the stack from the try handler chain.
205 void PopTryHandler(); 205 void PopTryHandler();
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 } \ 579 } \
580 masm-> 580 masm->
581 #else 581 #else
582 #define ACCESS_MASM(masm) masm-> 582 #define ACCESS_MASM(masm) masm->
583 #endif 583 #endif
584 584
585 585
586 } } // namespace v8::internal 586 } } // namespace v8::internal
587 587
588 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 588 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698