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

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

Issue 11108011: Ensure that we do not accidentally emit debug code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed indentation Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 497
498 template<typename Field> 498 template<typename Field>
499 void DecodeField(Register reg) { 499 void DecodeField(Register reg) {
500 static const int shift = Field::kShift; 500 static const int shift = Field::kShift;
501 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize; 501 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize;
502 sar(reg, shift); 502 sar(reg, shift);
503 and_(reg, Immediate(mask)); 503 and_(reg, Immediate(mask));
504 } 504 }
505 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); 505 void LoadPowerOf2(XMMRegister dst, Register scratch, int power);
506 506
507 // Abort execution if argument is not a number. Used in debug code. 507 // Abort execution if argument is not a number, enabled via --debug-code.
508 void AbortIfNotNumber(Register object); 508 void AssertNumber(Register object);
509 509
510 // Abort execution if argument is not a smi. Used in debug code. 510 // Abort execution if argument is not a smi, enabled via --debug-code.
511 void AbortIfNotSmi(Register object); 511 void AssertSmi(Register object);
512 512
513 // Abort execution if argument is a smi. Used in debug code. 513 // Abort execution if argument is a smi, enabled via --debug-code.
514 void AbortIfSmi(Register object); 514 void AssertNotSmi(Register object);
515 515
516 // Abort execution if argument is a string. Used in debug code. 516 // Abort execution if argument is not a string, enabled via --debug-code.
517 void AbortIfNotString(Register object); 517 void AssertString(Register object);
518 518
519 // --------------------------------------------------------------------------- 519 // ---------------------------------------------------------------------------
520 // Exception handling 520 // Exception handling
521 521
522 // Push a new try handler and link it into try handler chain. 522 // Push a new try handler and link it into try handler chain.
523 void PushTryHandler(StackHandler::Kind kind, int handler_index); 523 void PushTryHandler(StackHandler::Kind kind, int handler_index);
524 524
525 // Unlink the stack handler on top of the stack from the try handler chain. 525 // Unlink the stack handler on top of the stack from the try handler chain.
526 void PopTryHandler(); 526 void PopTryHandler();
527 527
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } \ 998 } \
999 masm-> 999 masm->
1000 #else 1000 #else
1001 #define ACCESS_MASM(masm) masm-> 1001 #define ACCESS_MASM(masm) masm->
1002 #endif 1002 #endif
1003 1003
1004 1004
1005 } } // namespace v8::internal 1005 } } // namespace v8::internal
1006 1006
1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-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