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

Side by Side Diff: src/macro-assembler-arm.cc

Issue 18094: Fix a bunch of spelling mistakes :\ (Closed)
Patch Set: More fixes. Created 11 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/jsregexp.cc ('k') | src/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-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 895 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 Abort(msg); 906 Abort(msg);
907 // will not return here 907 // will not return here
908 bind(&L); 908 bind(&L);
909 } 909 }
910 910
911 911
912 void MacroAssembler::Abort(const char* msg) { 912 void MacroAssembler::Abort(const char* msg) {
913 // We want to pass the msg string like a smi to avoid GC 913 // We want to pass the msg string like a smi to avoid GC
914 // problems, however msg is not guaranteed to be aligned 914 // problems, however msg is not guaranteed to be aligned
915 // properly. Instead, we pass an aligned pointer that is 915 // properly. Instead, we pass an aligned pointer that is
916 // a proper v8 smi, but also pass the aligment difference 916 // a proper v8 smi, but also pass the alignment difference
917 // from the real pointer as a smi. 917 // from the real pointer as a smi.
918 intptr_t p1 = reinterpret_cast<intptr_t>(msg); 918 intptr_t p1 = reinterpret_cast<intptr_t>(msg);
919 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; 919 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag;
920 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); 920 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi());
921 #ifdef DEBUG 921 #ifdef DEBUG
922 if (msg != NULL) { 922 if (msg != NULL) {
923 RecordComment("Abort message: "); 923 RecordComment("Abort message: ");
924 RecordComment(msg); 924 RecordComment(msg);
925 } 925 }
926 #endif 926 #endif
927 mov(r0, Operand(p0)); 927 mov(r0, Operand(p0));
928 push(r0); 928 push(r0);
929 mov(r0, Operand(Smi::FromInt(p1 - p0))); 929 mov(r0, Operand(Smi::FromInt(p1 - p0)));
930 push(r0); 930 push(r0);
931 CallRuntime(Runtime::kAbort, 2); 931 CallRuntime(Runtime::kAbort, 2);
932 // will not return here 932 // will not return here
933 } 933 }
934 934
935 } } // namespace v8::internal 935 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698